1 Summary: Command and library for manipulating access control lists
2 Summary(pl): Polecenie i biblioteka do manipulacji listami kontroli dostêpu (ACL)
6 License: GPL v2 (chacl utility), LGPL v2+ (library and the rest)
7 Group: Applications/System
8 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 # Source0-md5: 585131965e8a2475b8212075a6eeb5c3
10 Patch0: %{name}-miscfix.patch
11 URL: http://oss.sgi.com/projects/xfs/
12 BuildRequires: attr-devel >= 2.4.12
13 BuildRequires: autoconf
14 BuildRequires: automake
15 Requires: attr >= 2.4.12
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _libexecdir /usr/lib
23 A command (chacl) and a library (libacl) to manipulate POSIX access
24 control lists under Linux.
27 Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
28 POSIX listami kontroli dostêpu (ACL) pod Linuksem.
31 Summary: Header files for acl library
32 Summary(pl): Pliki nag³ówkowe biblioteki acl
33 Group: Development/Libraries
34 Requires: %{name} = %{version}
38 Header files to develop software which manipulate access control
41 %description devel -l pl
42 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
43 listami kontroli dostêpu (ACL).
46 Summary: Static acl library
47 Summary(pl): Statyczna biblioteka acl
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}
54 %description static -l pl
55 Statyczna biblioteka acl.
62 #DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
67 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
68 OPTIMIZER="%{rpmcflags}"
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
76 DIST_ROOT=$RPM_BUILD_ROOT
77 DIST_INSTALL=`pwd`/install.manifest
78 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
79 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
80 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
83 DIST_MANIFEST=$DIST_INSTALL
84 %{__make} install-dev \
85 DIST_MANIFEST=$DIST_INSTALL_DEV
86 %{__make} install-lib \
87 DIST_MANIFEST=$DIST_INSTALL_LIB
89 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
90 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
91 echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
92 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
93 echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
94 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
95 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
97 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
98 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
99 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
111 %doc README doc/{CHANGES,TODO}
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
117 %defattr(644,root,root,755)
118 %doc doc/{extensions.txt,libacl.txt}
119 %attr(755,root,root) %{_libexecdir}/lib*.so
120 %{_libexecdir}/lib*.la
126 %defattr(644,root,root,755)
127 %{_libexecdir}/lib*.a