[packages/libcap-ng] up to 0.9.2

atler atler at pld-linux.org
Mon Mar 30 20:58:44 CEST 2026


commit 2ca12e649eab83bd95a51063a01406d836591006
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Mar 30 20:55:57 2026 +0200

    up to 0.9.2
    
    dist tarballs not available from people.redhat.com for the time being
    (see https://github.com/stevegrubb/libcap-ng/issues/63)

 libcap-ng.spec   | 20 ++++++++++----------
 python-var.patch | 26 --------------------------
 unloadable.patch | 29 -----------------------------
 3 files changed, 10 insertions(+), 65 deletions(-)
---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index 5017ef0..14fce17 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -6,16 +6,14 @@
 Summary:	Next Generation of POSIX capabilities library
 Summary(pl.UTF-8):	Biblioteka POSIX capabilities nowej generacji
 Name:		libcap-ng
-Version:	0.8.5
-Release:	2
+Version:	0.9.2
+Release:	1
 Epoch:		1
 License:	LGPL v2.1+ (library), GPL v2+ (utilities)
 Group:		Libraries
-Source0:	https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
-# Source0-md5:	3c280d902b902f28caf3990e018fcd31
+Source0:	https://github.com/stevegrubb/libcap-ng/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	c0603e7f6e68fa3fd4bcfc5ea93f3b93
 Patch0:		vserver.patch
-Patch1:		unloadable.patch
-Patch2:		python-var.patch
 URL:		https://people.redhat.com/sgrubb/libcap-ng/
 BuildRequires:	attr-devel
 BuildRequires:	autoconf >= 2.50
@@ -99,11 +97,9 @@ Interfejs Pythona 3 do biblioteki libcap-ng.
 %prep
 %setup -q
 %patch -P 0 -p1
-%patch -P 1 -p1
-%patch -P 2 -p1
 
 # force regeneration after captab.h change in vserver patch
-%{__rm} bindings/python3/capng.py
+%{__rm} -f bindings/python3/capng.py
 
 %build
 %{__libtoolize}
@@ -113,6 +109,7 @@ Interfejs Pythona 3 do biblioteki libcap-ng.
 %{__automake}
 %configure \
 	%{__enable_disable static_libs static} \
+	--enable-deprecated \
 	%{!?with_python3:--without-python3}
 %{__make}
 
@@ -122,10 +119,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/%{_lib}
+install -d $RPM_BUILD_ROOT/{%{_lib},%{bash_compdir}}
 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libcap-ng.so.* $RPM_BUILD_ROOT/%{_lib}
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcap-ng.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libcap-ng.so
 
+%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/libcap-ng.bash_completion $RPM_BUILD_ROOT%{bash_compdir}/libcap-ng
+
 %if %{with python3}
 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/_capng.la
 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
@@ -175,6 +174,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/filecap.8*
 %{_mandir}/man8/netcap.8*
 %{_mandir}/man8/pscap.8*
+%{bash_compdir}/libcap-ng
 
 %if %{with python3}
 %files -n python3-capng
diff --git a/python-var.patch b/python-var.patch
deleted file mode 100644
index 17d1ad9..0000000
--- a/python-var.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 6b73a2f4622a23a51dc4df578f5c345397bc5fda Mon Sep 17 00:00:00 2001
-From: Jan Palus <jpalus at fastmail.com>
-Date: Wed, 10 Apr 2024 19:15:15 +0200
-Subject: [PATCH] Fix python path when invoking py-compile
-
-48eebb2 replaced custom PYTHON3 variable with PYTHON by using standard
-AM_PATH_PYTHON macro. Makefile however still referred to old one.
-There's no need to set PYTHON explicitly anymore so drop it.
-
-Fixes #53
----
- bindings/python3/Makefile.am | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/bindings/python3/Makefile.am b/bindings/python3/Makefile.am
-index 70a1dd8..6072fc2 100644
---- a/bindings/python3/Makefile.am
-+++ b/bindings/python3/Makefile.am
-@@ -27,7 +27,6 @@ AM_CPPFLAGS = -I. -I$(top_builddir) $(PYTHON3_INCLUDES)
- LIBS = ${top_builddir}/src/libcap-ng.la
- SWIG_FLAGS = -python
- SWIG_INCLUDES = ${AM_CPPFLAGS}
--PYTHON = $(PYTHON3)
- pyexec_PYTHON = capng.py
- pyexec_LTLIBRARIES = _capng.la
- pyexec_SOLIBRARIES = _capng.so
diff --git a/unloadable.patch b/unloadable.patch
deleted file mode 100644
index decb32d..0000000
--- a/unloadable.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 3c42afac11c323fee5da7db771cd20d414fa265d Mon Sep 17 00:00:00 2001
-From: Rene Luria <rene.luria at infomaniak.com>
-Date: Sun, 9 Dec 2018 21:51:54 +0100
-Subject: [PATCH] Fix mark the DSOs as unloadable
-
-as suggested by Simon McVittie in
-https://github.com/stevegrubb/libcap-ng/issues/5 and Carlos O'Donell at
-https://sourceware.org/bugzilla/show_bug.cgi?id=13502 mark the DSOs as
-unloadable with -z nodelete to prevent crashes at fork
-
-https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904808
-
-Fix: https://github.com/stevegrubb/libcap-ng/issues/5
----
- src/Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index 5a66d4e..d46d02b 100644
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -34,6 +34,6 @@ noinst_HEADERS = captab.h
- libcap_ng_la_SOURCES = cap-ng.c lookup_table.c
- libcap_ng_la_LIBADD =
- libcap_ng_la_DEPENDENCIES = $(libcap_ng_la_SOURCES) ../config.h
--libcap_ng_la_LDFLAGS = -Wl,-z,relro
-+libcap_ng_la_LDFLAGS = -Wl,-z,relro -Wl,-z,nodelete
- libdrop_ambient_la_SOURCES = libdrop_ambient.c
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcap-ng.git/commitdiff/2ca12e649eab83bd95a51063a01406d836591006



More information about the pld-cvs-commit mailing list