acl/acl.spec
Marcus Meissner f1c431d2a8 Accepting request 641156 from home:jeff_mahoney:branches:Base:System
- Update to v2.2.53.
- Removed patches:
  * 0001-Install-the-libraries-to-the-appropriate-directory.patch
  * 0001-Use-OS-byteswapping-macros.patch
  * 0002-setfacl.1-fix-typo-inclu-de-include.patch
  * 0003-test-fix-insufficient-quoting-of.patch
  * 0004-Makefile-rename-configure.in-to-configure.ac.patch
  * 0005-Bad-markup-in-acl.5-page.patch
  * 0006-.gitignore-ignore-and-config.h.in.patch
  * 0007-Use-autoreconf-rather-than-autoconf-to-regenerate-th.patch
  * 0008-libacl-Make-sure-that-acl_from_text-always-sets-errn.patch
  * 0009-libacl-fix-SIGSEGV-of-getfacl-e-on-overly-long-group.patch
  * 0010-punt-debian-rpm-packaging-logic.patch
  * 0011-move-gettext-logic-into-misc.h.patch
  * 0012-test-make-running-parallel-out-of-tree-safe.patch
  * 0013-modernize-build-system.patch
  * 0014-po-regenerate-files-after-move.patch
  * 0015-build-drop-aclincludedir-use-pkgincludedir.patch
  * 0016-build-make-use-of-an-aux-dir-to-stow-away-helper-scr.patch
  * 0017-build-ship-a-pkgconfig-file-for-libacl.patch
  * 0018-read_acl_-comments-seq-rename-line-to-lineno.patch
  * 0019-read_acl_-comments-seq-switch-to-next_line.patch
  * 0020-telldir-return-value-and-seekdir-second-parameters-a.patch
  * 0021-mark-libmisc-funcs-as-hidden-so-they-are-not-exporte.patch
  * 0022-add-__acl_-prefixes-to-internal-symbols.patch
  * 0023-cp.test-Check-permissions-of-the-right-file.patch
  * 0024-libacl-acl_set_file-Remove-unnecesary-racy-check.patch
  * 0025-fix-compilation-with-latest-xattr-git.patch
  * 0026-getfacl-Fix-memory-leak.patch
  * 0027-Fix-the-display-block-nesting-in-acl.5.patch

OBS-URL: https://build.opensuse.org/request/show/641156
OBS-URL: https://build.opensuse.org/package/show/Base:System/acl?expand=0&rev=57
2018-10-11 08:42:13 +00:00

161 lines
4.4 KiB
RPMSpec

#
# spec file for package acl
#
# Copyright (c) 2018 SUSE LINUX 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/
#
# Ring0 does not have system-user-bin/system-user-daemon
%bcond_without acl_tests
Name: acl
%define lname libacl1
Summary: Commands for Manipulating POSIX Access Control Lists
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Filesystems
Version: 2.2.53
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 is generated by git-archive v2.2.53 so that the subsequent commits
# apply cleanly.
Source: %name-%version.tar.xz
Source1: %name-%version.tar.gz.sig
Source2: baselibs.conf
# http://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=acl
Source3: %name.keyring
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-tools-mini
BuildRequires: libattr-devel
BuildRequires: libtool
BuildRequires: pkg-config
%if %{with acl_tests} && 0%{?suse_version} > 1320
BuildRequires: system-user-bin
BuildRequires: system-user-daemon
%endif
BuildRequires: xz
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
# bug437293
Group: System/Libraries
%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
# the .so file references libattr.so.x, so require libattr-devel
Group: Development/Libraries/C and C++
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
%build
chmod a+x po/update-potfiles
sh autogen.sh
export OPTIMIZER="%optflags -fPIC"
export DEBUG=-DNDEBUG
CFLAGS="%optflags"
%ifarch %ix86 i586
export CFLAGS="%optflags -D_FILE_OFFSET_BITS=64"
%endif
%configure \
--prefix=/usr \
--exec-prefix=/usr \
--libdir=/%_lib \
--libexecdir=/%_lib \
--disable-static \
--docdir=%_defaultdocdir/%name
make %{?_smp_mflags} V=1
%check
%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
%install
%make_install
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}
# The library stays in /lib* but the pkgconfig file needs to go under /usr
mv -f %buildroot/%_lib/pkgconfig/ %buildroot/%_libdir
%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*
%_libdir/pkgconfig/libacl.pc
%files -n %lname
%defattr(755,root,root,755)
/%_lib/libacl.so.1*
%changelog