diff --git a/.cvsignore b/.cvsignore index e69de29..541a366 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +acl-2.0.11.src.tar.gz diff --git a/acl.spec b/acl.spec new file mode 100644 index 0000000..b73a794 --- /dev/null +++ b/acl.spec @@ -0,0 +1,106 @@ +Summary: Access control list utilities. +Name: acl +Version: 2.0.11 +Release: 1 +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: libattr-devel +Source: acl-2.0.11.src.tar.gz +Copyright: GPL +Group: System Environment/Base +URL: http://acl.bestbits.at/ + +%description +This package contains the getfacl and setfacl utilities needed for +manipulating access control lists. + +%package -n libacl +Summary: Dynamic library for access control list support. +Copyright: LGPL +Group: System Environment/Libraries +Prereq: /sbin/ldconfig + +%description -n libacl +This package contains the libacl.so dynamic library which contains +the POSIX 1003.1e draft standard 17 functions for manipulating access +control lists. + +%package -n libacl-devel +Summary: Access control list static libraries and headers. +Copyright: LGPL +Group: Development/Libraries +Requires: libacl + +%description -n libacl-devel +This package contains static libraries and header files needed to develop +programs which make use of the access control list programming interface +defined in POSIX 1003.1e draft standard 17. + +%prep +if [ -f .census ] ; then + if [ ! -d ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} ] ; then + ln -s . ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} + fi +else +%setup +touch .census +./configure +fi + +%build +make + +%install +DIST_ROOT="$RPM_BUILD_ROOT" +DIST_INSTALL=`pwd`/install.manifest +DIST_INSTALL_DEV=`pwd`/install-dev.manifest +DIST_INSTALL_LIB=`pwd`/install-lib.manifest +export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB +make install DIST_MANIFEST="$DIST_INSTALL" +make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" +make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB" +files() +{ + sort | uniq | awk ' +$1 == "d" { printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); } +$1 == "f" { if (match ($6, "/usr/share/man") || match ($6, "/usr/share/doc/acl")) + printf ("%%%%doc "); + if (match ($6, "/usr/share/man")) + printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6); + else + printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); } +$1 == "l" { if (match ($3, "/usr/share/man") || match ($3, "/usr/share/doc/acl")) + printf ("%%%%doc "); + if (match ($3, "/usr/share/man")) + printf ("%attr(0777,root,root) %s*\n", $3); + else + printf ("%attr(0777,root,root) %s\n", $3); }' +} +set +x +files < "$DIST_INSTALL" > files.rpm +files < "$DIST_INSTALL_DEV" > filesdevel.rpm +files < "$DIST_INSTALL_LIB" > fileslib.rpm +set -x + +%clean +[ "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT + +%post -n libacl -p /sbin/ldconfig + +%postun -n libacl -p /sbin/ldconfig + +%files -f files.rpm + +%files -n libacl-devel -f filesdevel.rpm + +%files -n libacl -f fileslib.rpm + +%changelog +* Mon Jun 24 2002 Michael K. Johnson 2.0.11-1 +- Initial Red Hat package + Made as few changes as possible relative to upstream packaging to + make it easier to maintain long-term. This means that some of + the techniques used here are definitely not standard Red Hat + techniques. If you are looking for an example package to fit + into Red Hat Linux transparently, this would not be the one to + pick. +- acl-devel -> libacl-devel diff --git a/sources b/sources index e69de29..af0e9ef 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9cf22f0b13e3f675f2c89c8fdcba4f96 acl-2.0.11.src.tar.gz