[packages/selinux-python] - updated to 3.11
qboosh
qboosh at pld-linux.org
Tue Jul 14 06:26:19 CEST 2026
commit 4c1e36160a8739988bd2252d4a4fb826c2dd68db
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 14 06:26:24 2026 +0200
- updated to 3.11
selinux-python-no-pip.patch | 12 ++++++------
selinux-python.spec | 12 +++++++-----
2 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/selinux-python.spec b/selinux-python.spec
index ba3d6ac..96ceafa 100644
--- a/selinux-python.spec
+++ b/selinux-python.spec
@@ -1,18 +1,20 @@
-%define selinux_ver 3.10
+%define selinux_ver 3.11
Summary: SELinux Python policy utilities
Summary(pl.UTF-8): Narzędzia do polityk SELinuksa napisane w Pythonie
Name: selinux-python
-Version: 3.10
+Version: 3.11
Release: 1
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: bc51e033401ab6aa4e1dd1e494d8bc3a
+# Source0-md5: 3b74d71e3f864ed67f23ef2f819cb99e
Patch0: %{name}-no-pip.patch
URL: https://github.com/SELinuxProject/selinux/wiki
BuildRequires: libsepol-static >= %{selinux_ver}
-BuildRequires: python3-modules
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
BuildRequires: rpm-build >= 4.6
BuildRequires: rpm-pythonprov
@@ -176,4 +178,4 @@ rm -rf $RPM_BUILD_ROOT
%dir %{py3_sitescriptdir}/sepolicy/templates
%{py3_sitescriptdir}/sepolicy/templates/__pycache__
%{py3_sitescriptdir}/sepolicy/templates/*.py
-%{py3_sitescriptdir}/sepolicy-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sepolicy-%{version}.dist-info
diff --git a/selinux-python-no-pip.patch b/selinux-python-no-pip.patch
index 81e19a9..7de4760 100644
--- a/selinux-python-no-pip.patch
+++ b/selinux-python-no-pip.patch
@@ -1,11 +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:
+--- selinux-python-3.11/sepolicy/Makefile.orig 2026-07-01 18:51:05.000000000 +0200
++++ selinux-python-3.11/sepolicy/Makefile 2026-07-13 22:34:45.948264816 +0200
+@@ -26,7 +26,7 @@
@$(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)
+ install: python-build
+- $(PYTHON) -m pip install --no-build-isolation --force-reinstall --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` dist/*.whl
++ $(PYTHON) -m installer --prefix=$(PREFIX) --compile-bytecode=0 --compile-bytecode=1 --compile-bytecode=2 `test -n "$(DESTDIR)" && echo --destdir=$(DESTDIR)` dist/*.whl
[ -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/4c1e36160a8739988bd2252d4a4fb826c2dd68db
More information about the pld-cvs-commit
mailing list