File pam_ccreds.spec of Package pam_ccreds

#
# spec file for package pam_ccreds (Version 10)
#
# Copyright (c) 2010 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


Name:           pam_ccreds
BuildRequires:  db-devel openssl-devel pam-devel
License:        GPLv2+
Group:          Productivity/Security
AutoReqProv:    on
Version:        10
Release:        2
Summary:        Pam module to cache login credentials
Url:            http://www.padl.com/OSS/pam_ccreds.html
Source:         pam_ccreds-%{version}.tar.bz2
Source2:        baselibs.conf
Patch1:         pam_ccreds-readme-fix.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       pam, db

%description
The pam_ccreds module provides the means for Linux workstations to
locally authenticate using an enterprise identity when the network is
unavailable. Used in conjunction with the nss_updatedb utility, it
provides a mechanism for disconnected use of network directories.



Authors:
--------
    Luke Howard lukeh@padl.com

%prep
%setup -q -n pam_ccreds-%{version}
%patch1

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%{suse_update_config -f}
autoreconf --verbose --force --install
CFLAGS="$RPM_OPT_FLAGS" \
./configure --libdir=/%{_lib} --with-pamdir=/%{_lib}/security \
            --prefix=/usr 
make

%install
rm -rf $RPM_BUILD_ROOT
install -d 755 $RPM_BUILD_ROOT/%{_lib}/security
install -m 755 pam_ccreds.so $RPM_BUILD_ROOT/%{_lib}/security

%clean
#rm -rf $RPM_BUILD_ROOT

%files
%defattr(444,root,root,755)
%doc README COPYING pam.conf
%attr(555,root,root) /%{_lib}/security/pam_ccreds.so

%changelog