[packages/selinux-python] - added no-pip patch (use just setuptools to install); release 2
qboosh
qboosh at pld-linux.org
Thu Jul 18 07:49:19 CEST 2024
commit eb1330612106734d2ce614168e8d981d5ad4dd6e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 18 06:26:33 2024 +0200
- added no-pip patch (use just setuptools to install); release 2
selinux-python-no-pip.patch | 11 +++++++++++
selinux-python.spec | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/selinux-python.spec b/selinux-python.spec
index 12e385b..7718a37 100644
--- a/selinux-python.spec
+++ b/selinux-python.spec
@@ -2,16 +2,17 @@ Summary: SELinux Python policy utilities
Summary(pl.UTF-8): Narzędzia do polityk SELinuksa napisane w Pythonie
Name: selinux-python
Version: 3.7
-Release: 1
+Release: 2
License: GPL v2 (sepolgen), GPL v2+ (semodule, sepolicy)
Group: Applications/System
#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: b2bc27bc4e3243d1f60a0cfa6343f480
+Patch0: %{name}-no-pip.patch
URL: https://github.com/SELinuxProject/selinux/wiki
BuildRequires: libsepol-static >= 3.7
BuildRequires: python3-modules
-BuildRequires: python3-pip
+BuildRequires: python3-setuptools
BuildRequires: rpm-build >= 4.6
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -107,6 +108,7 @@ Moduły Pythona do operowania na politykach SELinuksa.
%prep
%setup -q
+%patch0 -p1
%build
CFLAGS="%{rpmcflags} %{rpmcppflags}" \
diff --git a/selinux-python-no-pip.patch b/selinux-python-no-pip.patch
new file mode 100644
index 0000000..81e19a9
--- /dev/null
+++ b/selinux-python-no-pip.patch
@@ -0,0 +1,11 @@
+--- selinux-python-3.7/sepolicy/Makefile.orig 2024-06-26 17:30:41.000000000 +0200
++++ selinux-python-3.7/sepolicy/Makefile 2024-07-17 22:12:55.069441157 +0200
+@@ -27,7 +27,7 @@ test:
+ @$(PYTHON) test_sepolicy.py -v
+
+ install:
+- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) .
++ $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` $(PYTHON_SETUP_ARGS)
+ [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
+ install -m 755 sepolicy.py $(DESTDIR)$(BINDIR)/sepolicy
+ (cd $(DESTDIR)$(BINDIR); ln -sf sepolicy sepolgen)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/selinux-python.git/commitdiff/eb1330612106734d2ce614168e8d981d5ad4dd6e
More information about the pld-cvs-commit
mailing list