fprintd-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define long_hash 04fd09cfa88718838e02f4419befc1a0dd4b5a0e
  2. %define short_hash 04fd09cfa
  3. Summary: D-Bus service for Fingerprint reader access
  4. Summary(ja): 指紋リーダにアクセスするための D-Bus サービス
  5. Name: fprintd
  6. Version: 0.1
  7. Release: 1.git%{short_hash}%{?_dist_release}
  8. Group: System Environment/Daemons
  9. License: GPLv2+
  10. # git clone git://projects.reactivated.net/~dsd/fprintd.git
  11. # cd fprintd
  12. # git reset --hard %{long_hash}
  13. # ./autogen.sh && make distcheck
  14. # mv fprintd-0.1.tar.bz2 fprintd-0.1-%{short_hash}.tar.bz2
  15. Source0: fprintd-0.1-%{short_hash}.tar.bz2
  16. # FIXME remove when we have a newer libfprint
  17. Patch0: old-libfprint.patch
  18. Patch1: 0001-Detect-when-a-device-is-disconnected.patch
  19. Url: http://www.reactivated.net/fprint/wiki/Fprintd
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  21. BuildRequires: dbus-glib-devel
  22. BuildRequires: pam-devel
  23. BuildRequires: libfprint-devel >= 0.1.0
  24. BuildRequires: PolicyKit-devel
  25. BuildRequires: gtk-doc
  26. BuildRequires: perl(XML::Parser) intltool
  27. %description
  28. D-Bus service to access fingerprint readers.
  29. %package pam
  30. Summary: PAM module for fingerprint authentication
  31. Summary(ja): 指紋認証のための PAM モジュール
  32. Requires: %{name} = %{version}-%{release}
  33. Group: System Environment/Base
  34. License: GPLv2+
  35. %description pam
  36. PAM module that uses the fprintd D-Bus service for fingerprint
  37. authentication.
  38. %package devel
  39. Summary: Development files for %{name}
  40. Summary(ja): %{name} の開発ファイル
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: gtk-doc
  43. Group: Development/Libraries
  44. License: GFDLv1.1+
  45. %description devel
  46. Development documentation for fprintd, the D-Bus service for
  47. fingerprint readers access.
  48. %prep
  49. %setup -q -n %{name}-%{version}
  50. %patch0 -p1
  51. %patch1 -p1
  52. %build
  53. %configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam
  54. make %{?_smp_mflags}
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. make install DESTDIR=$RPM_BUILD_ROOT
  58. mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/fprint
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc README COPYING AUTHORS TODO
  64. %{_bindir}/fprintd-*
  65. %{_libexecdir}/fprintd
  66. # FIXME This file should be marked as config when it does something useful
  67. %{_sysconfdir}/fprintd.conf
  68. %{_sysconfdir}/dbus-1/system.d/net.reactivated.Fprint.conf
  69. %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service
  70. %{_datadir}/PolicyKit/policy/net.reactivated.fprint.device.policy
  71. %{_localstatedir}/lib/fprint
  72. %files pam
  73. %defattr(-,root,root,-)
  74. %doc pam/README
  75. /%{_lib}/security/pam_fprintd.so
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_datadir}/gtk-doc/html/fprintd
  79. %{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
  80. %{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
  81. %changelog
  82. * Wed May 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1.git04fd09cfa
  83. - initial build for Vine Linux
  84. * Thu May 07 2009 Bastien Nocera <bnocera@redhat.com> 0.1-9.git04fd09cfa
  85. - Add /var/lib/fprint to the RPM to avoid SELinux errors (#499513)
  86. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8.git04fd09cfa
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  88. * Tue Jan 27 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1-7.git04fd09cfa
  89. - Add a patch to handle device disconnects
  90. * Mon Jan 26 2009 - Bastien Nocera <bnocera@redhat.com> - 0.1-6.git04fd09cfa
  91. - Update to latest git, fixes some run-time warnings
  92. * Wed Dec 17 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-5.git43fe72a2aa
  93. - Add patch to stop leaking a D-Bus connection on failure
  94. * Tue Dec 09 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-4.git43fe72a2aa
  95. - Update D-Bus config file for recent D-Bus changes
  96. * Thu Dec 04 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-3.git43fe72a2aa
  97. - Update following comments in the review
  98. * Sun Nov 23 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-2.gitaf42ec70f3
  99. - Update to current git master, and add documentation
  100. * Tue Nov 04 2008 - Bastien Nocera <bnocera@redhat.com> - 0.1-1
  101. - First package