Summary: Command and library for manipulating access control lists Summary(pl.UTF-8): Polecenie i biblioteka do manipulacji listami kontroli dostępu (ACL) Name: acl Version: 2.2.52 Release: 1 License: LGPL v2+ (library), GPL v2 (utilities) Group: Applications/System Source0: http://git.savannah.gnu.org/cgit/acl.git/snapshot/%{name}-%{version}.tar.gz # Source0-md5: 8d720d6bf9ef41d8995f145637f48d57 Patch0: %{name}-miscfix.patch Patch1: %{name}-lt.patch Patch2: %{name}-LDFLAGS.patch Patch3: %{name}-pl.po-update.patch URL: http://savannah.nongnu.org/projects/acl/ BuildRequires: attr-devel >= 2.4.16-3 BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-tools BuildRequires: libtool BuildRequires: rpmbuild(macros) >= 1.402 Requires: attr >= 2.4.15 Obsoletes: libacl BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _bindir /bin %define _libdir /%{_lib} %define _libexecdir /usr/%{_lib} %description A command (chacl) and a library (libacl) to manipulate POSIX access control lists under Linux. %description -l pl.UTF-8 Polecenie (chacl) i biblioteka (libacl) do manipulowania zgodnymi z POSIX listami kontroli dostępu (ACL) pod Linuksem. %package devel Summary: Header files for acl library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki acl Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: attr-devel >= 2.4.16-3 %description devel Header files to develop software which manipulate access control lists. %description devel -l pl.UTF-8 Pliki nagłówkowe potrzebne do rozwoju oprogramowania manipulującego listami kontroli dostępu (ACL). %package static Summary: Static acl library Summary(pl.UTF-8): Statyczna biblioteka acl Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static acl library. %description static -l pl.UTF-8 Statyczna biblioteka acl. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %{__rm} -f aclocal.m4 %build %{__libtoolize} %{__aclocal} -I m4 %{__autoconf} cp -f /usr/share/automake/config.sub . install include/install-sh . %configure \ DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ OPTIMIZER="%{rpmcflags} -DENABLE_GETTEXT" %{__make} \ LLDFLAGS="%{rpmldflags}" \ top_builddir="../" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_includedir}/acl,%{_mandir}/man3} export DIST_ROOT=$RPM_BUILD_ROOT P=$(pwd) DIST_INSTALL=$P/install.manifest DIST_INSTALL_DEV=$P/install-dev.manifest DIST_INSTALL_LIB=$P/install-lib.manifest %{__make} install \ DIST_MANIFEST=$DIST_INSTALL \ top_builddir="../" %{__make} install-dev \ DIST_MANIFEST=$DIST_INSTALL_DEV \ top_builddir="../" %{__make} install-lib \ DIST_MANIFEST=$DIST_INSTALL_LIB \ top_builddir="../" ln -snf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libacl.so.*.*.*) \ $RPM_BUILD_ROOT%{_libexecdir}/libacl.so %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ $RPM_BUILD_ROOT%{_libexecdir}/libacl.la %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} # already in /usr %{__rm} $RPM_BUILD_ROOT%{_libdir}/libacl.{so,la,a} # fix perms (needed for debuginfo and autorequires/provides) chmod a+x $RPM_BUILD_ROOT%{_libdir}/libacl.so.*.*.* %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %doc README doc/{CHANGES,TODO} %attr(755,root,root) %{_bindir}/chacl %attr(755,root,root) %{_bindir}/getfacl %attr(755,root,root) %{_bindir}/setfacl %attr(755,root,root) %{_libdir}/libacl.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libacl.so.1 %{_mandir}/man1/chacl.1* %{_mandir}/man1/getfacl.1* %{_mandir}/man1/setfacl.1* %{_mandir}/man5/acl.5* %files devel %defattr(644,root,root,755) %doc doc/{extensions.txt,libacl.txt} %attr(755,root,root) %{_libexecdir}/libacl.so %{_libexecdir}/libacl.la %{_includedir}/acl %{_includedir}/sys/acl.h %{_mandir}/man3/acl_*.3* %files static %defattr(644,root,root,755) %{_libexecdir}/libacl.a