acl/acl.spec

110 lines
2.9 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:40:51 +08:00
Name: acl
2021-07-27 19:17:24 +08:00
Version: 2.3.1
Release: 1
2019-12-25 15:40:51 +08:00
Summary: Commands for manipulating POSIX access control lists
2020-01-22 10:20:15 +08:00
License: GPLv2+
2019-12-25 15:40:51 +08:00
URL: https://savannah.nongnu.org/projects/acl
2021-07-27 19:17:24 +08:00
Source0: http://download.savannah.nongnu.org/releases/acl/%{name}-%{version}.tar.gz
Source1: http://download.savannah.nongnu.org/releases/acl/%{name}-%{version}.tar.gz.sig
#From https://savannah.nongnu.org/people/viewgpg.php?user_id=15000
Source2: agruen-key.gpg
2019-12-25 15:40:51 +08:00
BuildRequires: libattr-devel gawk libtool gettext
%description
This package contains commands for manipulating POSIX access control lists,
and the libacl.so dynamic library which contains the POSIX 1003.1e draft
standard 17 functions for manipulating access control lists.
2020-01-22 10:20:15 +08:00
%package -n libacl
Summary: Library for supporting access control list
License: LGPLv2+
Conflicts: filesystem < 3
%description -n libacl
This package contains the library for manipulating access control list.
2019-12-25 15:40:51 +08:00
2020-02-12 16:36:18 +08:00
%package -n libacl-devel
2019-12-25 15:40:51 +08:00
Summary: Files necessary to develop applications with libacl
License: LGPLv2+
2020-02-12 16:36:18 +08:00
Requires: libacl = %{version}-%{release}, libattr-devel
2020-02-28 19:51:21 +08:00
Obsoletes: acl-devel < %{version}-%{release}
2019-12-25 15:40:51 +08:00
2020-02-12 16:36:18 +08:00
%description -n libacl-devel
2019-12-25 15:40:51 +08:00
This package contains header files for the POSIX ACL library.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure
%make_build
%install
%make_install
%delete_la_and_a
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
%find_lang %{name}
%check
# permissions.test needs 'daemon' users to be in the 'bin' group. If not, stop this test.
if test 0 = "$(id -u)"; then
sed -e 's|test/root/permissions.test||' -i test/Makemodule.am Makefile.in Makefile
fi
# setfacl.test needs 'bin' users to have the access to build dir. If not, stop this test.
if ! runuser -u bin -- "${PWD}/setfacl" --version; then
sed -e 's|test/root/setfacl.test||' -i test/Makemodule.am Makefile.in Makefile
fi
2021-07-27 19:17:24 +08:00
%make_build check
2019-12-25 15:40:51 +08:00
2020-02-12 16:36:18 +08:00
%post -n libacl -p /sbin/ldconfig
2019-12-25 15:40:51 +08:00
2020-02-12 16:36:18 +08:00
%postun -n libacl -p /sbin/ldconfig
2019-12-25 15:40:51 +08:00
%files -f %{name}.lang
%defattr(-,root,root)
%{!?_licensedir:%global license %%doc}
%license doc/COPYING*
%{_bindir}/*acl
2020-01-22 10:20:15 +08:00
%files -n libacl
2019-12-25 15:40:51 +08:00
%{_libdir}/libacl.so.*
2020-02-12 16:36:18 +08:00
%files -n libacl-devel
2019-12-25 15:40:51 +08:00
%defattr(-,root,root)
%{_includedir}/acl/libacl.h
%{_includedir}/sys/acl.h
%{_libdir}/libacl.so
%{_libdir}/pkgconfig/libacl.pc
%files help
%defattr(-,root,root)
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%changelog
2021-07-27 19:17:24 +08:00
* Tue Jul 27 2021 panxiaohe <panxiaohe@huawei.com> - 2.3.1-1
- Update to 2.3.1
2020-02-28 19:51:21 +08:00
* Fri Feb 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.2.53-7
- Obsoletes acl-devel
2020-02-12 16:36:18 +08:00
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.2.53-6
- Change acl-devel to libacl-devel
2020-01-22 10:20:15 +08:00
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.2.53-5
- Add libacl package
2019-12-25 15:40:51 +08:00
* Sat Dec 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.53-4
- Provides arch releated rpm
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.53-3
- Package init