]>
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 | |
7dc9c0a6 ER |
8 | Version: 0.4.1 |
9 | Release: 1 | |
f3512725 JB |
10 | License: GPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.bz2 | |
7dc9c0a6 | 13 | # Source0-md5: 021844be151c0cb22d0c1624233b7780 |
f3512725 | 14 | URL: http://www.reactivated.net/fprint/wiki/Fprintd |
e5ff64d5 | 15 | BuildRequires: autoconf |
f3512725 | 16 | BuildRequires: dbus-glib-devel |
e5ff64d5 | 17 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
18 | BuildRequires: gettext-devel | |
f3512725 | 19 | BuildRequires: glib2-devel >= 2.0.0 |
6ffa5f15 | 20 | %{?with_apidocs:BuildRequires: gtk-doc} |
e5ff64d5 | 21 | BuildRequires: intltool |
7dc9c0a6 | 22 | BuildRequires: libfprint-devel >= 0.4.0 |
e5ff64d5 | 23 | %{?with_apidocs:BuildRequires: libxslt-progs} |
f3512725 | 24 | BuildRequires: pam-devel |
e5ff64d5 | 25 | BuildRequires: perl-tools-pod |
f3512725 JB |
26 | BuildRequires: pkgconfig |
27 | BuildRequires: polkit-devel >= 0.91 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Daemon to offer libfprint functionality over D-Bus. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Demon oferujący funkcjonalność libfprint poprzez D-Bus. | |
35 | ||
6ffa5f15 ER |
36 | %package apidocs |
37 | Summary: fprintd API documentation | |
38 | Summary(pl.UTF-8): Dokumentacja API biblioteki fprintd | |
39 | License: GFDL v1.1+ | |
40 | Group: Documentation | |
e38e29b0 | 41 | Requires: gtk-doc-common |
6ffa5f15 ER |
42 | |
43 | %description apidocs | |
44 | API and internal documentation for fprintd library. | |
45 | ||
46 | %description apidocs -l pl.UTF-8 | |
47 | Dokumentacja API biblioteki fprintd. | |
48 | ||
f682564f JB |
49 | %package -n pam-pam_fprintd |
50 | Summary: PAM module for fingerprint authentication | |
51 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
52 | Group: Applications/System | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description -n pam-pam_fprintd | |
56 | PAM module for fingerprint authentication. | |
57 | ||
58 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
59 | Moduł PAM do uwierzytelniania odciskiem palca. | |
60 | ||
f3512725 JB |
61 | %prep |
62 | %setup -q | |
63 | ||
64 | %build | |
f682564f | 65 | %configure \ |
e38e29b0 | 66 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \ |
f682564f | 67 | --disable-static |
f3512725 JB |
68 | |
69 | %{__make} \ | |
70 | pammoddir=/%{_lib}/security | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 74 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 JB |
75 | %{__make} install \ |
76 | DESTDIR=$RPM_BUILD_ROOT \ | |
77 | pammoddir=/%{_lib}/security | |
78 | ||
79 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
80 | ||
7dc9c0a6 ER |
81 | %find_lang %{name} |
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 | ||
7dc9c0a6 | 89 | %files -f %{name}.lang |
f3512725 | 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 |