cvsdist 6acb654
Summary: Access control list utilities.
cvsdist 6acb654
Name: acl
cvsdist d2639ac
Version: 2.2.7
cvsdist d2639ac
Release: 2
cvsdist 6acb654
BuildRoot: %{_tmppath}/%{name}-root
cvsdist d2639ac
BuildRequires: libattr-devel >= 2.4.1
cvsdist 0d74a60
Source: http://acl.bestbits.at/current/tar/acl-%{version}.src.tar.gz
cvsdist d2639ac
Patch0: acl-2.2.3-multilib.patch
cvsdist 0d74a60
BuildRequires: autoconf
cvsdist 0d74a60
License: GPL
cvsdist 6acb654
Group: System Environment/Base
cvsdist 6acb654
URL: http://acl.bestbits.at/
cvsdist 6acb654
cvsdist 6acb654
%description
cvsdist 6acb654
This package contains the getfacl and setfacl utilities needed for
cvsdist 6acb654
manipulating access control lists.
cvsdist 6acb654
cvsdist 6acb654
%package -n libacl
cvsdist 6acb654
Summary: Dynamic library for access control list support.
cvsdist 6acb654
Copyright: LGPL
cvsdist 6acb654
Group: System Environment/Libraries
cvsdist 6acb654
Prereq: /sbin/ldconfig
cvsdist 6acb654
cvsdist 6acb654
%description -n libacl
cvsdist 6acb654
This package contains the libacl.so dynamic library which contains
cvsdist 6acb654
the POSIX 1003.1e draft standard 17 functions for manipulating access
cvsdist 6acb654
control lists.
cvsdist 6acb654
cvsdist 6acb654
%package -n libacl-devel
cvsdist 6acb654
Summary: Access control list static libraries and headers.
cvsdist 6acb654
Copyright: LGPL
cvsdist 6acb654
Group: Development/Libraries
cvsdist 6acb654
Requires: libacl
cvsdist 6acb654
cvsdist 6acb654
%description -n libacl-devel
cvsdist 6acb654
This package contains static libraries and header files needed to develop
cvsdist 6acb654
programs which make use of the access control list programming interface
cvsdist 6acb654
defined in POSIX 1003.1e draft standard 17.
cvsdist 6acb654
cvsdist 6acb654
%prep
cvsdist 0d74a60
%setup -q
cvsdist d2639ac
%patch0 -p1 -b .multilib
cvsdist 0d74a60
autoconf
cvsdist 6acb654
cvsdist 6acb654
%build
cvsdist cae5d51
touch .census
cvsdist 0d74a60
# acl abuses libexecdir
cvsdist 0d74a60
%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
cvsdist d2639ac
make LIBTOOL="libtool --tag=CC"
cvsdist 6acb654
cvsdist 6acb654
%install
cvsdist 0d74a60
rm -rf $RPM_BUILD_ROOT
cvsdist 6acb654
DIST_ROOT="$RPM_BUILD_ROOT"
cvsdist 6acb654
DIST_INSTALL=`pwd`/install.manifest
cvsdist 6acb654
DIST_INSTALL_DEV=`pwd`/install-dev.manifest
cvsdist 6acb654
DIST_INSTALL_LIB=`pwd`/install-lib.manifest
cvsdist 6acb654
export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
cvsdist 6acb654
make install DIST_MANIFEST="$DIST_INSTALL"
cvsdist 6acb654
make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
cvsdist 6acb654
make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
cvsdist 0d74a60
cvsdist 0d74a60
chmod +x ${RPM_BUILD_ROOT}/%{_lib}/libacl.so.*
cvsdist 0d74a60
cvsdist 6acb654
files()
cvsdist 6acb654
{
cvsdist 6acb654
	sort | uniq | awk ' 
cvsdist cae5d51
$1 == "d" { 
cvsdist cae5d51
	    if (match ($6, "/usr/include/acl"))
cvsdist cae5d51
		printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); } 
cvsdist 6acb654
$1 == "f" { if (match ($6, "/usr/share/man") || match ($6, "/usr/share/doc/acl"))
cvsdist 6acb654
		printf ("%%%%doc ");
cvsdist 6acb654
	    if (match ($6, "/usr/share/man"))
cvsdist 6acb654
		printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6);
