a538227c5df52d09d7871fc5bbe19fdf37c30450
[packages/fprintd.git] / fprintd.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4
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
8 Version:        0.4.1
9 Release:        2
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.bz2
13 # Source0-md5:  021844be151c0cb22d0c1624233b7780
14 URL:            http://www.reactivated.net/fprint/wiki/Fprintd
15 BuildRequires:  autoconf
16 BuildRequires:  dbus-glib-devel
17 %{?with_apidocs:BuildRequires:  docbook-dtd412-xml}
18 BuildRequires:  gettext-devel
19 BuildRequires:  glib2-devel >= 1:2.26.0
20 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.3}
21 BuildRequires:  intltool
22 BuildRequires:  libfprint-devel >= 0.4.0
23 %{?with_apidocs:BuildRequires:  libxslt-progs}
24 BuildRequires:  pam-devel
25 BuildRequires:  perl-tools-pod
26 BuildRequires:  pkgconfig
27 BuildRequires:  polkit-devel >= 0.91
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Daemon to offer libfprint functionality over D-Bus.
32
33 %description -l pl.UTF-8
34 Demon oferujący funkcjonalność libfprint poprzez D-Bus.
35
36 %package apidocs
37 Summary:        fprintd API documentation
38 Summary(pl.UTF-8):      Dokumentacja API biblioteki fprintd
39 License:        GFDL v1.1+
40 Group:          Documentation
41 Requires:       gtk-doc-common
42
43 %description apidocs
44 API and internal documentation for fprintd library.
45
46 %description apidocs -l pl.UTF-8
47 Dokumentacja API biblioteki fprintd.
48
49 %package -n pam-pam_fprintd
50 Summary:        PAM module for fingerprint authentication
51 Summary(pl.UTF-8):      Moduł PAM do uwierzytelniania odciskiem palca
52 Group:          Applications/System
53 Requires:       %{name} = %{version}-%{release}
54
55 %description -n pam-pam_fprintd
56 PAM module for fingerprint authentication.
57
58 %description -n pam-pam_fprintd -l pl.UTF-8
59 Moduł PAM do uwierzytelniania odciskiem palca.
60
61 %prep
62 %setup -q
63
64 %build
65 %configure \
66         --disable-silent-rules \
67         --disable-static \
68         %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}}
69
70 %{__make} \
71         pammoddir=/%{_lib}/security
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT/var/lib/fprint
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT \
78         pammoddir=/%{_lib}/security
79
80 %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_fprintd.la
81
82 # to -devel, but we haven't any
83 %{__rm} $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.*.xml
84
85 %find_lang %{name}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc AUTHORS NEWS README TODO
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fprintd.conf
94 %attr(755,root,root) %{_bindir}/fprintd-delete
95 %attr(755,root,root) %{_bindir}/fprintd-enroll
96 %attr(755,root,root) %{_bindir}/fprintd-list
97 %attr(755,root,root) %{_bindir}/fprintd-verify
98 %attr(755,root,root) %{_libdir}/fprintd
99 %{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service
100 %{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy
101 /etc/dbus-1/system.d/net.reactivated.Fprint.conf
102 %{_mandir}/man1/fprintd.1*
103 %dir %attr(700,root,root) /var/lib/fprint
104
105 %files -n pam-pam_fprintd
106 %defattr(644,root,root,755)
107 %doc pam/README
108 %attr(755,root,root) /%{_lib}/security/pam_fprintd.so
109
110 %if %{with apidocs}
111 %files apidocs
112 %defattr(644,root,root,755)
113 %{_gtkdocdir}/fprintd
114 %endif
This page took 0.030312 seconds and 2 git commands to generate.