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
|
|
|
#
|
2024-02-15 14:34:36 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2018-11-14 07:25:20 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
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
|
2018-10-11 10:42:13 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2012-02-13 13:36:53 +01:00
|
|
|
Group: System/Filesystems
|
2024-02-15 14:34:36 +01:00
|
|
|
Version: 2.3.2
|
2012-02-13 13:36:53 +01:00
|
|
|
Release: 0
|
2021-05-16 11:11:27 +02:00
|
|
|
URL: https://savannah.nongnu.org/projects/acl
|
2013-06-18 09:42:13 +02:00
|
|
|
#Git-Web: http://git.savannah.gnu.org/cgit/acl.git/
|
|
|
|
#Git-Clone: git://git.sv.gnu.org/acl
|
2021-05-16 11:11:27 +02:00
|
|
|
Source: https://download.savannah.nongnu.org/releases/acl/acl-%version.tar.xz
|
|
|
|
Source1: https://download.savannah.nongnu.org/releases/acl/acl-%version.tar.xz.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
|
2015-12-03 15:58:36 +01:00
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2024-05-01 07:46:44 +02:00
|
|
|
BuildRequires: gettext-devel
|
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
|
2021-01-27 09:17:33 +01:00
|
|
|
BuildRequires: user(bin)
|
|
|
|
BuildRequires: user(daemon)
|
2017-03-20 08:27:36 +01:00
|
|
|
%endif
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%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-05-05 17:53:58 +02:00
|
|
|
Group: System/Libraries
|
2008-11-02 15:32:07 +01:00
|
|
|
%ifarch ppc64
|
2019-03-18 10:02:04 +01:00
|
|
|
# bug437293
|
2008-11-02 15:32:07 +01:00
|
|
|
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
|
2019-03-18 10:02:04 +01:00
|
|
|
Summary: Header files for the POSIX ACL library
|
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
|
2017-05-05 17:53:58 +02:00
|
|
|
Provides: acl-devel = %version
|
|
|
|
Obsoletes: acl-devel < %version
|
2008-11-02 15:32:07 +01:00
|
|
|
%ifarch ppc64
|
2019-03-18 10:02:04 +01:00
|
|
|
# bug437293
|
2008-11-02 15:32:07 +01:00
|
|
|
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
|
2019-03-18 10:02:04 +01:00
|
|
|
to develop applications that require libacl.
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%prep
|
2021-05-16 11:11:27 +02:00
|
|
|
%setup -q
|
2013-06-18 09:42:13 +02:00
|
|
|
|
2006-12-19 00:15:06 +01:00
|
|
|
%build
|
2021-05-16 11:11:27 +02:00
|
|
|
autoreconf -fi
|
2022-04-12 17:01:12 +02:00
|
|
|
|
|
|
|
# Disable -D_FORTIFY_SOURCE=3 for now
|
|
|
|
# as explained here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104964
|
|
|
|
%global optflags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=3/-D_FORTIFY_SOURCE=2/')
|
|
|
|
|
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 \
|
|
|
|
--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
|
2019-03-18 10:02:04 +01:00
|
|
|
rm -v %buildroot/%_libdir/lib%name.la
|
2021-05-16 11:19:26 +02:00
|
|
|
rm -rvf %buildroot/%_defaultdocdir/%name
|
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
|
2021-05-16 11:19:26 +02:00
|
|
|
%license doc/COPYING
|
2024-02-15 14:34:36 +01:00
|
|
|
%doc doc/extensions.txt doc/libacl.txt doc/CHANGES
|
2014-09-25 10:25:38 +02:00
|
|
|
%_bindir/chacl
|
|
|
|
%_bindir/getfacl
|
|
|
|
%_bindir/setfacl
|
|
|
|
%_mandir/man1/*.1*
|
|
|
|
%_mandir/man5/*.5*
|
2006-12-19 00:15:06 +01:00
|
|
|
|
|
|
|
%files -n libacl-devel
|
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
|
2021-05-16 11:19:26 +02:00
|
|
|
%license doc/COPYING.LGPL
|
2019-03-18 10:02:04 +01:00
|
|
|
%_libdir/libacl.so.1*
|
2008-04-10 13:05:01 +02:00
|
|
|
|
2007-10-26 20:07:50 +02:00
|
|
|
%changelog
|