]>
Commit | Line | Data |
---|---|---|
6ffa5f15 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | ||
f3512725 JB |
5 | Summary: Daemon to offer libfprint functionality over D-Bus |
6 | Summary(pl.UTF-8): Demon oferujący funkcjonalność libfprint poprzez D-Bus | |
7 | Name: fprintd | |
8 | Version: 0.2.0 | |
c2386971 | 9 | Release: 4 |
f3512725 JB |
10 | License: GPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.bz2 | |
13 | # Source0-md5: d6f023e6560d5647eadf668cdbcee57a | |
6ffa5f15 | 14 | Patch0: dont-ever-unload.patch |
f3512725 | 15 | URL: http://www.reactivated.net/fprint/wiki/Fprintd |
e5ff64d5 | 16 | BuildRequires: autoconf |
f3512725 | 17 | BuildRequires: dbus-glib-devel |
e5ff64d5 | 18 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
19 | BuildRequires: gettext-devel | |
f3512725 | 20 | BuildRequires: glib2-devel >= 2.0.0 |
6ffa5f15 | 21 | %{?with_apidocs:BuildRequires: gtk-doc} |
e5ff64d5 | 22 | BuildRequires: intltool |
f3512725 | 23 | BuildRequires: libfprint-devel >= 0.1.0 |
e5ff64d5 | 24 | %{?with_apidocs:BuildRequires: libxslt-progs} |
f3512725 | 25 | BuildRequires: pam-devel |
e5ff64d5 | 26 | BuildRequires: perl-tools-pod |
f3512725 JB |
27 | BuildRequires: pkgconfig |
28 | BuildRequires: polkit-devel >= 0.91 | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Daemon to offer libfprint functionality over D-Bus. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Demon oferujący funkcjonalność libfprint poprzez D-Bus. | |
36 | ||
6ffa5f15 ER |
37 | %package apidocs |
38 | Summary: fprintd API documentation | |
39 | Summary(pl.UTF-8): Dokumentacja API biblioteki fprintd | |
40 | License: GFDL v1.1+ | |
41 | Group: Documentation | |
e38e29b0 | 42 | Requires: gtk-doc-common |
6ffa5f15 ER |
43 | |
44 | %description apidocs | |
45 | API and internal documentation for fprintd library. | |
46 | ||
47 | %description apidocs -l pl.UTF-8 | |
48 | Dokumentacja API biblioteki fprintd. | |
49 | ||
f682564f JB |
50 | %package -n pam-pam_fprintd |
51 | Summary: PAM module for fingerprint authentication | |
52 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
53 | Group: Applications/System | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description -n pam-pam_fprintd | |
57 | PAM module for fingerprint authentication. | |
58 | ||
59 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
60 | Moduł PAM do uwierzytelniania odciskiem palca. | |
61 | ||
f3512725 JB |
62 | %prep |
63 | %setup -q | |
6ffa5f15 | 64 | %patch0 -p1 |
f3512725 JB |
65 | |
66 | %build | |
f682564f | 67 | %configure \ |
e38e29b0 | 68 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \ |
f682564f | 69 | --disable-static |
f3512725 JB |
70 | |
71 | %{__make} \ | |
72 | pammoddir=/%{_lib}/security | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 76 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 JB |
77 | %{__make} install \ |
78 | DESTDIR=$RPM_BUILD_ROOT \ | |
79 | pammoddir=/%{_lib}/security | |
80 | ||
81 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
82 | ||
6ffa5f15 | 83 | # to -devel, but we haven't any |
e215688e ER |
84 | rm $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml |
85 | ||
f3512725 JB |
86 | %clean |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
6ffa5f15 | 91 | %doc AUTHORS NEWS README TODO |
e215688e | 92 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf |
f3512725 JB |
93 | %attr(755,root,root) %{_bindir}/fprintd-delete |
94 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
95 | %attr(755,root,root) %{_bindir}/fprintd-list | |
96 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
97 | %attr(755,root,root) %{_libdir}/fprintd | |
f3512725 JB |
98 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service |
99 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy | |
f3512725 JB |
100 | /etc/dbus-1/system.d/net.reactivated.Fprint.conf |
101 | %{_mandir}/man1/fprintd.1* | |
e215688e | 102 | %dir %attr(700,root,root) /var/lib/fprint |
f682564f JB |
103 | |
104 | %files -n pam-pam_fprintd | |
105 | %defattr(644,root,root,755) | |
106 | %doc pam/README | |
107 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
6ffa5f15 ER |
108 | |
109 | %if %{with apidocs} | |
110 | %files apidocs | |
111 | %defattr(644,root,root,755) | |
e5ff64d5 | 112 | %{_gtkdocdir}/fprintd |
6ffa5f15 | 113 | %endif |