]>
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 | |
ab1eac4d | 9 | Version: 0.8.1 |
d2194e06 | 10 | Release: 2 |
f3512725 JB |
11 | License: GPL v2+ |
12 | Group: Libraries | |
ab1eac4d JB |
13 | #Source0Download: https://gitlab.freedesktop.org/libfprint/fprintd/tags |
14 | Source0: https://gitlab.freedesktop.org/libfprint/fprintd/uploads/bdd9f91909f535368b7c21f72311704a/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: 48017e02e6297f63058d59530862d275 | |
16 | URL: https://fprint.freedesktop.org/ | |
f3512725 | 17 | BuildRequires: dbus-glib-devel |
e5ff64d5 | 18 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
abeb34b2 | 19 | BuildRequires: gettext-tools |
779166a3 | 20 | BuildRequires: glib2-devel >= 1:2.26.0 |
d955c2fc | 21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
a98605da | 22 | BuildRequires: intltool >= 0.35.0 |
374c8554 JB |
23 | BuildRequires: libfprint-devel >= 0.6.0 |
24 | %{?with_apidocs:BuildRequires: libxml2-progs} | |
e5ff64d5 | 25 | %{?with_apidocs:BuildRequires: libxslt-progs} |
f3512725 | 26 | BuildRequires: pam-devel |
e5ff64d5 | 27 | BuildRequires: perl-tools-pod |
f3512725 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: polkit-devel >= 0.91 | |
a98605da | 30 | BuildRequires: rpmbuild(macros) >= 1.644 |
b265d689 JB |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
374c8554 | 33 | Requires: libfprint >= 0.6.0 |
a98605da | 34 | Requires: systemd-units >= 38 |
f3512725 JB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Daemon to offer libfprint functionality over D-Bus. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Demon oferujący funkcjonalność libfprint poprzez D-Bus. | |
42 | ||
6ffa5f15 ER |
43 | %package apidocs |
44 | Summary: fprintd API documentation | |
45 | Summary(pl.UTF-8): Dokumentacja API biblioteki fprintd | |
46 | License: GFDL v1.1+ | |
47 | Group: Documentation | |
e38e29b0 | 48 | Requires: gtk-doc-common |
d955c2fc ER |
49 | %if "%{_rpmversion}" >= "5" |
50 | BuildArch: noarch | |
51 | %endif | |
6ffa5f15 ER |
52 | |
53 | %description apidocs | |
54 | API and internal documentation for fprintd library. | |
55 | ||
56 | %description apidocs -l pl.UTF-8 | |
57 | Dokumentacja API biblioteki fprintd. | |
58 | ||
f682564f JB |
59 | %package -n pam-pam_fprintd |
60 | Summary: PAM module for fingerprint authentication | |
61 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
62 | Group: Applications/System | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description -n pam-pam_fprintd | |
66 | PAM module for fingerprint authentication. | |
67 | ||
68 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
69 | Moduł PAM do uwierzytelniania odciskiem palca. | |
70 | ||
f3512725 JB |
71 | %prep |
72 | %setup -q | |
73 | ||
74 | %build | |
f682564f | 75 | %configure \ |
779166a3 JB |
76 | --disable-silent-rules \ |
77 | --disable-static \ | |
78 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} | |
f3512725 JB |
79 | |
80 | %{__make} \ | |
81 | pammoddir=/%{_lib}/security | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 85 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 JB |
86 | %{__make} install \ |
87 | DESTDIR=$RPM_BUILD_ROOT \ | |
88 | pammoddir=/%{_lib}/security | |
89 | ||
90 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
91 | ||
6ffa5f15 | 92 | # to -devel, but we haven't any |
779166a3 JB |
93 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml |
94 | ||
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 | |
d2194e06 | 108 | %attr(755,root,root) %{_libexecdir}/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 |