File pam_fp.spec of Package pam_fp

#
# spec file for package pam_fp (Version 0.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild
# nodebuginfo

Url:            http://sf.net/projects/thinkfinger

Name:           pam_fp
Summary:        PAM module to be used with libfprint
BuildRequires:  coreutils libfprint-devel pam-devel pkgconfig
PreReq:         coreutils pam pam-config
Requires:       libfprint0 > 0.0.6-8.17
# on biarch platforms we need to have it before the call of pam-config
Recommends:     yast2-fingerprint-reader
Obsoletes:      pam_thinkfinger <= 0.3
Provides:       pam_thinkfinger = 0.3
Version:        0.1
Release:        11.<RELEASE7>
License:        GPL v2 or later
Group:          Productivity/Security
Source0:        %{name}-%{version}.tar.bz2
Source1:        pam_fp-uinput
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExcludeArch:    s390 s390x
%ifarch x86_64 ppc64
Recommends:     pam_fp-32bit = %{version}
%endif
%ifarch ppc
Recommends:     pam_fp-64bit = %{version}
%endif
Supplements:    modalias(usb:v08FFp1600d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v08FFp2580d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v08FFp5501d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v1162p0300d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v0483p2015d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v0483p2016d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045Ep00BBd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045Ep00BCd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045Ep00BDd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045Ep00CAd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v05BAp0007d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v05BAp000Ad*dc*dsc*dp*ic*isc*ip*)

%description
pam_fp is a PAM module for fingerprint reader support to be used with
libfprint. A list of compatible fingerprint readers can be found at
http://reactivated.net/fprint/wiki/Supported_devices .



Authors:
--------
    Timo Hoenig <thoenig@suse.de>

%prep
%setup
cp %{S:1} .

%build
./configure CFLAGS="$RPM_OPT_FLAGS"				\
	    --enable-static=no					\
            --prefix=%{_prefix}					\
	    --libdir=%{_libdir}					\
	    --mandir=%{_mandir}					\
	    --includedir=%{_includedir}				\
	    --with-securedir=/%{_lib}/security
make

%install
install -Dm 644 pam_fp-uinput %{buildroot}/etc/modprobe.d/pam_fp-uinput
make DESTDIR=${RPM_BUILD_ROOT} install

%clean
rm -rf %{_buildroot}

%postun
if [ "$1" == "0" ]; then
	%{_sbindir}/pam-config -d --fp ||:
fi

%files -n pam_fp
%defattr(-,root,root)
%doc README COPYING
%config %{_sysconfdir}/modprobe.d/pam_fp-uinput
%dir %{_sysconfdir}/modprobe.d/
/%_lib/security/pam_fp.so

%changelog
* Thu May 14 2009 thoenig@suse.de
- add Requires: libfprint0 > 0.0.6-8.17 for online update
* Tue Jan 27 2009 thoenig@suse.de
- try to settle the USB device in case a password was used for
  login (bnc#463557)
- use waitpid(2) rather than wait(2), patch by Mischa Salle
  (bnc#441144)
- cleanups for pam_fp_libfprint_deinit, based on a patch by Mischa
  Salle (bnc#441144)
* Fri Nov 28 2008 kukuk@suse.de
- Ignore pam-config return value if we delete PAM module [bnc#450019]
* Thu Nov 06 2008 thoenig@suse.de
- do not require libfprint0 explicitly
* Thu Nov 06 2008 thoenig@suse.de
- don't crash if user is invalid (bnc#442222)
* Wed Nov 05 2008 thoenig@suse.de
- move supplementing USB IDs from libfprint0 to pam_fp (bnc#441754)
* Tue Oct 28 2008 thoenig@suse.de
- remove empty %%post
- do not execute pam-config -d --fp for updates
- Provides/Obsoletes: pam_thinkfinger
* Mon Oct 27 2008 ro@suse.de
- re-add s390 to ExcludeArch list (not just s390x)
* Mon Oct 27 2008 thoenig@suse.de
- correct usage of pam_syslog (bnc#433048)
- use blocking pipe (bnc#433048)
- initialize signal handler structures with 0 (bnc#433048)
* Mon Oct 20 2008 thoenig@suse.de
- fix stderr output (bnc#436904)
- don't enable PAM module by default.  This is handled by
  yast2-fingerprint-reader
* Mon Oct 20 2008 thoenig@suse.de
- add ExcludeArch s390x
* Sun Oct 19 2008 thoenig@suse.de
- fix merged descriptions
* Thu Oct 16 2008 ro@suse.de
- handle error in postinstall more gracefully
* Thu Oct 09 2008 thoenig@suse.de
- use soft requirements for -32bit (x86_64, s390x, ppc64) and
  -64bit (ppc)
* Tue Oct 07 2008 thoenig@suse.de
- close stderr early
* Tue Oct 07 2008 thoenig@suse.de
- add proper signal handling for SIGCHLD
* Mon Oct 06 2008 thoenig@suse.de
- initial version pam_fp 0.1 (FATE#300416)
openSUSE Build Service is sponsored by