cvsdist 6acb654
	    else
cvsdist 6acb654
		printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); }
cvsdist 6acb654
$1 == "l" { if (match ($3, "/usr/share/man") || match ($3, "/usr/share/doc/acl"))
cvsdist 6acb654
		printf ("%%%%doc ");
cvsdist 6acb654
	    if (match ($3, "/usr/share/man"))
cvsdist 0d74a60
		printf ("%%%%attr(0777,root,root) %s*\n", $3);
cvsdist 6acb654
	    else
cvsdist 0d74a60
		printf ("%%%%attr(0777,root,root) %s\n", $3); }'
cvsdist 6acb654
}
cvsdist 6acb654
set +x
cvsdist 6acb654
files < "$DIST_INSTALL" > files.rpm
cvsdist 6acb654
files < "$DIST_INSTALL_DEV" > filesdevel.rpm
cvsdist 6acb654
files < "$DIST_INSTALL_LIB" > fileslib.rpm
cvsdist 6acb654
set -x
cvsdist 6acb654
cvsdist 6acb654
%clean
cvsdist 0d74a60
rm -rf $RPM_BUILD_ROOT
cvsdist 6acb654
cvsdist 6acb654
%post -n libacl -p /sbin/ldconfig
cvsdist 6acb654
cvsdist 6acb654
%postun -n libacl -p /sbin/ldconfig
cvsdist 6acb654
cvsdist 6acb654
%files -f files.rpm
cvsdist 6acb654
cvsdist 6acb654
%files -n libacl-devel -f filesdevel.rpm
cvsdist 6acb654
cvsdist 6acb654
%files -n libacl -f fileslib.rpm
cvsdist 6acb654
cvsdist 6acb654
%changelog
cvsdist d2639ac
* Tue Aug  5 2003 Elliot Lee <sopwith@redhat.com> 2.2.7-2
cvsdist d2639ac
- Fix libtool invocation
cvsdist d2639ac
cvsdist d2639ac
* Tue Jun  3 2003 Stephen C. Tweedie <sct@redhat.com> 2.2.7-1
cvsdist d2639ac
- Update to acl-2.2.7
cvsdist d2639ac
cvsdist d2639ac
* Wed Mar 26 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.3-2
cvsdist d2639ac
- include patch from Jay Berkenbilt to print better error messages
cvsdist d2639ac
cvsdist 0d74a60
* Tue Jan 28 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.3-1
cvsdist 0d74a60
- udpate/rebuild
cvsdist 0d74a60
cvsdist 0d74a60
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 2.0.11-7
cvsdist 0d74a60
- set execute bits on library so that requires are generated.
cvsdist 0d74a60
cvsdist 0d74a60
* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.0.11-5
cvsdist 0d74a60
- Correct patch in previous fix so that shared libraries go in /lib* 
cvsdist 0d74a60
  instead of /usr/lib*
cvsdist 0d74a60
cvsdist 0d74a60
* Tue Nov 19 2002 Elliot Lee <sopwith@redhat.com> 2.0.11-4
cvsdist 0d74a60
- Fix multilibbing
cvsdist 0d74a60
cvsdist 0d74a60
* Wed Sep 11 2002 Than Ngo <than@redhat.com> 2.0.11-3
cvsdist 0d74a60
- Added fix to install libs in correct directory on 64bit machine
cvsdist 0d74a60
cvsdist cae5d51
* Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-2
cvsdist cae5d51
- Made the package only own the one directory that is unique to it:
cvsdist cae5d51
  /usr/include/acl
cvsdist cae5d51
cvsdist 6acb654
* Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-1
cvsdist 6acb654
- Initial Red Hat package
cvsdist 6acb654
  Made as few changes as possible relative to upstream packaging to
cvsdist 6acb654
  make it easier to maintain long-term.  This means that some of
cvsdist 6acb654
  the techniques used here are definitely not standard Red Hat
cvsdist 6acb654
  techniques.  If you are looking for an example package to fit
cvsdist 6acb654
  into Red Hat Linux transparently, this would not be the one to
cvsdist 6acb654
  pick.
cvsdist 6acb654
- acl-devel -> libacl-devel