File pam_apparmor.spec of Package pam_apparmor

#
# spec file for package pam_apparmor (Version 2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           pam_apparmor
License:        GPL v2 or later
Group:          Productivity/Security
AutoReqProv:    on
Version:        2.3
Release:        2
Summary:        PAM module to add AppArmor change_hat functionality to session-aware applications
Url:            http://forge.novell.com/modules/xfmod/project/?apparmor
Source:         pam_apparmor-%{version}-906.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libapparmor-devel pam-devel
Requires:       pam
PreReq:         pam

%description
The pam_apparmor module provides the means for any PAM applications
that call pam_open_session() to automatically perform an AppArmor
change_hat operation in order to switch to a user-specific security
policy.



Authors:
--------
    jmichael@suse.de
    sbeattie@suse.de

%prep
%setup -q

%build
make CFLAGS="${RPM_OPT_FLAGS}"

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install DESTDIR=${RPM_BUILD_ROOT} SECDIR=${RPM_BUILD_ROOT}/%{_lib}/security

%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}

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

%changelog
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Tue Apr 08 2008 jjohansen@suse.de
- Bump version to 2.3 in preparation for AppArmor 2.3 code drop
* Mon Jul 30 2007 sbeattie@suse.de
- Convert libapparmor builddep to libapparmor-devel
* Tue Mar 13 2007 jmichael@suse.de
- Use pam_modutil_* wrapper functions when possible
* Tue Oct 31 2006 jmichael@suse.de
- Add debug option
* Tue Oct 31 2006 sbeattie@suse.de
- Add configuration options to order attempted hat changes
* Wed Oct 25 2006 sbeattie@suse.de
- remove auto-editing of pam's common-session
- honor RPM's CFLAGS when building
- add license (same as Linux PAM package).
* Thu Sep 14 2006 jmichael@suse.de
- header comment was incorrect
- use pam_get_user() instead of pam_get_item()
- fix read from urandom if 0
* Fri Jan 13 2006 sbeattie@suse.de
- Add svn repo number to tarball
* Fri Jan 13 2006 jmichael@suse.de
- Make magic tokens harder to guess by pulling them from /dev/urandom
* Wed Dec 21 2005 jmichael@suse.de
- initial
openSUSE Build Service is sponsored by