Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libselinux for openSUSE:Factory 
checked in at 2023-06-09 20:35:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libselinux (Old)
 and      /work/SRC/openSUSE:Factory/.libselinux.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libselinux"

Fri Jun  9 20:35:16 2023 rev:74 rq:1090941 version:3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/libselinux/libselinux-bindings.changes   
2023-05-07 18:54:28.092086937 +0200
+++ 
/work/SRC/openSUSE:Factory/.libselinux.new.15902/libselinux-bindings.changes    
    2023-06-09 20:35:17.901808790 +0200
@@ -1,0 +2,6 @@
+Thu Jun  1 11:50:33 UTC 2023 - Johannes Kastl <ka...@b1-systems.de>
+
+- allow building this with different python versions, to make this
+  usable for the new sle15 macro (using python3.11)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libselinux-bindings.spec ++++++
--- /var/tmp/diff_new_pack.ucAeap/_old  2023-06-09 20:35:19.049815457 +0200
+++ /var/tmp/diff_new_pack.ucAeap/_new  2023-06-09 20:35:19.061815526 +0200
@@ -16,7 +16,30 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
+%if 0%{?suse_version} < 1699
+# Leap15, SLES15
+# have some safe defaults
+%define python_subpackage_name python3-selinux
+%define python_base_requirement python3
+%if "%pythons" == "python36"
+%define python_subpackage_name python36-selinux
+%define python_base_requirement python36
+%endif
+%if "%pythons" == "python310"
+%define python_subpackage_name python310-selinux
+%define python_base_requirement python310
+%endif
+%if "%pythons" == "python311"
+%define python_subpackage_name python311-selinux
+%define python_base_requirement python311
+%endif
+%else
+# Tumbleweed
+%define python_subpackage_name python3-selinux
+%define python_base_requirement python3
+%endif
+
 %define libsepol_ver 3.5
 Name:           libselinux-bindings
 Version:        3.5
@@ -50,18 +73,18 @@
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
-%package -n python3-selinux
+%package -n %{python_subpackage_name}
 %define oldpython python
 Summary:        Python bindings for the SELinux runtime library
 Group:          Development/Libraries/Python
+Requires:       %{python_base_requirement}
 Requires:       libselinux1 = %{version}
-Requires:       python3
 %ifpython2
 Obsoletes:      %{oldpython}-selinux < %{version}
 Provides:       %{oldpython}-selinux = %{version}
 %endif
 
-%description -n python3-selinux
+%description -n %{python_subpackage_name}
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
@@ -95,7 +118,7 @@
 make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" 
LIBSEPOLA=%{_libdir}/libsepol.a install-rubywrap V=1
 rm -rf %{buildroot}/%{_lib} %{buildroot}%{_libdir}/libselinux.* 
%{buildroot}%{_libdir}/pkgconfig
 
-%files -n python3-selinux
+%files -n %{python_subpackage_name}
 %{python3_sitearch}/*selinux*
 
 %files -n ruby-selinux

Reply via email to