]>
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 | |
374c8554 JB |
9 | Version: 0.6.0 |
10 | Release: 1 | |
f3512725 JB |
11 | License: GPL v2+ |
12 | Group: Libraries | |
b265d689 | 13 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz |
374c8554 | 14 | # Source0-md5: ca61f22513a25020bea7bb96d4322c9d |
f3512725 JB |
15 | URL: http://www.reactivated.net/fprint/wiki/Fprintd |
16 | BuildRequires: dbus-glib-devel | |
e5ff64d5 | 17 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
abeb34b2 | 18 | BuildRequires: gettext-tools |
779166a3 | 19 | BuildRequires: glib2-devel >= 1:2.26.0 |
d955c2fc | 20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
a98605da | 21 | BuildRequires: intltool >= 0.35.0 |
374c8554 JB |
22 | BuildRequires: libfprint-devel >= 0.6.0 |
23 | %{?with_apidocs:BuildRequires: libxml2-progs} | |
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 | |
374c8554 | 32 | Requires: libfprint >= 0.6.0 |
a98605da | 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 |
d955c2fc ER |
48 | %if "%{_rpmversion}" >= "5" |
49 | BuildArch: noarch | |
50 | %endif | |
6ffa5f15 ER |
51 | |
52 | %description apidocs | |
53 | API and internal documentation for fprintd library. | |
54 | ||
55 | %description apidocs -l pl.UTF-8 | |
56 | Dokumentacja API biblioteki fprintd. | |
57 | ||
f682564f JB |
58 | %package -n pam-pam_fprintd |
59 | Summary: PAM module for fingerprint authentication | |
60 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
61 | Group: Applications/System | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description -n pam-pam_fprintd | |
65 | PAM module for fingerprint authentication. | |
66 | ||
67 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
68 | Moduł PAM do uwierzytelniania odciskiem palca. | |
69 | ||
f3512725 JB |
70 | %prep |
71 | %setup -q | |
72 | ||
73 | %build | |
f682564f | 74 | %configure \ |
779166a3 JB |
75 | --disable-silent-rules \ |
76 | --disable-static \ | |
77 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} | |
f3512725 JB |
78 | |
79 | %{__make} \ | |
80 | pammoddir=/%{_lib}/security | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 84 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 JB |
85 | %{__make} install \ |
86 | DESTDIR=$RPM_BUILD_ROOT \ | |
87 | pammoddir=/%{_lib}/security | |
88 | ||
89 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
90 | ||
6ffa5f15 | 91 | # to -devel, but we haven't any |
779166a3 JB |
92 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml |
93 | ||
d955c2fc ER |
94 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{bg_BG,bg} |
95 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} | |
a98605da | 96 | |
779166a3 | 97 | %find_lang %{name} |
e215688e | 98 | |
f3512725 JB |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
7dc9c0a6 | 102 | %files -f %{name}.lang |
f3512725 | 103 | %defattr(644,root,root,755) |
6ffa5f15 | 104 | %doc AUTHORS NEWS README TODO |
e215688e | 105 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf |
f3512725 JB |
106 | %attr(755,root,root) %{_bindir}/fprintd-delete |
107 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
108 | %attr(755,root,root) %{_bindir}/fprintd-list | |
109 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
110 | %attr(755,root,root) %{_libdir}/fprintd | |
a98605da | 111 | /etc/dbus-1/system.d/net.reactivated.Fprint.conf |
f3512725 JB |
112 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service |
113 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy | |
a98605da | 114 | %{systemdunitdir}/fprintd.service |
f3512725 | 115 | %{_mandir}/man1/fprintd.1* |
e215688e | 116 | %dir %attr(700,root,root) /var/lib/fprint |
f682564f JB |
117 | |
118 | %files -n pam-pam_fprintd | |
119 | %defattr(644,root,root,755) | |
120 | %doc pam/README | |
121 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
6ffa5f15 ER |
122 | |
123 | %if %{with apidocs} | |
124 | %files apidocs | |
125 | %defattr(644,root,root,755) | |
e5ff64d5 | 126 | %{_gtkdocdir}/fprintd |
6ffa5f15 | 127 | %endif |