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: c448c1bee6014bc48a386c222d357873
10 Source1: %{name}-pl.po
11 Patch0: %{name}-miscfix.patch
12 URL: http://oss.sgi.com/projects/xfs/
13 BuildRequires: attr-devel >= 2.4.12
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 Requires: attr >= 2.4.12
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libdir /%{_lib}
22 %define _libexecdir /usr/%{_lib}
25 A command (chacl) and a library (libacl) to manipulate POSIX access
26 control lists under Linux.
29 Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
30 POSIX listami kontroli dostêpu (ACL) pod Linuksem.
33 Summary: Header files for acl library
34 Summary(pl): Pliki nag³ówkowe biblioteki acl
35 Group: Development/Libraries
36 Requires: %{name} = %{version}
40 Header files to develop software which manipulate access control
43 %description devel -l pl
44 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
45 listami kontroli dostêpu (ACL).
48 Summary: Static acl library
49 Summary(pl): Statyczna biblioteka acl
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}
56 %description static -l pl
57 Statyczna biblioteka acl.
63 cp %{SOURCE1} po/pl.po
64 %{__perl} -pi -e 's/^(LINGUAS.*)/$1 pl/' po/Makefile
71 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
72 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
80 DIST_ROOT=$RPM_BUILD_ROOT
81 DIST_INSTALL=`pwd`/install.manifest
82 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
83 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
84 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
87 DIST_MANIFEST=$DIST_INSTALL
88 %{__make} install-dev \
89 DIST_MANIFEST=$DIST_INSTALL_DEV
90 %{__make} install-lib \
91 DIST_MANIFEST=$DIST_INSTALL_LIB
93 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
94 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
95 echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
96 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
97 echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
98 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
99 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
101 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
102 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
103 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc README doc/{CHANGES,TODO}
116 %attr(755,root,root) %{_bindir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %defattr(644,root,root,755)
122 %doc doc/{extensions.txt,libacl.txt}
123 %attr(755,root,root) %{_libexecdir}/lib*.so
124 %{_libexecdir}/lib*.la
130 %defattr(644,root,root,755)
131 %{_libexecdir}/lib*.a