|
|
@ -1,18 +1,14 @@
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
Summary: Alternate posix capabilities library
|
|
|
|
|
|
|
|
|
|
|
|
Summary: An alternate posix capabilities library
|
|
|
|
|
|
|
|
Name: libcap-ng
|
|
|
|
Name: libcap-ng
|
|
|
|
Version: 0.7.11
|
|
|
|
Version: 0.8.2
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 7%{?dist}
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://people.redhat.com/sgrubb/libcap-ng
|
|
|
|
URL: https://people.redhat.com/sgrubb/libcap-ng/
|
|
|
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
|
|
Patch1: libcap-ng-0.8-vararg-support.patch
|
|
|
|
# This patch can be removed when 1899540 is resolved
|
|
|
|
Patch2: libcap-ng-0.8.1-procfs-lastcap.patch
|
|
|
|
Patch1: libcap-ng-0.8.2-apply-disable.patch
|
|
|
|
Patch3: libcap-ng-0.8.1-signed-unsigned-fix.patch
|
|
|
|
|
|
|
|
Patch4: libcap-ng-0.8.2-improve-lastcap-check.patch
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
|
|
|
|
|
|
|
@ -23,7 +19,7 @@ Libcap-ng is a library that makes using posix capabilities easier
|
|
|
|
Summary: Header files for libcap-ng library
|
|
|
|
Summary: Header files for libcap-ng library
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
Requires: kernel-headers >= 2.6.11
|
|
|
|
Requires: kernel-headers >= 2.6.11
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
@ -34,7 +30,8 @@ applications that need to use the libcap-ng library.
|
|
|
|
Summary: Python3 bindings for libcap-ng library
|
|
|
|
Summary: Python3 bindings for libcap-ng library
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
BuildRequires: python3-devel swig
|
|
|
|
BuildRequires: python3-devel swig
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description python3
|
|
|
|
%description python3
|
|
|
|
The libcap-ng-python3 package contains the bindings so that libcap-ng
|
|
|
|
The libcap-ng-python3 package contains the bindings so that libcap-ng
|
|
|
@ -43,7 +40,7 @@ and can be used by python3 applications.
|
|
|
|
%package utils
|
|
|
|
%package utils
|
|
|
|
Summary: Utilities for analyzing and setting file capabilities
|
|
|
|
Summary: Utilities for analyzing and setting file capabilities
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
%description utils
|
|
|
|
The libcap-ng-utils package contains applications to analyze the
|
|
|
|
The libcap-ng-utils package contains applications to analyze the
|
|
|
@ -52,34 +49,22 @@ lets you set the file system based capabilities.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1 -b .vararg-support
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1 -b .procfs-lastcap
|
|
|
|
|
|
|
|
%patch3 -p1 -b .signed-unsigned-fix
|
|
|
|
|
|
|
|
%patch4 -p1 -b .improve-lastcap-check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure --libdir=%{_libdir} --with-python=no --with-python3
|
|
|
|
%configure --libdir=/%{_lib} --with-python=no --with-python3
|
|
|
|
%make_build CFLAGS="%{optflags}"
|
|
|
|
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
|
|
# Move the symlink
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}.so
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
|
|
|
|
VLIBNAME=$(ls $RPM_BUILD_ROOT/%{_lib}/%{name}.so.*.*.*)
|
|
|
|
|
|
|
|
LIBNAME=$(basename $VLIBNAME)
|
|
|
|
|
|
|
|
ln -s ../../%{_lib}/$LIBNAME $RPM_BUILD_ROOT%{_libdir}/%{name}.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Move the pkgconfig file
|
|
|
|
|
|
|
|
mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove a couple things so they don't get picked up
|
|
|
|
# Remove a couple things so they don't get picked up
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libcap-ng.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libdrop_ambient.a
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.a
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/_capng.la
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
make check
|
|
|
@ -87,14 +72,16 @@ make check
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
|
|
|
%license COPYING.LIB
|
|
|
|
%license COPYING.LIB
|
|
|
|
/%{_lib}/libcap-ng.so.*
|
|
|
|
%{_libdir}/libcap-ng.so.*
|
|
|
|
|
|
|
|
%{_libdir}/libdrop_ambient.so.*
|
|
|
|
|
|
|
|
%attr(0644,root,root) %{_mandir}/man7/*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
|
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
|
|
|
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
|
|
|
%{_libdir}/libcap-ng.so
|
|
|
|
%{_libdir}/libcap-ng.so
|
|
|
|
|
|
|
|
%{_libdir}/libdrop_ambient.so
|
|
|
|
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
|
|
|
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
|
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
|
|
|
|
|
|
|
|
|
@ -103,29 +90,81 @@ make check
|
|
|
|
%{python3_sitearch}/capng.py*
|
|
|
|
%{python3_sitearch}/capng.py*
|
|
|
|
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%files utils
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.7.11-1
|
|
|
|
* Tue Feb 15 2022 <ansasaki@redhat.com> - 0.8.2-7
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Update apply-disable patch (#2045857)
|
|
|
|
|
|
|
|
Resolves: rhbz#2045857
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-6
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-5
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 02 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-4
|
|
|
|
|
|
|
|
- Adjust syslog warning for bad use of capng_apply
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 30 2021 Steve Grubb <sgrubb@redhat.com> 0.8.2-3
|
|
|
|
|
|
|
|
- Add syslog warning for bad use of capng_apply
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 09 2020 Steve Grubb <sgrubb@redhat.com> 0.8.2-1
|
|
|
|
|
|
|
|
- New upstream bugfix release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 20 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-2
|
|
|
|
|
|
|
|
- Add temporary patch disabling bounding set error codes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 18 2020 Steve Grubb <sgrubb@redhat.com> 0.8.1-1
|
|
|
|
|
|
|
|
- New upstream bugfix release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 08 2020 Steve Grubb <sgrubb@redhat.com> 0.8-1
|
|
|
|
|
|
|
|
- New upstream feature release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Aug 23 2020 Steve Grubb <sgrubb@redhat.com> 0.7.11-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.10-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.10-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 01 2019 Steve Grubb <sgrubb@redhat.com> 0.7.10-1
|
|
|
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-9
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 8 2019 Joe Orton <jorton@redhat.com> - 0.7.9-7
|
|
|
|
|
|
|
|
- fix crash on dlclose due to atfork handler (#1680481)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 18 2021 Zoltan Fridrich <zfridric@redhat.com> 0.7.11-1
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-6
|
|
|
|
resolves: rhbz#1939386 - Rebase libcap-ng to version 0.7.11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Marek Tamaskovic <mtamasko@redhat.com> 0.7.9-5
|
|
|
|
* Tue Oct 16 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-5
|
|
|
|
resolves: rhbz#1740775 - segfault after dlclose
|
|
|
|
- Remove python2 bindings (#1634889)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 08 2019 Steve Grubb <sgrubb@redhat.com> 0.7.9-4
|
|
|
|
* Thu Aug 09 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-4
|
|
|
|
resolves: rhbz#1599364 - filecap fails of files with no capabilities
|
|
|
|
- Fix bug where filecap may not show capabilities
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 09 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-3
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-3
|
|
|
|
resolves: rhbz#1599364 - filecap fails of files with no capabilities
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 07 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-2
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.9-2
|
|
|
|
- Drop python2 bindings (#1588449)
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-1
|
|
|
|
* Wed Feb 07 2018 Steve Grubb <sgrubb@redhat.com> 0.7.9-1
|
|
|
|
- New upstream bugfix release
|
|
|
|
- New upstream bugfix release
|
|
|
|