From 3e9f153801e5065187565f0ebe4ba99076bda509 Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Tue, 12 Mar 2024 15:17:21 +0800 Subject: [PATCH] Rebuild with python3.11 Signed-off-by: Bo Ren --- libselinux.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libselinux.spec b/libselinux.spec index 3404847..53f3c9f 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %define ruby_inc %(pkg-config --cflags ruby) Name: libselinux @@ -17,6 +17,7 @@ Patch0001: 0001-Use-SHA-2-instead-of-SHA-1.patch BuildRequires: gcc make BuildRequires: ruby-devel ruby libsepol-static >= %{version} swig pcre2-devel xz-devel BuildRequires: python3 python3-devel python3-setuptools python3-pip python3-wheel +BuildRequires: python3-rpm-macros BuildRequires: systemd Requires: libsepol >= %{version} Requires: pcre2 @@ -191,13 +192,17 @@ rm -f %{buildroot}%{abidir}/selinux.dump %{python3_sitearch}/selinux-%{version}* %{python3_sitearch}/_selinux* %{abidir}/_selinux*.dump -%{abidir}/audit2why.cpython-310-%{_arch}-linux-gnu.dump +%{abidir}/audit2why.cpython-%{python3_version_nodots}-%{_arch}-linux-gnu.dump %files ruby %{ruby_vendorarchdir}/selinux.so %changelog +* Tue Mar 12 2024 Bo Ren - 3.5-3 +- Rebuild with python3.11 +- Fix build error + * Wed Nov 01 2023 Funda Wang - 3.5-2 - Fix build with latest python-setuptools -- Gitee