1 Summary: Command for manipulating access control lists
2 Summary(pl): Komenda 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: 179890f6dbd0b31701713947e6b8270f
10 Patch0: %{name}-miscfix.patch
11 URL: http://oss.sgi.com/projects/xfs/
12 BuildRequires: attr-devel >= 2.4.1
13 BuildRequires: autoconf
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libexecdir /usr/lib
22 A command (chacl) to manipulate POSIX access control lists under
26 Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
27 dostêpu (ACL) pod Linuksem.
30 Summary: Header files for acl library
31 Summary(pl): Pliki nag³ówkowe biblioteki acl
32 Group: Development/Libraries
33 Requires: %{name} = %{version}
36 Header files to develop software which manipulate access control
39 %description devel -l pl
40 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
41 listami kontroli dostêpu (ACL).
44 Summary: Static acl library
45 Summary(pl): Statyczna biblioteka acl
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}
52 %description static -l pl
53 Statyczna biblioteka acl.
60 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
70 DIST_ROOT=$RPM_BUILD_ROOT
71 DIST_INSTALL=`pwd`/install.manifest
72 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
73 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
74 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
77 DIST_MANIFEST=$DIST_INSTALL
78 %{__make} install-dev \
79 DIST_MANIFEST=$DIST_INSTALL_DEV
80 %{__make} install-lib \
81 DIST_MANIFEST=$DIST_INSTALL_LIB
83 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
84 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
85 echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
86 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
87 echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
88 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
89 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
91 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
92 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT/lib ; echo libacl.so.*.*.*) \
93 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc README doc/{CHANGES,TODO}
106 %attr(755,root,root) %{_bindir}/*
107 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111 %defattr(644,root,root,755)
112 %doc doc/{extensions.txt,libacl.txt}
113 %attr(755,root,root) %{_libexecdir}/lib*.so
114 %{_libexecdir}/lib*.la
120 %defattr(644,root,root,755)
121 %{_libexecdir}/lib*.a