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 Patch0: %{name}-miscfix.patch
10 URL: http://oss.sgi.com/projects/xfs/
11 BuildRequires: autoconf
12 BuildRequires: attr-devel >= 2.4.1
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _libexecdir /usr/lib
21 A command (chacl) to manipulate POSIX access control lists under
25 Komenda (chacl) do manipulowania zgodnymi z POSIX listami kontroli
26 dostêpu (ACL) pod Linuksem.
29 Summary: Header files for acl library
30 Summary(pl): Pliki nag³ówkowe biblioteki acl
31 Group: Development/Libraries
32 Requires: %{name} = %{version}
35 Header files to develop software which manipulate access control
38 %description devel -l pl
39 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
40 listami kontroli dostêpu (ACL).
43 Summary: Static acl library
44 Summary(pl): Statyczna biblioteka acl
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}
51 %description static -l pl
52 Statyczna biblioteka acl.
59 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_includedir}/acl
69 DIST_ROOT="$RPM_BUILD_ROOT"
70 DIST_INSTALL=`pwd`/install.manifest
71 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
72 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
73 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
74 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
75 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
76 %{__make} install-lib DIST_MANIFEST="$DIST_INSTALL_LIB"
78 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3
79 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
80 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
81 echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
82 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
83 echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
84 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
85 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
87 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
88 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT/lib ; echo libacl.so.*.*.*) \
89 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc README doc/{CHANGES,TODO}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
107 %defattr(644,root,root,755)
108 %doc doc/{extensions.txt,libacl.txt}
109 %attr(755,root,root) %{_libexecdir}/lib*.so
110 %{_libexecdir}/lib*.la
116 %defattr(644,root,root,755)
117 %{_libexecdir}/lib*.a