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: LGPL v2+ (library), GPL v2 (utilities)
7 Group: Applications/System
8 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}_%{version}-1.tar.gz
9 # Source0-md5: 4edd450bbee60d6c4b3c51ae80499b00
10 Patch0: %{name}-miscfix.patch
11 Patch1: %{name}-lt.patch
12 URL: http://oss.sgi.com/projects/xfs/
13 BuildRequires: attr-devel >= 2.4.16-3
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 BuildRequires: libtool
18 BuildRequires: sed >= 4.0
19 Requires: attr >= 2.4.15
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _libdir /%{_lib}
25 %define _libexecdir /usr/%{_lib}
28 A command (chacl) and a library (libacl) to manipulate POSIX access
29 control lists under Linux.
32 Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z
33 POSIX listami kontroli dostêpu (ACL) pod Linuksem.
36 Summary: Header files for acl library
37 Summary(pl): Pliki nag³ówkowe biblioteki acl
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
40 Requires: attr-devel >= 2.4.16-3
43 Header files to develop software which manipulate access control
46 %description devel -l pl
47 Pliki nag³ówkowe potrzebne do rozwoju oprogramowania manipuluj±cego
48 listami kontroli dostêpu (ACL).
51 Summary: Static acl library
52 Summary(pl): Statyczna biblioteka acl
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
59 %description static -l pl
60 Statyczna biblioteka acl.
66 sed -e '/LTLDFLAGS/s/$/ $(LLDFLAGS)/' -i libacl/Makefile
73 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
74 OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT"
77 LLDFLAGS="%{rpmldflags}"
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3}
83 DIST_ROOT=$RPM_BUILD_ROOT
84 DIST_INSTALL=`pwd`/install.manifest
85 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
86 DIST_INSTALL_LIB=`pwd`/install-lib.manifest
87 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB
90 DIST_MANIFEST=$DIST_INSTALL
91 %{__make} install-dev \
92 DIST_MANIFEST=$DIST_INSTALL_DEV
93 %{__make} install-lib \
94 DIST_MANIFEST=$DIST_INSTALL_LIB
96 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_copy_int,acl_set_fd,acl_set_file}.3
97 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/{acl_to_short_text,acl_to_text}.3
98 echo ".so acl_copy_ext.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_copy_int.3
99 echo ".so acl_get_fd.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_fd.3
100 echo ".so acl_get_file.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_set_file.3
101 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_short_text.3
102 echo ".so acl_from_text.3" > $RPM_BUILD_ROOT%{_mandir}/man3/acl_to_text.3
104 rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
105 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libacl.so.*.*.*) \
106 $RPM_BUILD_ROOT%{_libexecdir}/libacl.so
107 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
108 $RPM_BUILD_ROOT%{_libexecdir}/libacl.la
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc README doc/{CHANGES,TODO}
121 %attr(755,root,root) %{_bindir}/*
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*
126 %defattr(644,root,root,755)
127 %doc doc/{extensions.txt,libacl.txt}
128 %attr(755,root,root) %{_libexecdir}/lib*.so
129 %{_libexecdir}/lib*.la
135 %defattr(644,root,root,755)
136 %{_libexecdir}/lib*.a