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