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