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