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
|
|
|
#
|
2017-03-20 08:27:36 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-31 15:23:59 +02:00
|
|
|
# Ring0 does not have system-user-bin/system-user-daemon
|
|
|
|
%bcond_without acl_tests
|
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
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
|
2015-12-03 15:58:36 +01:00
|
|
|
# Source is generated by git-archive v2.2.52 so that the subsequent commits
|
|
|
|
# apply cleanly.
|
|
|
|
Source: %name-%version.tar.bz2
|
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
|
2015-12-03 15:58:36 +01:00
|
|
|
|
|
|
|
# Upstream changes since v2.2.52
|
|
|
|
Patch1: 0001-Install-the-libraries-to-the-appropriate-directory.patch
|
|
|
|
Patch2: 0002-setfacl.1-fix-typo-inclu-de-include.patch
|
|
|
|
Patch3: 0003-test-fix-insufficient-quoting-of.patch
|
|
|
|
Patch4: 0004-Makefile-rename-configure.in-to-configure.ac.patch
|
|
|
|
Patch5: 0005-Bad-markup-in-acl.5-page.patch
|
|
|
|
Patch6: 0006-.gitignore-ignore-and-config.h.in.patch
|
|
|
|
Patch7: 0007-Use-autoreconf-rather-than-autoconf-to-regenerate-th.patch
|
|
|
|
Patch8: 0008-libacl-Make-sure-that-acl_from_text-always-sets-errn.patch
|
|
|
|
Patch9: 0009-libacl-fix-SIGSEGV-of-getfacl-e-on-overly-long-group.patch
|
|
|
|
Patch10: 0010-punt-debian-rpm-packaging-logic.patch
|
|
|
|
Patch11: 0011-move-gettext-logic-into-misc.h.patch
|
|
|
|
Patch12: 0012-test-make-running-parallel-out-of-tree-safe.patch
|
|
|
|
Patch13: 0013-modernize-build-system.patch
|
|
|
|
Patch14: 0014-po-regenerate-files-after-move.patch
|
|
|
|
Patch15: 0015-build-drop-aclincludedir-use-pkgincludedir.patch
|
|
|
|
Patch16: 0016-build-make-use-of-an-aux-dir-to-stow-away-helper-scr.patch
|
|
|
|
Patch17: 0017-build-ship-a-pkgconfig-file-for-libacl.patch
|
|
|
|
Patch18: 0018-read_acl_-comments-seq-rename-line-to-lineno.patch
|
|
|
|
Patch19: 0019-read_acl_-comments-seq-switch-to-next_line.patch
|
|
|
|
Patch20: 0020-telldir-return-value-and-seekdir-second-parameters-a.patch
|
|
|
|
Patch21: 0021-mark-libmisc-funcs-as-hidden-so-they-are-not-exporte.patch
|
|
|
|
Patch22: 0022-add-__acl_-prefixes-to-internal-symbols.patch
|
|
|
|
Patch23: 0023-cp.test-Check-permissions-of-the-right-file.patch
|
|
|
|
Patch24: 0024-libacl-acl_set_file-Remove-unnecesary-racy-check.patch
|
|
|
|
Patch25: 0025-fix-compilation-with-latest-xattr-git.patch
|
|
|
|
Patch26: 0026-getfacl-Fix-memory-leak.patch
|
|
|
|
Patch27: 0027-Fix-the-display-block-nesting-in-acl.5.patch
|
|
|
|
Patch28: 0028-setfacl-man-page-Minor-wording-improvements.patch
|
|
|
|
Patch29: 0029-getfacl-Fix-minor-resource-leak.patch
|
|
|
|
Patch30: 0030-Do-not-export-symbols-that-are-not-supposed-to-be-ex.patch
|
|
|
|
Patch31: 0031-walk_tree-mark-internal-variables-as-static.patch
|
|
|
|
Patch32: 0032-ignore-configure.lineno.patch
|
|
|
|
|
|
|
|
# Local changes
|
|
|
|
Patch100: 0001-Use-OS-byteswapping-macros.patch
|
|
|
|
Patch101: acl-2.2.52-tests.patch
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2017-06-02 11:47:52 +02:00
|
|
|
BuildRequires: gettext-tools-mini
|
2013-06-18 09:42:13 +02:00
|
|
|
BuildRequires: libattr-devel
|
2015-12-03 15:58:36 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2017-03-31 15:23:59 +02:00
|
|
|
%if %{with acl_tests} && 0%{?suse_version} > 1320
|
2017-03-20 08:27:36 +01:00
|
|
|
BuildRequires: system-user-bin
|
2017-03-31 15:23:59 +02:00
|
|
|
BuildRequires: system-user-daemon
|
2017-03-20 08:27:36 +01:00
|
|
|
%endif
|
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
|
2017-04-19 16:31:33 +02:00
|
|
|
# bug437293
|
2017-05-05 17:53:58 +02:00
|
|
|
Group: System/Libraries
|
2008-11-02 15:32:07 +01:00
|
|
|
%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
|
2017-04-19 16:31:33 +02:00
|
|
|
# the .so file references libattr.so.x, so require libattr-devel
|
2017-05-05 17:53:58 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
2017-05-05 17:53:58 +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
|
2015-12-03 15:58:36 +01:00
|
|
|
%patch1 -p1
|
2012-12-27 16:31:59 +01:00
|
|
|
%patch2 -p1
|
2014-04-07 11:28:27 +02:00
|
|
|
%patch3 -p1
|
2015-12-03 15:58:36 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
|
|
|
%patch28 -p1
|
|
|
|
%patch29 -p1
|
|
|
|
%patch30 -p1
|
|
|
|
%patch31 -p1
|
|
|
|
%patch32 -p1
|
|
|
|
|
|
|
|
%patch100 -p1
|
|
|
|
%patch101 -p1
|
2013-06-18 09:42:13 +02:00
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
%build
|
2015-12-03 15:58:36 +01:00
|
|
|
chmod a+x po/update-potfiles
|
|
|
|
sh autogen.sh
|
2017-05-05 17:53:58 +02:00
|
|
|
export OPTIMIZER="%optflags -fPIC"
|
2006-12-19 00:15:06 +01:00
|
|
|
export DEBUG=-DNDEBUG
|
2017-05-05 17:53:58 +02:00
|
|
|
CFLAGS="%optflags"
|
2017-04-19 16:31:33 +02:00
|
|
|
|
|
|
|
%ifarch %ix86 i586
|
2017-05-05 17:53:58 +02:00
|
|
|
export CFLAGS="%optflags -D_FILE_OFFSET_BITS=64"
|
2017-04-19 16:31:33 +02:00
|
|
|
%endif
|
|
|
|
|
2009-10-27 16:23:19 +01:00
|
|
|
%configure \
|
2015-12-03 15:58:36 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2017-05-05 17:53:58 +02:00
|
|
|
--libdir=/%_lib \
|
|
|
|
--libexecdir=/%_lib \
|
2009-10-27 16:23:19 +01:00
|
|
|
--disable-static \
|
2017-05-05 17:53:58 +02:00
|
|
|
--docdir=%_defaultdocdir/%name
|
|
|
|
make %{?_smp_mflags} V=1
|
2006-12-19 00:15:06 +01:00
|
|
|
|
2014-04-07 11:28:27 +02:00
|
|
|
%check
|
2017-03-31 15:23:59 +02:00
|
|
|
%if %{with acl_tests}
|
|
|
|
if ./setfacl -m u:`id -u`:rwx .; then
|
|
|
|
make check || (cat test-suite.log ; false)
|
|
|
|
else
|
|
|
|
echo '*** ACLs are probably not supported by the file system,' \
|
|
|
|
'the test-suite will NOT run ***'
|
|
|
|
fi
|
|
|
|
%endif
|
2014-04-07 11:28:27 +02:00
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
%install
|
2015-12-03 15:58:36 +01:00
|
|
|
%make_install
|
2017-05-05 17:53:58 +02:00
|
|
|
mkdir -p %buildroot/%_libdir
|
|
|
|
ln -sv /%_lib/$(readlink %buildroot/%_lib/lib%name.so) %buildroot/%_libdir/lib%name.so
|
|
|
|
rm -v %buildroot/%_lib/lib%name.{la,so}
|
2015-12-03 15:58:36 +01:00
|
|
|
# The library stays in /lib* but the pkgconfig file needs to go under /usr
|
2017-05-05 17:53:58 +02:00
|
|
|
mv -f %buildroot/%_lib/pkgconfig/ %buildroot/%_libdir
|
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)
|
2014-09-25 10:25:38 +02:00
|
|
|
%_bindir/chacl
|
|
|
|
%_bindir/getfacl
|
|
|
|
%_bindir/setfacl
|
|
|
|
%_defaultdocdir/acl/
|
|
|
|
%_mandir/man1/*.1*
|
|
|
|
%_mandir/man5/*.5*
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%files -n libacl-devel
|
|
|
|
%defattr(-,root,root)
|
2014-09-25 10:25:38 +02:00
|
|
|
%_includedir/acl/
|
|
|
|
%_includedir/sys/acl.h
|
|
|
|
%_libdir/libacl.so
|
|
|
|
%_mandir/man3/*.3*
|
2015-12-03 15:58:36 +01:00
|
|
|
%_libdir/pkgconfig/libacl.pc
|
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)
|
2017-05-05 17:53:58 +02:00
|
|
|
/%_lib/libacl.so.1*
|
2008-04-10 13:05:01 +02:00
|
|
|
|
2007-10-26 20:07:50 +02:00
|
|
|
%changelog
|