2006-12-19 00:15:06 +01:00
|
|
|
#
|
2011-06-16 09:05:31 +02:00
|
|
|
# spec file for package acl
|
2006-12-19 00:15:06 +01:00
|
|
|
#
|
2013-02-03 14:49:02 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:06 +01:00
|
|
|
#
|
2008-11-02 15:32:07 +01:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: acl
|
2011-09-20 14:45:58 +02:00
|
|
|
%define lname libacl1
|
2006-12-19 00:15:06 +01:00
|
|
|
Summary: Commands for Manipulating POSIX Access Control Lists
|
2012-12-27 16:31:59 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2012-02-13 13:36:53 +01:00
|
|
|
Group: System/Filesystems
|
2013-06-18 09:42:13 +02:00
|
|
|
Version: 2.2.52
|
2012-02-13 13:36:53 +01:00
|
|
|
Release: 0
|
2013-06-18 09:42:13 +02:00
|
|
|
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
|
2013-03-16 08:56:18 +01:00
|
|
|
Source: http://download.savannah.gnu.org/releases-noredirect/acl/%name-%version.src.tar.gz
|
2013-03-19 11:32:41 +01:00
|
|
|
Source1: http://download.savannah.gnu.org/releases-noredirect/acl/%name-%version.src.tar.gz.sig
|
2009-12-16 09:27:08 +01:00
|
|
|
Source2: baselibs.conf
|
2013-03-19 11:32:41 +01:00
|
|
|
# http://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=acl
|
|
|
|
Source3: %name.keyring
|
2006-12-19 00:15:06 +01:00
|
|
|
Patch0: builddefs.in.diff
|
2012-12-27 16:31:59 +01:00
|
|
|
Patch2: 0001-Use-OS-byteswapping-macros.patch
|
2014-04-07 11:28:27 +02:00
|
|
|
Patch3: acl-2.2.52-tests.patch
|
2013-06-18 09:42:13 +02:00
|
|
|
BuildRequires: libattr-devel
|
2013-06-18 09:44:53 +02:00
|
|
|
#BuildRequires: gpg-offline
|
2006-12-19 00:15:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
getfacl and setfacl commands for retrieving and setting POSIX access
|
|
|
|
control lists.
|
|
|
|
|
2011-09-20 14:45:58 +02:00
|
|
|
%package -n %lname
|
2006-12-19 00:15:06 +01:00
|
|
|
Summary: A dynamic library for accessing POSIX Access Control Lists
|
|
|
|
Group: System/Libraries
|
2008-11-02 15:32:07 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libacl-64bit
|
|
|
|
%endif
|
2013-06-18 09:42:13 +02:00
|
|
|
# Added for 12.1
|
2011-09-20 16:19:02 +02:00
|
|
|
Provides: libacl = %version-%release
|
|
|
|
Obsoletes: libacl < %version-%release
|
2006-12-19 00:15:06 +01:00
|
|
|
|
2011-09-20 14:45:58 +02:00
|
|
|
%description -n %lname
|
2006-12-19 00:15:06 +01:00
|
|
|
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++
|
2013-06-18 09:44:53 +02:00
|
|
|
# the .so file references libattr.so.x, so require libattr-devel
|
2012-05-31 10:49:37 +02:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: glibc-devel
|
2013-06-18 09:44:53 +02:00
|
|
|
Requires: libattr-devel
|
2011-09-20 16:19:02 +02:00
|
|
|
Provides: acl-devel = %{version}
|
|
|
|
Obsoletes: acl-devel < %{version}
|
2008-11-02 15:32:07 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libacl-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%description -n libacl-devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
%prep
|
2009-10-27 16:23:19 +01:00
|
|
|
%setup -q -n acl-%version
|
2006-12-19 00:15:06 +01:00
|
|
|
%patch0 -p1
|
2012-12-27 16:31:59 +01:00
|
|
|
%patch2 -p1
|
2014-04-07 11:28:27 +02:00
|
|
|
%patch3 -p1
|
2013-06-18 09:42:13 +02:00
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
%build
|
|
|
|
export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
|
|
|
|
export DEBUG=-DNDEBUG
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS"
|
2009-10-27 16:23:19 +01:00
|
|
|
%configure \
|
2006-12-19 00:15:06 +01:00
|
|
|
--prefix=/ \
|
|
|
|
--exec-prefix=/ \
|
|
|
|
--sbindir=/bin \
|
|
|
|
--libdir=/%{_lib} \
|
2009-10-27 16:23:19 +01:00
|
|
|
--libexecdir=/%{_lib} \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2010-06-28 23:28:51 +02:00
|
|
|
%{__make} %{?_smp_mflags}
|
2006-12-19 00:15:06 +01:00
|
|
|
|
2014-04-07 11:28:27 +02:00
|
|
|
%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
|
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
%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"
|
2009-10-27 16:23:19 +01:00
|
|
|
%{__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}
|
2006-12-19 00:15:06 +01:00
|
|
|
%find_lang %name
|
|
|
|
|
2011-09-20 14:45:58 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2006-12-19 00:15:06 +01:00
|
|
|
|
2011-09-20 14:45:58 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%files -f %name.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(755,root,root) %{_bindir}/chacl
|
|
|
|
%attr(755,root,root) %{_bindir}/getfacl
|
|
|
|
%attr(755,root,root) %{_bindir}/setfacl
|
|
|
|
%dir %attr(755,root,root) /usr/share/doc/packages/acl
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/acl/CHANGES.gz
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/acl/COPYING
|
2009-08-01 11:21:55 +02:00
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/acl/COPYING.LGPL
|
2006-12-19 00:15:06 +01:00
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/acl/PORTING
|
|
|
|
%doc %attr(644,root,root) /usr/share/doc/packages/acl/README
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/chacl.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/getfacl.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man1/setfacl.1.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man5/acl.5.gz
|
|
|
|
|
|
|
|
%files -n libacl-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %attr(755,root,root) %{_includedir}/acl
|
|
|
|
%attr(644,root,root) %{_includedir}/acl/libacl.h
|
|
|
|
%attr(644,root,root) %{_includedir}/sys/acl.h
|
|
|
|
%attr(755,root,root) %{_libdir}/libacl.so
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_add_perm.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_calc_mask.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_check.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_clear_perms.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_cmp.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_copy_entry.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_copy_ext.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_copy_int.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_create_entry.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_delete_def_file.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_delete_entry.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_delete_perm.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_dup.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_entries.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_equiv_mode.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_error.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_extended_fd.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_extended_file.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_free.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_from_mode.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_from_text.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_entry.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_fd.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_file.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_perm.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_permset.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_qualifier.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_get_tag_type.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_init.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_set_fd.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_set_file.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_set_permset.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_set_qualifier.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_set_tag_type.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_size.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_to_any_text.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_to_text.3.gz
|
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_valid.3.gz
|
2011-04-19 22:51:13 +02:00
|
|
|
%doc %attr(644,root,root) %{_mandir}/man3/acl_extended_file_nofollow.3.gz
|
2006-12-19 00:15:06 +01:00
|
|
|
|
2011-09-20 14:45:58 +02:00
|
|
|
%files -n %lname
|
2006-12-19 00:15:06 +01:00
|
|
|
%defattr(755,root,root,755)
|
|
|
|
/%{_lib}/libacl.so.1*
|
2008-04-10 13:05:01 +02:00
|
|
|
|
2007-10-26 20:07:50 +02:00
|
|
|
%changelog
|