forked from pool/libcap-ng
Accepting request 1175378 from home:mcepl:branches:security
- Update to version 0.8.5: * Remove python global exception handler since it's deprecated * Make the utilities link against just built libraries * Remove unused macro in cap-ng.h - Remove libcap-ng.rpmlintrc, it doesn't seem to be used any more. OBS-URL: https://build.opensuse.org/request/show/1175378 OBS-URL: https://build.opensuse.org/package/show/security/libcap-ng?expand=0&rev=46
This commit is contained in:
parent
3cfcc29506
commit
7007094666
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68581d3b38e7553cb6f6ddf7813b1fc99e52856f21421f7b477ce5abd2605a8a
|
||||
size 453749
|
3
libcap-ng-0.8.5.tar.gz
Normal file
3
libcap-ng-0.8.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3ba5294d1cbdfa98afaacfbc00b6af9ed2b83e8a21817185dfd844cc8c7ac6ff
|
||||
size 460149
|
@ -17,10 +17,8 @@
|
||||
|
||||
|
||||
%define sover 0
|
||||
%bcond_without python2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: libcap-ng-python
|
||||
Version: 0.8.4
|
||||
Version: 0.8.5
|
||||
Release: 0
|
||||
Summary: An alternate Linux/POSIX capabilities library
|
||||
License: LGPL-2.1-or-later
|
||||
@ -28,12 +26,12 @@ Group: Development/Libraries/C and C++
|
||||
URL: https://people.redhat.com/sgrubb/libcap-ng
|
||||
Source0: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
Source99: libcap-ng.rpmlintrc
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: kernel-headers >= 2.6.11
|
||||
BuildRequires: libcap-ng-devel = %{version}
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: swig
|
||||
|
||||
%description
|
||||
@ -41,15 +39,6 @@ libcap-ng is a library providing an alternate mechanism to libcap to
|
||||
inspect and set Linux process and file capabilities (modeled upon a
|
||||
withdrawn POSIX.1e draft).
|
||||
|
||||
%package -n python2-capng
|
||||
Summary: Python bindings for libcap-ng library
|
||||
Group: Development/Libraries/Python
|
||||
Requires: libcap-ng%{sover} = %{version}
|
||||
|
||||
%description -n python2-capng
|
||||
The libcap-ng-python package contains the bindings so that libcap-ng
|
||||
and can be used by Python applications.
|
||||
|
||||
%package -n python3-capng
|
||||
Summary: Python bindings for libcap-ng library
|
||||
Group: Development/Libraries/Python
|
||||
@ -65,25 +54,17 @@ and can be used by Python applications.
|
||||
%build
|
||||
%configure \
|
||||
--disable-static \
|
||||
%if %{with python2}
|
||||
--with-python \
|
||||
%endif
|
||||
--with-python3
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} PYTHON="python3"
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
%make_install -C bindings/python
|
||||
%endif
|
||||
%make_install -C bindings/python3
|
||||
%make_install -C bindings/python3 PYTHON="python3"
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-capng
|
||||
%{python2_sitearch}/*
|
||||
%endif
|
||||
%fdupes %{buildroot}%{python3_sitearch}
|
||||
|
||||
%files -n python3-capng
|
||||
%{python3_sitearch}/*
|
||||
%pycache_only %{python3_sitearch}/__pycache__/capng*.pyc
|
||||
%{python3_sitearch}/_capng.so
|
||||
%{python3_sitearch}/capng.py
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 20 17:29:35 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to version 0.8.5:
|
||||
* Remove python global exception handler since it's deprecated
|
||||
* Make the utilities link against just built libraries
|
||||
* Remove unused macro in cap-ng.h
|
||||
- Remove libcap-ng.rpmlintrc, it doesn't seem to be used any more.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 2 10:35:45 UTC 2024 - jun wang <jgwang@suse.com>
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
addFilter("libcap-ng-devel..*: W: no-dependency-on libcap-ng/libcap-ng-libs/liblibcap-ng")
|
@ -20,7 +20,7 @@
|
||||
%define ambient_sover 0
|
||||
|
||||
Name: libcap-ng
|
||||
Version: 0.8.4
|
||||
Version: 0.8.5
|
||||
Release: 0
|
||||
Summary: An alternate Linux/POSIX capabilities library
|
||||
License: LGPL-2.1-or-later
|
||||
@ -28,7 +28,6 @@ Group: Development/Libraries/C and C++
|
||||
URL: https://people.redhat.com/sgrubb/libcap-ng
|
||||
Source0: https://people.redhat.com/sgrubb/%{name}/%{name}-%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
Source99: libcap-ng.rpmlintrc
|
||||
BuildRequires: kernel-headers >= 2.6.11
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user