[packages/python-semanage] - patched to use system libsemanage instead of local 2.9; release 6
qboosh
qboosh at pld-linux.org
Sat Jan 13 10:54:44 CET 2024
commit 1bb9c2887aac0daa9e97677b0fa379c03729d373
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 13 09:46:54 2024 +0100
- patched to use system libsemanage instead of local 2.9; release 6
python-semanage-system-libsemanage.patch | 20 ++++++++++++++++++++
python-semanage.spec | 5 ++++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/python-semanage.spec b/python-semanage.spec
index de55cf1..899fe65 100644
--- a/python-semanage.spec
+++ b/python-semanage.spec
@@ -2,17 +2,19 @@ Summary: Python 2 binding for semanage library
Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki semanage
Name: python-semanage
Version: 2.9
-Release: 5
+Release: 6
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
Source0: https://github.com/SELinuxProject/selinux/releases/download/20190315/libsemanage-%{version}.tar.gz
# Source0-md5: 25f086ff66175a0ca0e7b34dbe8586b7
+Patch0: %{name}-system-libsemanage.patch
URL: https://github.com/SELinuxProject/selinux/wiki
BuildRequires: bison
BuildRequires: bzip2-devel
BuildRequires: flex
BuildRequires: libselinux-devel >= 2.9
+BuildRequires: libsemanage-devel >= %{version}
BuildRequires: libsepol-devel >= 2.9
BuildRequires: python-devel >= 2
BuildRequires: rpm-pythonprov
@@ -29,6 +31,7 @@ Wiązania Pythona 2 do biblioteki semanage.
%prep
%setup -q -n libsemanage-%{version}
+%patch0 -p1
%build
%{__make} -j1 pywrap \
diff --git a/python-semanage-system-libsemanage.patch b/python-semanage-system-libsemanage.patch
new file mode 100644
index 0000000..8ae8650
--- /dev/null
+++ b/python-semanage-system-libsemanage.patch
@@ -0,0 +1,20 @@
+--- libsemanage-2.9/src/Makefile.orig 2019-03-15 11:32:30.000000000 +0100
++++ libsemanage-2.9/src/Makefile 2024-01-13 09:34:33.590813875 +0100
+@@ -58,7 +58,7 @@ CFLAGS ?= -Werror -Wall -W -Wundef -Wsha
+ SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \
+ -Wno-unused-parameter
+
+-override CFLAGS += -I../include -D_GNU_SOURCE
++override CFLAGS += -D_GNU_SOURCE
+ RANLIB ?= ranlib
+
+ SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
+@@ -67,7 +67,7 @@ SWIGRUBY = swig -Wall -ruby -o $(SWIGRUB
+
+ all: $(LIBA) $(LIBSO) $(LIBPC)
+
+-pywrap: all $(SWIGSO)
++pywrap: $(SWIGSO)
+
+ rubywrap: all $(SWIGRUBYSO)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-semanage.git/commitdiff/1bb9c2887aac0daa9e97677b0fa379c03729d373
More information about the pld-cvs-commit
mailing list