110 строки
3.5 KiB
Plaintext
110 строки
3.5 KiB
Plaintext
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
|
|
Summary: POSIX capability Library
|
|
Name: libcap-ng
|
|
Version: 0.7.9
|
|
Release: 3%{?dist}
|
|
License: LGPLv2+
|
|
Group: System Environment/Libraries
|
|
URL: http://people.redhat.com/sgrubb/libcap-ng
|
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
%define sha1 libcap-ng=f29f1eefdfbbd93501d9c7a54ac340d4ca660634
|
|
|
|
%description
|
|
The libcap-ng library is intended to make programming with posix capabilities much easier than the traditional libcap library. It includes utilities that can analyse all currently running applications and print out any capabilities and whether or not it has an open ended bounding set. An open bounding set without the securebits "NOROOT" flag will allow full capabilities escalation for apps retaining uid 0 simply by calling execve.
|
|
|
|
%package -n python2-libcap-ng
|
|
Summary: Python bindings for libcap-ng
|
|
License: LGPLv2+
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python2-libs
|
|
BuildRequires: swig
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: python2
|
|
|
|
%description -n python2-libcap-ng
|
|
The python2-libcap-ng package contains the python2 bindings for libcap-ng.
|
|
|
|
%package -n python3-libcap-ng
|
|
Summary: Python3 bindings for libaudit
|
|
License: LGPLv2+
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-libs
|
|
BuildRequires: swig
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: python3
|
|
|
|
%description -n python3-libcap-ng
|
|
The python3-libcap-ng package contains the python3 bindings for libcap-ng.
|
|
|
|
%package devel
|
|
Summary: The libraries and header files needed for libcap-ng development.
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The libraries and header files needed for libcap_ng development.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--libdir=%{_libdir} \
|
|
--with-python \
|
|
--with-python3
|
|
|
|
make %{?_smp_mflags}
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
%check
|
|
make check
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%license COPYING
|
|
%{_libdir}/*.so.*
|
|
%{_bindir}/*
|
|
%{_mandir}/man8/*
|
|
|
|
%files -n python2-libcap-ng
|
|
%{python2_sitelib}/*
|
|
|
|
%files -n python3-libcap-ng
|
|
%{python3_sitelib}/*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_includedir}/*.h
|
|
%{_mandir}/man3/*
|
|
%{_datadir}/aclocal/*.m4
|
|
%{_libdir}/*.a
|
|
|
|
%changelog
|
|
* Mon Oct 19 2020 Andrew Phelps <anphel@microsoft.com> 0.7.9-3
|
|
- Fix check test
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 0.7.9-2
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
|
- Added %%license line automatically
|
|
* Thu Sep 13 2018 Siju Maliakkal <smaliakkal@vmware.com> 0.7.9-1
|
|
- Updated to latest version
|
|
* Mon May 22 2017 Xiaolin Li <xiaolinl@vmware.com> 0.7.8-2
|
|
- Added python3 subpackage.
|
|
* Mon Apr 03 2017 Divya Thaluru <dthaluru@vmware.com> 0.7.8-1
|
|
- Upgrade version to 0.7.8
|
|
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 0.7.7-3
|
|
- Moved man3 to devel subpackage.
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.7.7-2
|
|
- GA - Bump release of all rpms
|
|
* Fri Aug 28 2015 Divya Thaluru <dthaluru@vmware.com> 0.7.7-1
|
|
- Initial version
|
|
|