Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 4996206cca8efabf74974d5720e5225c > files > 3

fprintd-0.4.1-1.mga2.src.rpm


%define with_doc 1
%{?_with_doc: %{expand: %%global with_doc 1}}

Name:       fprintd
Version:    0.4.1
Release:    %mkrel 1
Summary:    D-Bus service for Fingerprint reader access

Group:      System/Kernel and hardware
License:    GPLv2+
# git clone git://projects.reactivated.net/~dsd/fprintd.git
# cd fprintd
# git reset --hard %{long_hash}
# ./autogen.sh && make distcheck
# mv fprintd-0.1.tar.bz2 fprintd-0.1-%{short_hash}.tar.bz2
Source0:    http://people.freedesktop.org/~hadess/fprintd-%{version}.tar.bz2
Patch4:     fprintd-0.4.1-fix-doc.patch
Url:        http://www.freedesktop.org/wiki/Software/fprint/fprintd

BuildRequires:  dbus-glib-devel
BuildRequires:  pam-devel
BuildRequires:  libfprint-devel >= 0.1.0
BuildRequires:  polkit-1-devel
%if %{with_doc}
BuildRequires:  gtk-doc
%endif
BuildRequires:  intltool
BuildRequires:  autoconf 
BuildRequires:  automake 
BuildRequires:  libtool

%description
D-Bus service to access fingerprint readers.

%files -f %name.lang
%defattr(-,root,root,-)
%doc README COPYING AUTHORS TODO
%{_bindir}/fprintd-*
%{_libexecdir}/fprintd
# FIXME This file should be marked as config when it does something useful
%{_sysconfdir}/fprintd.conf
%{_sysconfdir}/dbus-1/system.d/net.reactivated.Fprint.conf
%{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service
%{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy
%{_localstatedir}/lib/fprint
%_mandir/man1/fprintd.*

#--------------------------------------------------------------------

%package    pam
Summary:    PAM module for fingerprint authentication
Requires:   %{name} = %{version}-%{release}
# Note that we obsolete pam_fprint, but as the configuration
# is different, it will be mentioned in the release notes
Provides:   pam_fprint = %{version}-%{release}
Obsoletes:  pam_fprint < 0.2-5

Group:      System/Kernel and hardware
License:    GPLv2+

%description pam
PAM module that uses the fprintd D-Bus service for fingerprint
authentication.

%files pam
%defattr(-,root,root,-)
%doc pam/README
/%{_lib}/security/pam_fprintd.so

#--------------------------------------------------------------------

%package devel
Summary:    Development files for %{name}
Requires:   %{name} = %{version}-%{release}
Requires:   gtk-doc
Group:      Development/Other
License:    GFDLv1.1+

%description devel
Development documentation for fprintd, the D-Bus service for
fingerprint readers access.

%files devel
%defattr(-,root,root,-)
%if %{with_doc}
%{_datadir}/gtk-doc/html/fprintd
%endif
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch4 -p0

autoreconf -i -f

%if %{with_doc}
%__cp doc/fprintd-sections.txt doc/html-sections.txt
%endif

%build

%configure \
%if %{with_doc}
           --enable-gtk-doc \
%endif
           --enable-pam --libdir=/%{_lib}/

make

%install
rm -rf %{buildroot}
%makeinstall_std
mkdir -p %{buildroot}/%{_localstatedir}/lib/fprint

rm -f %{buildroot}/%{_lib}/security/pam_fprintd.{a,la,so.*}
%find_lang %name

%clean
rm -rf %{buildroot}




%changelog

* Sat Aug 27 2011 tv <tv> 0.4.1-1.mga2
+ Revision: 135643
- fix file list
- drop merged patch
- rediff patch 4
- new release
- new URL

* Mon Feb 07 2011 mikala <mikala> 0.1-1.git04fd09cfa.5.mga1
+ Revision: 48753
- imported package fprintd