%define major 1 %define libname %mklibname %{name} %{major} %define devname %mklibname -d %{name} Summary: Command for manipulating access control lists Name: acl Version: 2.2.53 Release: 3 License: GPLv2+ Group: System/Kernel and hardware URL: http://savannah.nongnu.org/projects/acl Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz Source1: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig Source2: %{name}.rpmlintrc Patch0: acl-2.2.51-l10n-ru.patch BuildRequires: attr-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool %description This package contains the getfacl and setfacl utilities needed for manipulating access control lists. %package -n %{libname} Summary: Main library for libacl Group: System/Libraries License: LGPLv2 %description -n %{libname} This package contains the libacl dynamic library which contains the POSIX 1003.1e draft standard 17 functions for manipulating access control lists. %package -n %{devname} Summary: Access control list static libraries and headers Group: Development/C License: LGPLv2 Requires: %{libname} >= %{version}-%{release} Provides: acl-devel = %{version}-%{release} Obsoletes: %{mklibname -d acl 0} < 2.2.52-16 Obsoletes: %{mklibname -d acl 1} < 2.2.52-16 %description -n %{devname} This package contains static libraries and header files needed to develop programs which make use of the access control list programming interface defined in POSIX 1003.1e draft standard 17. You should install %{devname} if you want to develop programs which make use of ACLs. If you install %{devname}, you will also want to install %{libname}. %prep %autosetup -p1 find -type f|xargs chmod o+r %build # upstream has a weird idea about what libexecdir is CFLAGS="%{optflags}" \ %configure --libdir=/%{_lib} --libexecdir=/%{_lib} --sbindir=/bin %make_build %install %make_install # Remove unpackaged symlinks # TODO: finish up spec-helper script to automatically deal with this mkdir -p %{buildroot}%{_libdir} ln -sr %{buildroot}/%{_lib}/libacl.so.%{major}.* %{buildroot}%{_libdir}/libacl.so chmod 755 %{buildroot}/%{_lib}/libacl.so.%{major}* mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir} rm -rf %{buildroot}%{_docdir}/acl %{buildroot}/%{_lib}/*.a %find_lang %{name} %files -f %{name}.lang %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man5/* %files -n %{libname} /%{_lib}/libacl.so.%{major}* %files -n %{devname} %doc doc/extensions.txt doc/libacl.txt /%{_lib}/libacl.so %{_libdir}/libacl.so %{_mandir}/man3/* %dir %{_includedir}/acl %{_includedir}/acl/libacl.h %{_includedir}/sys/acl.h %{_libdir}/pkgconfig/*.pc