File pam_apparmor.spec of Package pam_apparmor

#
# spec file for package pam_apparmor (Version 2.3)
#
# 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


Name:           pam_apparmor
License:        GPL v2 or later
Group:          Productivity/Security
AutoReqProv:    on
Version:        2.3
Release:        51
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
openSUSE Build Service is sponsored by