[packages/libselinux] - updated to 3.11
qboosh
qboosh at pld-linux.org
Mon Jul 13 20:29:30 CEST 2026
commit 3436094f015663cd11aa85ae8cdaa1ccb2759846
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 13 20:29:33 2026 +0200
- updated to 3.11
libselinux-no-pip.patch | 10 +++++-----
libselinux.spec | 11 ++++++-----
2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libselinux.spec b/libselinux.spec
index 97e54af..61cd21e 100644
--- a/libselinux.spec
+++ b/libselinux.spec
@@ -3,17 +3,17 @@
%bcond_without python # Python 3 binding
%bcond_without ruby # Ruby binding
-%define sepol_ver 3.10
+%define sepol_ver 3.11
Summary: SELinux library and simple utilities
Summary(pl.UTF-8): Biblioteka SELinux i proste narzędzia
Name: libselinux
-Version: 3.10
+Version: 3.11
Release: 1
License: Public Domain
Group: Libraries
#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 75d9c8c2e564fa76d9c2c1adba083499
+# Source0-md5: 14c406813dc389a9c9a0d70a05b8be65
Patch0: %{name}-no-pip.patch
URL: https://github.com/SELinuxProject/selinux/wiki
%ifarch ppc ppc64 sparc sparcv9 sparc64
@@ -26,8 +26,9 @@ BuildRequires: libsepol-devel >= %{sepol_ver}
%{?with_python:BuildRequires: libsepol-static >= %{sepol_ver}}
BuildRequires: pcre2-8-devel
BuildRequires: pkgconfig
+%{?with_python:BuildRequires: python3-build}
%{?with_python:BuildRequires: python3-devel >= 1:3.2}
-%{?with_python:BuildRequires: python3-setuptools}
+%{?with_python:BuildRequires: python3-installer}
%{?with_python:BuildRequires: rpm-pythonprov}
BuildRequires: rpmbuild(macros) >= 1.714
%{?with_ruby:BuildRequires: ruby-devel >= 1.9}
@@ -311,7 +312,7 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/selinux/audit2why.cpython-*.so
%{py3_sitedir}/selinux/__init__.py
%{py3_sitedir}/selinux/__pycache__
-%{py3_sitedir}/selinux-%{version}-py*.egg-info
+%{py3_sitedir}/selinux-%{version}.dist-info
%endif
%if %{with ruby}
diff --git a/libselinux-no-pip.patch b/libselinux-no-pip.patch
index fa0c334..7891eb2 100644
--- a/libselinux-no-pip.patch
+++ b/libselinux-no-pip.patch
@@ -1,11 +1,11 @@
---- libselinux-3.10/src/Makefile.orig 2026-02-02 03:01:16.000000000 +0100
-+++ libselinux-3.10/src/Makefile 2026-04-23 21:03:10.282296773 +0200
-@@ -198,7 +198,7 @@ ifneq ($(DISABLE_SHARED),y)
+--- libselinux-3.11/src/Makefile.orig 2026-07-01 18:51:05.000000000 +0200
++++ libselinux-3.11/src/Makefile 2026-07-13 20:14:14.543941657 +0200
+@@ -196,7 +196,7 @@
endif
install-pywrap: pywrap
-- CFLAGS="$(CPPFLAGS) $(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) -m pip install --no-build-isolation --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) .
-+ CFLAGS="$(CPPFLAGS) $(CFLAGS) $(SWIG_CFLAGS)" $(PYTHON) setup.py install --skip-build --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` $(PYTHON_SETUP_ARGS)
+- $(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
install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py
ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libselinux.git/commitdiff/3436094f015663cd11aa85ae8cdaa1ccb2759846
More information about the pld-cvs-commit
mailing list