]>
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 | |
779166a3 JB |
19 | BuildRequires: glib2-devel >= 1:2.26.0 |
20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} | |
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 \ |
779166a3 JB |
66 | --disable-silent-rules \ |
67 | --disable-static \ | |
68 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} | |
f3512725 JB |
69 | |
70 | %{__make} \ | |
71 | pammoddir=/%{_lib}/security | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 75 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 JB |
76 | %{__make} install \ |
77 | DESTDIR=$RPM_BUILD_ROOT \ | |
78 | pammoddir=/%{_lib}/security | |
79 | ||
80 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
81 | ||
6ffa5f15 | 82 | # to -devel, but we haven't any |
779166a3 JB |
83 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml |
84 | ||
85 | %find_lang %{name} | |
e215688e | 86 | |
f3512725 JB |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
7dc9c0a6 | 90 | %files -f %{name}.lang |
f3512725 | 91 | %defattr(644,root,root,755) |
6ffa5f15 | 92 | %doc AUTHORS NEWS README TODO |
e215688e | 93 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf |
f3512725 JB |
94 | %attr(755,root,root) %{_bindir}/fprintd-delete |
95 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
96 | %attr(755,root,root) %{_bindir}/fprintd-list | |
97 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
98 | %attr(755,root,root) %{_libdir}/fprintd | |
f3512725 JB |
99 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service |
100 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy | |
f3512725 JB |
101 | /etc/dbus-1/system.d/net.reactivated.Fprint.conf |
102 | %{_mandir}/man1/fprintd.1* | |
e215688e | 103 | %dir %attr(700,root,root) /var/lib/fprint |
f682564f JB |
104 | |
105 | %files -n pam-pam_fprintd | |
106 | %defattr(644,root,root,755) | |
107 | %doc pam/README | |
108 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
6ffa5f15 ER |
109 | |
110 | %if %{with apidocs} | |
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
e5ff64d5 | 113 | %{_gtkdocdir}/fprintd |
6ffa5f15 | 114 | %endif |