abee49a
%define long_hash  04fd09cfa88718838e02f4419befc1a0dd4b5a0e
abee49a
%define short_hash 04fd09cfa
487ae1a
487ae1a
Name:		fprintd
487ae1a
Version:	0.1
5ce835b
Release:	16.git%{short_hash}%{?dist}
487ae1a
Summary:	D-Bus service for Fingerprint reader access
487ae1a
487ae1a
Group:		System Environment/Daemons
487ae1a
License:	GPLv2+
487ae1a
# git clone git://projects.reactivated.net/~dsd/fprintd.git
487ae1a
# cd fprintd
487ae1a
# git reset --hard %{long_hash}
487ae1a
# ./autogen.sh && make distcheck
487ae1a
# mv fprintd-0.1.tar.bz2 fprintd-0.1-%{short_hash}.tar.bz2
487ae1a
Source0:	fprintd-0.1-%{short_hash}.tar.bz2
eb455c9
Patch1:		0001-Detect-when-a-device-is-disconnected.patch
a6170b1
# https://bugzilla.redhat.com/show_bug.cgi?id=498368
a6170b1
Patch2:		polkit1.patch
5ce835b
# https://bugzilla.redhat.com/show_bug.cgi?id=543194
5ce835b
Patch3:		0001-Remove-all-use-of-g_error.patch
487ae1a
Url:		http://www.reactivated.net/fprint/wiki/Fprintd
487ae1a
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1b47580
ExcludeArch:    s390 s390x
487ae1a
487ae1a
BuildRequires:	dbus-glib-devel
487ae1a
BuildRequires:	pam-devel
487ae1a
BuildRequires:	libfprint-devel >= 0.1.0
a6170b1
BuildRequires:	polkit-devel
487ae1a
BuildRequires:	gtk-doc
a6170b1
BuildRequires:	intltool
a6170b1
BuildRequires:  autoconf automake libtool
487ae1a
487ae1a
%description
487ae1a
D-Bus service to access fingerprint readers.
487ae1a
487ae1a
%package pam
487ae1a
Summary:	PAM module for fingerprint authentication
487ae1a
Requires:	%{name} = %{version}-%{release}
487ae1a
# Note that we obsolete pam_fprint, but as the configuration
487ae1a
# is different, it will be mentioned in the release notes
487ae1a
Provides:	pam_fprint = %{version}-%{release}
487ae1a
Obsoletes:	pam_fprint < 0.2-3
487ae1a
487ae1a
Group:		System Environment/Base
487ae1a
License:	GPLv2+
487ae1a
487ae1a
%description pam
487ae1a
PAM module that uses the fprintd D-Bus service for fingerprint
487ae1a
authentication.
487ae1a
487ae1a
%package devel
487ae1a
Summary:	Development files for %{name}
487ae1a
Requires:	%{name} = %{version}-%{release}
487ae1a
Requires:	gtk-doc
487ae1a
Group:		Development/Libraries
487ae1a
License:	GFDLv1.1+
784e43d
BuildArch:	noarch
487ae1a
487ae1a
%description devel
487ae1a
Development documentation for fprintd, the D-Bus service for
487ae1a
fingerprint readers access.
487ae1a
487ae1a
%prep
487ae1a
%setup -q -n %{name}-%{version}
eb455c9
%patch1 -p1
a6170b1
%patch2 -p1 -b .polkit1
5ce835b
%patch3 -p1 -b .g_error
a6170b1
a6170b1
autoreconf -i -f
487ae1a
487ae1a
%build
487ae1a
%configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam
487ae1a
487ae1a
make %{?_smp_mflags}
487ae1a
487ae1a
%install
487ae1a
rm -rf $RPM_BUILD_ROOT
487ae1a
make install DESTDIR=$RPM_BUILD_ROOT
c320559
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/fprint
487ae1a
a9966f8
rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.{a,la,so.*}
8ca66ce
487ae1a
%clean
487ae1a
rm -rf $RPM_BUILD_ROOT
487ae1a
487ae1a
%files
487ae1a
%defattr(-,root,root,-)
487ae1a
%doc README COPYING AUTHORS TODO
487ae1a
%{_bindir}/fprintd-*
487ae1a
%{_libexecdir}/fprintd
487ae1a
# FIXME This file should be marked as config when it does something useful
487ae1a
%{_sysconfdir}/fprintd.conf
487ae1a
%{_sysconfdir}/dbus-1/system.d/net.reactivated.Fprint.conf
487ae1a
%{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service
a6170b1
%{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy
c320559
%{_localstatedir}/lib/fprint
487ae1a
487ae1a
%files pam
487ae1a
%defattr(-,root,root,-)
487ae1a
%doc pam/README
487ae1a
/%{_lib}/security/pam_fprintd.so
487ae1a
487ae1a
%files devel
487ae1a
%defattr(-,root,root,-)
487ae1a
%{_datadir}/gtk-doc/html/fprintd
15821a4
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
15821a4
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
487ae1a
487ae1a
%changelog
5ce835b
* Wed Dec 09 2009 Bastien Nocera <bnocera@redhat.com> 0.1-16.git04fd09cfa
5ce835b
- Remove use of g_error(), or people think that it crashes when we actually
5ce835b
  abort() (#543194)
5ce835b
2af799a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-15.git04fd09cfa
2af799a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2af799a
4c4bbdf
* Tue Jul 21 2009 Bastien Nocera <bnocera@redhat.com> 0.1-14.git04fd09cfa
4c4bbdf
- Merge polkit patch and fix for polkit patch
4c4bbdf
784e43d
* Tue Jul 21 2009 Bastien Nocera <bnocera@redhat.com> 0.1-13.git04fd09cfa
784e43d
- Make the -devel package noarch (#507698)
784e43d
4e435b6
* Thu Jul  9 2009 Matthias Clasen <mclasen@redhat.com> 0.1-12.git04fd09cfa
4e435b6
- Fix the pam module (#510152)
4e435b6
0d2c78e
* Sat Jun 20 2009 Bastien Nocera <bnocera@redhat.com> 0.1-11.git04fd09cfa
0d2c78e
- Remove obsolete patch
0d2c78e
a6170b1
* Tue Jun 9 2009 Matthias Clasen <mclasen@redhat.com> 0.1-10.git04fd09cfa
a6170b1
- Port to PolicyKit 1
a6170b1
c320559
* Thu May 07 2009 Bastien Nocera <bnocera@redhat.com> 0.1-9.git04fd09cfa
c320559
- Add /var/lib/fprint to the RPM to avoid SELinux errors (#499513)
c320559
1b47580
* Tue Apr 21 2009 Karsten Hopp <karsten@redhat.com> 0.1-8.git04fd09cfa.1
1b47580
- Excludearch s390 s390x, as we don't have libusb1 on mainframe, we can't build
1b47580
  the required libfprint package
1b47580
3e2de8e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8.git04fd09cfa
3e2de8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3e2de8e
eb455c9
* Tue Jan 27 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1-7.git04fd09cfa
eb455c9
- Add a patch to handle device disconnects
eb455c9
abee49a
* Mon Jan 26 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1-6.git04fd09cfa
abee49a
- Update to latest git, fixes some run-time warnings
abee49a
4729e3a
* Wed Dec 17 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-5.git43fe72a2aa
4729e3a
- Add patch to stop leaking a D-Bus connection on failure
4729e3a
23302b5
* Tue Dec 09 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-4.git43fe72a2aa
23302b5
- Update D-Bus config file for recent D-Bus changes
23302b5
487ae1a
* Thu Dec 04 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-3.git43fe72a2aa
487ae1a
- Update following comments in the review
487ae1a
487ae1a
* Sun Nov 23 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-2.gitaf42ec70f3
487ae1a
- Update to current git master, and add documentation
487ae1a
487ae1a
* Tue Nov 04 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-1
487ae1a
- First package
487ae1a