diff --git a/backport-Fix-the-syntax-error-in-cap-ng-c-50.patch b/backport-Fix-the-syntax-error-in-cap-ng-c-50.patch deleted file mode 100644 index 48c35edf85ae341719ec3d64a89447b80d96a557..0000000000000000000000000000000000000000 --- a/backport-Fix-the-syntax-error-in-cap-ng-c-50.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 10ef4b05da8a46117b7ba65e01bf5367cc73777c Mon Sep 17 00:00:00 2001 -From: yixiangzhike -Date: Wed, 20 Mar 2024 20:47:59 +0800 -Subject: [PATCH] Fix the syntax error in cap-ng.c (#50) - -Signed-off-by: yixiangzhike ---- - src/cap-ng.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/cap-ng.c b/src/cap-ng.c -index d178e35..ed7d718 100644 ---- a/src/cap-ng.c -+++ b/src/cap-ng.c -@@ -445,7 +445,7 @@ static int get_bounding_set(void) - #ifdef HAVE_SYSCALL_H - (int)syscall(__NR_gettid)); - #else -- (int)getpid(); -+ (int)getpid()); - #endif - f = fopen(buf, "re"); - if (f) { -@@ -490,7 +490,7 @@ static int get_ambient_set(void) - #ifdef HAVE_SYSCALL_H - (int)syscall(__NR_gettid)); - #else -- (int)getpid(); -+ (int)getpid()); - #endif - f = fopen(buf, "re"); - if (f) { --- -2.33.0 - diff --git a/backport-Make-Python-test-script-compatible-with-Python2-and-Python3.patch b/backport-Make-Python-test-script-compatible-with-Python2-and-Python3.patch deleted file mode 100644 index ab312f5fd996a74fe696156b646fc6a979fe168c..0000000000000000000000000000000000000000 --- a/backport-Make-Python-test-script-compatible-with-Python2-and-Python3.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 6a6f22d6e99c973bf2f9f400d52370107ae9396b Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?H=C3=A5vard?= -Date: Thu, 26 May 2022 21:26:55 +0000 -Subject: [PATCH] Make Python test script compatible with Python 2 and Python - 3. (#35) - -The shebang line is still restricting it to Python 2. -Removed end-of-line whitespace as well. ---- - bindings/python/test/capng-test.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/bindings/python/test/capng-test.py b/bindings/python/test/capng-test.py -index 6688e77..e6350ec 100755 ---- a/bindings/python/test/capng-test.py -+++ b/bindings/python/test/capng-test.py -@@ -14,7 +14,7 @@ try: - with open('/proc/sys/kernel/cap_last_cap', 'r') as f: - last = int(f.readline()) - except IOError as e: -- print "Error opening /proc/sys/kernel/cap_last_cap: {0}".format(e.strerror) -+ print("Error opening /proc/sys/kernel/cap_last_cap: {0}".format(e.strerror)) - - print("Doing basic bit tests...") - capng.capng_clear(capng.CAPNG_SELECT_BOTH) -@@ -49,7 +49,7 @@ for i in range(last+1): - if capng.capng_have_capabilities(capng.CAPNG_SELECT_CAPS) != capng.CAPNG_PARTIAL: - print("Failed have capabilities test 1") - sys.exit(1) -- -+ - capng.capng_fill(capng.CAPNG_SELECT_BOTH) - rc = capng.capng_update(capng.CAPNG_DROP, capng.CAPNG_EFFECTIVE, i) - if rc: --- -2.27.0 - diff --git a/libcap-ng-0.8.3.tar.gz b/libcap-ng-0.8.3.tar.gz deleted file mode 100644 index 39c2461d152f1edd25ef8e97ead65a084c71dbe3..0000000000000000000000000000000000000000 Binary files a/libcap-ng-0.8.3.tar.gz and /dev/null differ diff --git a/libcap-ng-0.8.5.tar.gz b/libcap-ng-0.8.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9af6d09edc01c8ea280a864a5e9ef6e8eaadc72e Binary files /dev/null and b/libcap-ng-0.8.5.tar.gz differ diff --git a/libcap-ng.spec b/libcap-ng.spec index 2e407ac8c6fa51ffb87cf96c6a6b2eed00c7a792..241d28c146aff702d86ec620e319be6050f3b507 100644 --- a/libcap-ng.spec +++ b/libcap-ng.spec @@ -2,16 +2,13 @@ Summary: Libcap-ng is a library used for posix capabilities programming Name: libcap-ng -Version: 0.8.3 -Release: 2 +Version: 0.8.5 +Release: 1 License: LGPLv2+ and GPLv2+ URL: http://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz -Patch1: backport-Make-Python-test-script-compatible-with-Python2-and-Python3.patch -Patch2: backport-Fix-the-syntax-error-in-cap-ng-c-50.patch - -BuildRequires: gcc, kernel-headers >= 2.6.11, libattr-devel +BuildRequires: gcc, make, kernel-headers >= 2.6.11, libattr-devel Provides: %{name}-utils = %{version}-%{release} Obsoletes: %{name}-utils < %{version}-%{release} @@ -37,6 +34,7 @@ applications that need to use the %{name} library. Summary: Python3 bindings for libcap-ng library License: LGPLv2+ BuildRequires: python3-devel swig +BuildRequires: python3-unversioned-command Requires: %{name} = %{version}-%{release} %description python3 @@ -49,7 +47,7 @@ can be used by python3 applications. %autosetup -p1 %build -%configure --libdir=/%{_lib} --with-python=no --with-python3 +%configure --libdir=/%{_lib} --with-python3 make CFLAGS="%{optflags}" %{?_smp_mflags} %install @@ -100,6 +98,12 @@ make check %attr(0644,root,root) %{_mandir}/man8/* %changelog +* Sat Oct 12 2024 yixiangzhike - 0.8.5-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:update to 0.8.5 + * Mon Apr 8 2024 yixiangzhike - 0.8.3-2 - Type:bugfix - ID:NA