1Summary: Access control list utilities.
2Name: @pkg_name@
3Version: @pkg_version@
4Release: @pkg_release@
5Packager: Silicon Graphics, Inc. <http://www.sgi.com/>
6BuildRoot: @build_root@
7Source: @pkg_name@-@pkg_version@.src.tar.gz
8License: GPL
9Vendor: Silicon Graphics, Inc.
10Group: System Environment/Base
11URL: http://acl.bestbits.at/
12
13%description
14This package contains the getfacl and setfacl utilities needed for
15manipulating access control lists.
16
17%package -n libacl
18Summary: Dynamic library for access control list support.
19Group: Development/Libraries
20Prereq: /sbin/ldconfig
21
22%description -n libacl
23This package contains the libacl.so dynamic library which contains
24the POSIX 1003.1e draft standard 17 functions for manipulating access
25control lists.
26
27%package -n libacl-devel
28Summary: Access control list static libraries and headers.
29Group: Development/Libraries
30Requires: libacl
31Provides: acl-devel
32Obsoletes: acl-devel
33
34%description -n libacl-devel
35This package contains static libraries and header files needed to develop
36programs which make use of the access control list programming interface
37defined in POSIX 1003.1e draft standard 17.
38
39%prep
40if [ -f .census ] ; then
41   if [ ! -d ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} ] ; then
42      ln -s . ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
43   fi
44else
45%setup
46@make@ configure
47fi
48
49%build
50@make@
51
52%install
53DIST_ROOT="$RPM_BUILD_ROOT"
54DIST_INSTALL=`pwd`/install.manifest
55DIST_INSTALL_DEV=`pwd`/install-dev.manifest
56DIST_INSTALL_LIB=`pwd`/install-lib.manifest
57export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
58@make@ install DIST_MANIFEST="$DIST_INSTALL"
59@make@ -C build/rpm rpmfiles DIST_MANIFEST="$DIST_INSTALL"
60@make@ install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
61@make@ -C build/rpm rpmfiles-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
62@make@ install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
63@make@ -C build/rpm rpmfiles-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post -n libacl -p /sbin/ldconfig
69
70%postun -n libacl -p /sbin/ldconfig
71
72%files -f build/rpm/rpmfiles
73
74%files -n libacl-devel -f build/rpm/rpmfiles-dev
75
76%files -n libacl -f build/rpm/rpmfiles-lib
77