cvsdist 6acb65
Summary: Access control list utilities.
cvsdist 6acb65
Name: acl
cvsdist fd5da1
Version: 2.2.23
Stephen Tweedie 594c51
Release: 8
cvsdist 6acb65
BuildRoot: %{_tmppath}/%{name}-root
cvsdist d2639a
BuildRequires: libattr-devel >= 2.4.1
cvsdist 0d74a6
Source: http://acl.bestbits.at/current/tar/acl-%{version}.src.tar.gz
cvsdist d2639a
Patch0: acl-2.2.3-multilib.patch
Stephen Tweedie e36a76
BuildRequires: autoconf, libtool >= 1.5, gettext
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.
Stephen Tweedie ea7da3
License: 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.
Stephen Tweedie ea7da3
License: LGPL
cvsdist 6acb65
Group: Development/Libraries
Stephen Tweedie 327a3e
Requires: libacl, libattr-devel
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 d2639a
%patch0 -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 d2639a
make LIBTOOL="libtool --tag=CC"
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 422ff5
make install DIST_MANIFEST="$DIST_INSTALL" PKG_DOC_DIR=%{_docdir}/acl-%{version}
cvsdist 6acb65
make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
cvsdist 6acb65
make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
cvsdist 0d74a6
cvsdist 2ea67e
# Buahhh, ugly hack, but it works.
cvsdist 2ea67e
perl -pi -e 's|^f 644|f 755|' $DIST_INSTALL_LIB
Jeremy Katz 7cd4c9
chmod 755 $RPM_BUILD_ROOT/%{_lib}/*
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 422ff5
%defattr(-,root,root)
cvsdist 422ff5
%doc %{_docdir}/acl-%{version}
cvsdist 6acb65
cvsdist 6acb65
%files -n libacl-devel -f filesdevel.rpm
cvsdist 422ff5
%defattr(-,root,root)
cvsdist 422ff5
/usr/include/acl
cvsdist 6acb65
cvsdist 6acb65
%files -n libacl -f fileslib.rpm
cvsdist 6acb65
cvsdist 6acb65
%changelog
Stephen Tweedie d3928a
* Wed Feb  9 2005 Stephen C. Tweedie <sct@redhat.com> 2.2.23-6
Stephen Tweedie d3928a
- Rebuild
Stephen Tweedie d3928a
Jeremy Katz c97ed3
* Thu Sep 16 2004 Jeremy Katz <katzj@redhat.com> - 2.2.23-5
Jeremy Katz c97ed3
- make the libs executable so that we find their dependencies (#132696)
Jeremy Katz c97ed3
Stephen Tweedie 327a3e
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.23-4
Stephen Tweedie 327a3e
- libacl-devel Requires: libattr-devel for libattr.la
Stephen Tweedie 327a3e
Stephen Tweedie e36a76
* Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.23-3
Stephen Tweedie e36a76
- Requires libtool >= 1.5 for building
Stephen Tweedie e36a76
cvsdist 2ea67e
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.2.23-2
cvsdist 2ea67e
- Make libacl.so.* executable.
cvsdist 2ea67e
cvsdist fd5da1
* Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.2.23-1
cvsdist fd5da1
- Update to latest upstream version.
cvsdist fd5da1
cvsdist fd5da1
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 2.2.7-7
cvsdist fd5da1
- Close bug #125300 (Steve Grubb: build requires libtool,gettext)
cvsdist fd5da1
cvsdist 7a1a7a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 7a1a7a
- rebuilt
cvsdist 7a1a7a
cvsdist 422ff5
* Wed Mar 31 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.7-5
cvsdist 422ff5
- Add missing %defattr
cvsdist 422ff5
cvsdist 422ff5
* Tue Mar 30 2004 Stephen C. Tweedie <sct@redhat.com> 2.2.7-3
cvsdist 422ff5
- Add /usr/include/acl to files manifest
cvsdist 422ff5
- Fix location of doc files, add main doc dir to files manifest
cvsdist 422ff5
cvsdist 658c73
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 658c73
- rebuilt
cvsdist 658c73
cvsdist 658c73
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 658c73
- rebuilt
cvsdist 658c73
cvsdist d2639a
* Tue Aug  5 2003 Elliot Lee <sopwith@redhat.com> 2.2.7-2
cvsdist d2639a
- Fix libtool invocation
cvsdist d2639a
cvsdist d2639a
* Tue Jun  3 2003 Stephen C. Tweedie <sct@redhat.com> 2.2.7-1
cvsdist d2639a
- Update to acl-2.2.7
cvsdist d2639a
cvsdist d2639a
* Wed Mar 26 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.3-2
cvsdist d2639a
- include patch from Jay Berkenbilt to print better error messages
cvsdist d2639a
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