]>
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 ER |
52 | %if "%{_rpmversion}" >= "5" |
53 | BuildArch: noarch | |
54 | %endif | |
6ffa5f15 ER |
55 | |
56 | %description apidocs | |
57 | API and internal documentation for fprintd library. | |
58 | ||
59 | %description apidocs -l pl.UTF-8 | |
60 | Dokumentacja API biblioteki fprintd. | |
61 | ||
f682564f JB |
62 | %package -n pam-pam_fprintd |
63 | Summary: PAM module for fingerprint authentication | |
64 | Summary(pl.UTF-8): Moduł PAM do uwierzytelniania odciskiem palca | |
65 | Group: Applications/System | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | ||
68 | %description -n pam-pam_fprintd | |
69 | PAM module for fingerprint authentication. | |
70 | ||
71 | %description -n pam-pam_fprintd -l pl.UTF-8 | |
72 | Moduł PAM do uwierzytelniania odciskiem palca. | |
73 | ||
f3512725 | 74 | %prep |
fbbc310b | 75 | %setup -q -n %{name}-v%{version} |
f3512725 JB |
76 | |
77 | %build | |
fbbc310b JR |
78 | %meson build \ |
79 | -Dgtk_doc=%__true_false apidocs | |
f3512725 | 80 | |
fbbc310b | 81 | %meson_build -C build |
f3512725 JB |
82 | |
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
e215688e | 85 | install -d $RPM_BUILD_ROOT/var/lib/fprint |
f3512725 | 86 | |
fbbc310b | 87 | %meson_install -C build |
f3512725 | 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 | ||
92 | %find_lang %{name} | |
e215688e | 93 | |
f3512725 JB |
94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
fbbc310b JR |
97 | %post |
98 | %systemd_post fprintd.service | |
99 | ||
100 | %preun | |
101 | %systemd_preun fprintd.service | |
102 | ||
103 | %postun | |
104 | %systemd_reload | |
105 | ||
7dc9c0a6 | 106 | %files -f %{name}.lang |
f3512725 | 107 | %defattr(644,root,root,755) |
6ffa5f15 | 108 | %doc AUTHORS NEWS README TODO |
e215688e | 109 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf |
f3512725 JB |
110 | %attr(755,root,root) %{_bindir}/fprintd-delete |
111 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
112 | %attr(755,root,root) %{_bindir}/fprintd-list | |
113 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
d2194e06 | 114 | %attr(755,root,root) %{_libexecdir}/fprintd |
f3512725 | 115 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service |
fbbc310b | 116 | %{_datadir}/dbus-1/system.d/net.reactivated.Fprint.conf |
f3512725 | 117 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy |
a98605da | 118 | %{systemdunitdir}/fprintd.service |
f3512725 | 119 | %{_mandir}/man1/fprintd.1* |
e215688e | 120 | %dir %attr(700,root,root) /var/lib/fprint |
f682564f JB |
121 | |
122 | %files -n pam-pam_fprintd | |
123 | %defattr(644,root,root,755) | |
124 | %doc pam/README | |
125 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
fbbc310b | 126 | %{_mandir}/man8/pam_fprintd.8* |
6ffa5f15 ER |
127 | |
128 | %if %{with apidocs} | |
129 | %files apidocs | |
130 | %defattr(644,root,root,755) | |
e5ff64d5 | 131 | %{_gtkdocdir}/fprintd |
6ffa5f15 | 132 | %endif |