]>
Commit | Line | Data |
---|---|---|
1 | # TODO: systemd post/preun | |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without apidocs # do not build and package API docs | |
5 | ||
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 | |
9 | Version: 0.5.1 | |
10 | Release: 3 | |
11 | License: GPL v2+ | |
12 | Group: Libraries | |
13 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: e9b40ab0298a50d28b6af728e2a40a1b | |
15 | Patch0: %{name}-pod.patch | |
16 | URL: http://www.reactivated.net/fprint/wiki/Fprintd | |
17 | BuildRequires: dbus-glib-devel | |
18 | %{?with_apidocs:BuildRequires: docbook-dtd412-xml} | |
19 | BuildRequires: gettext-tools | |
20 | BuildRequires: glib2-devel >= 1:2.26.0 | |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} | |
22 | BuildRequires: intltool >= 0.35.0 | |
23 | BuildRequires: libfprint-devel >= 0.5.0 | |
24 | %{?with_apidocs:BuildRequires: libxslt-progs} | |
25 | BuildRequires: pam-devel | |
26 | BuildRequires: perl-tools-pod | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: polkit-devel >= 0.91 | |
29 | BuildRequires: rpmbuild(macros) >= 1.644 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | Requires: libfprint >= 0.5.0 | |
33 | Requires: systemd-units >= 38 | |
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 | ||
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 | |
47 | Requires: gtk-doc-common | |
48 | %if "%{_rpmversion}" >= "5" | |
49 | BuildArch: noarch | |
50 | %endif | |
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 | ||
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 | ||
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p1 | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | --disable-silent-rules \ | |
77 | --disable-static \ | |
78 | %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} | |
79 | ||
80 | %{__make} \ | |
81 | pammoddir=/%{_lib}/security | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | install -d $RPM_BUILD_ROOT/var/lib/fprint | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT \ | |
88 | pammoddir=/%{_lib}/security | |
89 | ||
90 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la | |
91 | ||
92 | # to -devel, but we haven't any | |
93 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml | |
94 | ||
95 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{bg_BG,bg} | |
96 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} | |
97 | ||
98 | %find_lang %{name} | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %files -f %{name}.lang | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS NEWS README TODO | |
106 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf | |
107 | %attr(755,root,root) %{_bindir}/fprintd-delete | |
108 | %attr(755,root,root) %{_bindir}/fprintd-enroll | |
109 | %attr(755,root,root) %{_bindir}/fprintd-list | |
110 | %attr(755,root,root) %{_bindir}/fprintd-verify | |
111 | %attr(755,root,root) %{_libdir}/fprintd | |
112 | /etc/dbus-1/system.d/net.reactivated.Fprint.conf | |
113 | %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service | |
114 | %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy | |
115 | %{systemdunitdir}/fprintd.service | |
116 | %{_mandir}/man1/fprintd.1* | |
117 | %dir %attr(700,root,root) /var/lib/fprint | |
118 | ||
119 | %files -n pam-pam_fprintd | |
120 | %defattr(644,root,root,755) | |
121 | %doc pam/README | |
122 | %attr(755,root,root) /%{_lib}/security/pam_fprintd.so | |
123 | ||
124 | %if %{with apidocs} | |
125 | %files apidocs | |
126 | %defattr(644,root,root,755) | |
127 | %{_gtkdocdir}/fprintd | |
128 | %endif |