]>
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 | |
fbbc310b JR |
8 | Version: 1.90.8 |
9 | Release: 1 | |
f3512725 JB |
10 | License: GPL v2+ |
11 | Group: Libraries | |
fbbc310b JR |
12 | Source0: https://gitlab.freedesktop.org/libfprint/fprintd/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 |
13 | # Source0-md5: 94f1760274a6dc95fcd713edc393206b | |
ab1eac4d | 14 | URL: https://fprint.freedesktop.org/ |
f3512725 | 15 | BuildRequires: dbus-glib-devel |
e5ff64d5 | 16 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} |
abeb34b2 | 17 | BuildRequires: gettext-tools |
779166a3 | 18 | BuildRequires: glib2-devel >= 1:2.26.0 |
d955c2fc | 19 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
a98605da | 20 | BuildRequires: intltool >= 0.35.0 |
fbbc310b | 21 | BuildRequires: libfprint-devel >= 1.90.6 |
374c8554 | 22 | %{?with_apidocs:BuildRequires: libxml2-progs} |
e5ff64d5 | 23 | %{?with_apidocs:BuildRequires: libxslt-progs} |
fbbc310b JR |
24 | BuildRequires: meson >= 0.47.0 |
25 | BuildRequires: ninja | |
f3512725 | 26 | BuildRequires: pam-devel |
fbbc310b | 27 | BuildRequires: pam_wrapper |
e5ff64d5 | 28 | BuildRequires: perl-tools-pod |
f3512725 JB |
29 | BuildRequires: pkgconfig |
30 | BuildRequires: polkit-devel >= 0.91 | |
fbbc310b JR |
31 | BuildRequires: python3-dbusmock |
32 | BuildRequires: python3-pypamtest | |
a98605da | 33 | BuildRequires: rpmbuild(macros) >= 1.644 |
b265d689 JB |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xz | |
374c8554 | 36 | Requires: libfprint >= 0.6.0 |
a98605da | 37 | Requires: systemd-units >= 38 |
f3512725 JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Daemon to offer libfprint functionality over D-Bus. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Demon oferujący funkcjonalność libfprint poprzez D-Bus. | |
45 | ||
6ffa5f15 ER |
46 | %package apidocs |
47 | Summary: fprintd API documentation | |
48 | Summary(pl.UTF-8): Dokumentacja API biblioteki fprintd | |
49 | License: GFDL v1.1+ | |
50 | Group: Documentation | |
e38e29b0 | 51 | Requires: gtk-doc-common |
d955c2fc | 52 | BuildArch: noarch |
6ffa5f15 ER |
53 | |
54 | %description apidocs | |
55 | API and internal documentation for fprintd library. | |
56 | ||
57 | %description apidocs -l pl.UTF-8 | |
58 | Dokumentacja API biblioteki fprintd. | |
59 | ||
f682564f JB |
60 | %package -n pam-pam_fprintd |
61 | Summary: PAM module for fingerprint authentication | |
62 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
63 | Group: Applications/System | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description -n pam-pam_fprintd | |
67 | PAM module for fingerprint authentication. | |
68 | ||
69 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
70 | Moduł PAM do uwierzytelniania odciskiem palca. | |
71 | ||
f3512725 | 72 | %prep |
fbbc310b | 73 | %setup -q -n %{name}-v%{version} |
f3512725 JB |
74 | |
75 | %build | |
fbbc310b JR |
76 | %meson build \ |
77 | -Dgtk_doc=%__true_false apidocs | |
f3512725 | 78 | |
fbbc310b | 79 | %meson_build -C build |
f3512725 JB |
80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 83 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 | 84 | |
fbbc310b | 85 | %meson_install -C build |
f3512725 | 86 | |
6ffa5f15 | 87 | # to -devel, but we haven't any |
779166a3 JB |
88 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml |
89 | ||
90 | %find_lang %{name} | |
e215688e | 91 | |
f3512725 JB |
92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
fbbc310b JR |
95 | %post |
96 | %systemd_post fprintd.service | |
97 | ||
98 | %preun | |
99 | %systemd_preun fprintd.service | |
100 | ||
101 | %postun | |
102 | %systemd_reload | |
103 | ||
7dc9c0a6 | 104 | %files -f %{name}.lang |
f3512725 | 105 | %defattr(644,root,root,755) |
6ffa5f15 | 106 | %doc AUTHORS NEWS README TODO |
e215688e | 107 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf |
f3512725 JB |
108 | %attr(755,root,root) %{_bindir}/fprintd-delete |
109 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
110 | %attr(755,root,root) %{_bindir}/fprintd-list | |
111 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
d2194e06 | 112 | %attr(755,root,root) %{_libexecdir}/fprintd |
f3512725 | 113 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service |
fbbc310b | 114 | %{_datadir}/dbus-1/system.d/net.reactivated.Fprint.conf |
f3512725 | 115 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy |
a98605da | 116 | %{systemdunitdir}/fprintd.service |
f3512725 | 117 | %{_mandir}/man1/fprintd.1* |
e215688e | 118 | %dir %attr(700,root,root) /var/lib/fprint |
f682564f JB |
119 | |
120 | %files -n pam-pam_fprintd | |
121 | %defattr(644,root,root,755) | |
122 | %doc pam/README | |
123 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
fbbc310b | 124 | %{_mandir}/man8/pam_fprintd.8* |
6ffa5f15 ER |
125 | |
126 | %if %{with apidocs} | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
e5ff64d5 | 129 | %{_gtkdocdir}/fprintd |
6ffa5f15 | 130 | %endif |