cae5d51f81
Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-2 - Made the package only own the one directory that is unique to it: /usr/include/acl
107 lines
3.1 KiB
RPMSpec
107 lines
3.1 KiB
RPMSpec
Summary: Access control list utilities.
|
|
Name: acl
|
|
Version: 2.0.11
|
|
Release: 2
|
|
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
|
|
%setup
|
|
|
|
%build
|
|
touch .census
|
|
./configure
|
|
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" {
|
|
if (match ($6, "/usr/include/acl"))
|
|
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
|
|
* Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.11-2
|
|
- Made the package only own the one directory that is unique to it:
|
|
/usr/include/acl
|
|
|
|
* Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 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
|