diff --git a/.cvsignore b/.cvsignore index e69de29..4170f0b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +fprintd-0.1-43fe72a2aa.tar.bz2 diff --git a/fprintd.spec b/fprintd.spec new file mode 100644 index 0000000..6be840a --- /dev/null +++ b/fprintd.spec @@ -0,0 +1,103 @@ +%define long_hash 43fe72a2aad91576e16b418cf31fcbe886c1de60 +%define short_hash 43fe72a2aa + +Name: fprintd +Version: 0.1 +Release: 3.git%{short_hash}%{?dist} +Summary: D-Bus service for Fingerprint reader access + +Group: System Environment/Daemons +License: GPLv2+ +# git clone git://projects.reactivated.net/~dsd/fprintd.git +# cd fprintd +# git reset --hard %{long_hash} +# ./autogen.sh && make distcheck +# mv fprintd-0.1.tar.bz2 fprintd-0.1-%{short_hash}.tar.bz2 +Source0: fprintd-0.1-%{short_hash}.tar.bz2 +# FIXME remove when we have a newer libfprint +Patch0: old-libfprint.patch +Url: http://www.reactivated.net/fprint/wiki/Fprintd +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: dbus-glib-devel +BuildRequires: pam-devel +BuildRequires: libfprint-devel >= 0.1.0 +BuildRequires: PolicyKit-devel +BuildRequires: gtk-doc +BuildRequires: perl(XML::Parser) intltool + +%description +D-Bus service to access fingerprint readers. + +%package pam +Summary: PAM module for fingerprint authentication +Requires: %{name} = %{version}-%{release} +# Note that we obsolete pam_fprint, but as the configuration +# is different, it will be mentioned in the release notes +Provides: pam_fprint = %{version}-%{release} +Obsoletes: pam_fprint < 0.2-3 + +Group: System Environment/Base +License: GPLv2+ + +%description pam +PAM module that uses the fprintd D-Bus service for fingerprint +authentication. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +Requires: gtk-doc +Group: Development/Libraries +License: GFDLv1.1+ + +%description devel +Development documentation for fprintd, the D-Bus service for +fingerprint readers access. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 + +%build +%configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README COPYING AUTHORS TODO +%{_bindir}/fprintd-* +%{_libexecdir}/fprintd +# FIXME This file should be marked as config when it does something useful +%{_sysconfdir}/fprintd.conf +%{_sysconfdir}/dbus-1/system.d/net.reactivated.Fprint.conf +%{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service +%{_datadir}/PolicyKit/policy/net.reactivated.fprint.device.policy + +%files pam +%defattr(-,root,root,-) +%doc pam/README +/%{_lib}/security/pam_fprintd.so + +%files devel +%defattr(-,root,root,-) +%{_datadir}/gtk-doc/html/fprintd + +%changelog +* Thu Dec 04 2008 - Bastien Nocera - 0.1-3.git43fe72a2aa +- Update following comments in the review + +* Sun Nov 23 2008 - Bastien Nocera - 0.1-2.gitaf42ec70f3 +- Update to current git master, and add documentation + +* Tue Nov 04 2008 - Bastien Nocera - 0.1-1 +- First package + diff --git a/import.log b/import.log new file mode 100644 index 0000000..e5a9910 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +fprintd-0_1-3_git43fe72a2aa_fc10:HEAD:fprintd-0.1-3.git43fe72a2aa.fc10.src.rpm:1228470389 diff --git a/old-libfprint.patch b/old-libfprint.patch new file mode 100644 index 0000000..255edec --- /dev/null +++ b/old-libfprint.patch @@ -0,0 +1,20 @@ +diff --git a/src/device.c b/src/device.c +index e3f7c3b..c1fc1c3 100644 +--- a/src/device.c ++++ b/src/device.c +@@ -184,11 +184,14 @@ static void fprint_device_get_property(GObject *object, guint property_id, + case FPRINT_DEVICE_SCAN_TYPE: { + const char *type; + ++ //FIXME until we get a newer libfprint ++ type = "press"; ++#if 0 + if (fp_driver_get_scan_type (fp_dscv_dev_get_driver (priv->ddev)) == FP_SCAN_TYPE_PRESS) + type = "press"; + else + type = "swipe"; +- ++#endif + g_value_set_static_string (value, type); + break; + } diff --git a/sources b/sources index e69de29..41aeecc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ac9638a644d35da10a6b327a11ccee2b fprintd-0.1-43fe72a2aa.tar.bz2