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