# # spec file for package acl # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: acl %define lname libacl1 Summary: Commands for Manipulating POSIX Access Control Lists License: GPL-2.0+ and LGPL-2.1+ Group: System/Filesystems Version: 2.2.52 Release: 0 Url: http://download.savannah.gnu.org/releases-noredirect/acl/ #Git-Web: http://git.savannah.gnu.org/cgit/acl.git/ #Git-Clone: git://git.sv.gnu.org/acl Source: http://download.savannah.gnu.org/releases-noredirect/acl/%name-%version.src.tar.gz Source1: http://download.savannah.gnu.org/releases-noredirect/acl/%name-%version.src.tar.gz.sig Source2: baselibs.conf # http://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=acl Source3: %name.keyring Patch0: builddefs.in.diff Patch2: 0001-Use-OS-byteswapping-macros.patch Patch3: acl-2.2.52-tests.patch BuildRequires: libattr-devel #BuildRequires: gpg-offline BuildRoot: %{_tmppath}/%{name}-%{version}-build %description getfacl and setfacl commands for retrieving and setting POSIX access control lists. %package -n %lname Summary: A dynamic library for accessing POSIX Access Control Lists Group: System/Libraries # bug437293 %ifarch ppc64 Obsoletes: libacl-64bit %endif # Added for 12.1 Provides: libacl = %version-%release Obsoletes: libacl < %version-%release %description -n %lname This package contains the libacl.so dynamic library which contains the POSIX 1003.1e draft standard 17 functions for manipulating access control lists. %package -n libacl-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ # the .so file references libattr.so.x, so require libattr-devel Requires: %lname = %version Requires: glibc-devel Requires: libattr-devel Provides: acl-devel = %{version} Obsoletes: acl-devel < %{version} # bug437293 %ifarch ppc64 Obsoletes: libacl-devel-64bit %endif # %description -n libacl-devel This package contains all necessary include files and libraries needed to develop applications that require these. %prep %setup -q -n acl-%version %patch0 -p1 %patch2 -p1 %patch3 -p1 %build export OPTIMIZER="$RPM_OPT_FLAGS -fPIC" export DEBUG=-DNDEBUG CFLAGS="$RPM_OPT_FLAGS" %configure \ --prefix=/ \ --exec-prefix=/ \ --sbindir=/bin \ --libdir=/%{_lib} \ --libexecdir=/%{_lib} \ --disable-static \ --with-pic %{__make} %{?_smp_mflags} %check if ./setfacl/setfacl -m u:`id -u`:rwx .; then make tests || exit $? if test 0 = `id -u`; then make root-tests || exit $? fi else echo '*** ACLs are probably not supported by the file system,' \ 'the test-suite will NOT run ***' fi %install DIST_ROOT="$RPM_BUILD_ROOT" DIST_INSTALL=`pwd`/install.manifest DIST_INSTALL_DEV=`pwd`/install-dev.manifest DIST_INSTALL_LIB=`pwd`/install-lib.manifest export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV DIST_INSTALL_LIB /usr/bin/make install DIST_MANIFEST="$DIST_INSTALL" /usr/bin/make install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" /usr/bin/make install-lib DIST_MANIFEST="$DIST_INSTALL_LIB" %{__mkdir_p} %{buildroot}%{_libdir} %{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so %{__rm} -v %{buildroot}/%{_lib}/lib%{name}.{la,so} %find_lang %name %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -f %name.lang %defattr(-,root,root) %_bindir/chacl %_bindir/getfacl %_bindir/setfacl %_defaultdocdir/acl/ %_mandir/man1/*.1* %_mandir/man5/*.5* %files -n libacl-devel %defattr(-,root,root) %_includedir/acl/ %_includedir/sys/acl.h %_libdir/libacl.so %_mandir/man3/*.3* %files -n %lname %defattr(755,root,root,755) /%{_lib}/libacl.so.1* %changelog