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