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-08-09 17:24:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libselinux (Old)
 and      /work/SRC/openSUSE:Factory/.libselinux.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libselinux"

Wed Aug  9 17:24:23 2023 rev:75 rq:1102846 version:3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/libselinux/libselinux-bindings.changes   
2023-06-09 20:35:17.901808790 +0200
+++ 
/work/SRC/openSUSE:Factory/.libselinux.new.11712/libselinux-bindings.changes    
    2023-08-09 17:24:30.369101182 +0200
@@ -1,0 +2,14 @@
+Fri Aug  4 13:14:19 UTC 2023 - Matej Cepl <[email protected]>
+
+- (bsc#1212618) Divide libselinux and libselinux-bindings again.
+  libselinux itself is in Ring0 so it has to have absolutely
+  minimal dependencies, so it is better to separate
+  libselinux-bindings into a separate pacakge.
+
+-------------------------------------------------------------------
+Tue Jun 20 13:34:39 UTC 2023 - Johannes Segitz <[email protected]>
+
+- Add explicit BuildRequires for python3-pip and python3-wheel on
+  15.5, currently the macros don't do the right thing
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/libselinux/libselinux.changes    2023-05-07 
18:54:28.136087182 +0200
+++ /work/SRC/openSUSE:Factory/.libselinux.new.11712/libselinux.changes 
2023-08-09 17:24:30.401101382 +0200
@@ -1,0 +2,42 @@
+Tue Aug  8 06:59:16 UTC 2023 - Dominique Leuenberger <[email protected]>
+
+- Do not BuildRequire swig and ruby-devel in the main build phase:
+  those are only needed for the bindings.
+
+-------------------------------------------------------------------
+Fri Aug  4 13:14:14 UTC 2023 - Matej Cepl <[email protected]>
+
+- (bsc#1212618) Divide libselinux and libselinux-bindings again.
+  libselinux itself is in Ring0 so it has to have absolutely
+  minimal dependencies, so it is better to separate
+  libselinux-bindings into a separate pacakge.
+
+-------------------------------------------------------------------
+Tue Jul  4 08:32:49 UTC 2023 - Johannes Segitz <[email protected]>
+
+- Fix python packaging by setting the name to a fixed value
+
+-------------------------------------------------------------------
+Fri Jun 23 14:50:33 UTC 2023 - Matej Cepl <[email protected]>
+
+- Remove separate libselinux-bindings SPEC file (bsc#1212618).
+
+-------------------------------------------------------------------
+Tue Jun 20 13:34:39 UTC 2023 - Johannes Segitz <[email protected]>
+
+- Add explicit BuildRequires for python3-pip and python3-wheel on
+  15.5, currently the macros don't do the right thing
+
+-------------------------------------------------------------------
+Thu Jun  1 11:50:33 UTC 2023 - Johannes Kastl <[email protected]>
+
+- allow building this with different python versions, to make this
+  usable for the new sle15 macro (using python3.11)
+
+-------------------------------------------------------------------
+Fri May  5 12:35:31 UTC 2023 - Daniel Garcia <[email protected]>
+
+- Add python-wheel build dependency to build correctly with latest
+  python-pip version.
+
+-------------------------------------------------------------------
@@ -31,0 +74 @@
+- Refreshed python3.8-compat.patch
@@ -128,0 +172 @@
+  * Refreshed python3.8-compat.patch
@@ -149,0 +194,6 @@
+Mon Dec 16 16:04:41 UTC 2019 - Johannes Segitz <[email protected]>
+
+- Added swig4_moduleimport.patch to prevent import errors due to
+  SWIG 4
+
+-------------------------------------------------------------------
@@ -156,0 +207,6 @@
+Wed Oct 30 17:21:00 CET 2019 - Matej Cepl <[email protected]>
+
+- Add python3.8-compat.patch which makes build possible even with
+  Python 3.8, which doesn’t automatically adds -lpython<ver>
+
+-------------------------------------------------------------------
@@ -162,0 +219,4 @@
+-------------------------------------------------------------------
+Tue May 28 08:28:03 UTC 2019 - Martin LiÅ¡ka <[email protected]>
+
+- Disable LTO (boo#1133244).
@@ -214,0 +275,6 @@
+Fri Mar 16 15:25:10 UTC 2018 - [email protected]
+
+- Updated spec file to use python3. Added python3.patch to fix
+  build
+
+-------------------------------------------------------------------
@@ -343,0 +410,6 @@
+Wed May 27 11:53:54 UTC 2015 - [email protected]
+
+- Update libselinux-2.2-ruby.patch: use RbConfig instead of
+  deprecated Config.
+
+-------------------------------------------------------------------
@@ -449,0 +522 @@
+- added BuildRequires: pcre-devel
@@ -543,0 +617 @@
+- fix build for ruby-1.9

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

Other differences:
------------------
++++++ libselinux-bindings.spec ++++++
--- /var/tmp/diff_new_pack.9rv1an/_old  2023-08-09 17:24:31.313107060 +0200
+++ /var/tmp/diff_new_pack.9rv1an/_new  2023-08-09 17:24:31.317107085 +0200
@@ -17,74 +17,59 @@
 
 
 %{?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 python_subpackage_only 1
 %define libsepol_ver 3.5
+%define upname libselinux
 Name:           libselinux-bindings
 Version:        3.5
 Release:        0
-Summary:        SELinux runtime library and simple utilities
+Summary:        SELinux runtime library and utilities
 License:        SUSE-Public-Domain
 Group:          Development/Libraries/C and C++
 URL:            https://github.com/SELinuxProject/selinux/wiki/Releases
-Source0:        
https://github.com/SELinuxProject/selinux/releases/download/%{version}/libselinux-%{version}.tar.gz
-Source1:        
https://github.com/SELinuxProject/selinux/releases/download/%{version}/libselinux-%{version}.tar.gz.asc
+Source0:        
https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{upname}-%{version}.tar.gz
+Source1:        
https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{upname}-%{version}.tar.gz.asc
 Source2:        libselinux.keyring
 Source3:        selinux-ready
 Source4:        baselibs.conf
 # PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
 Patch4:         readv-proto.patch
+Patch5:         skip_cycles.patch
 # PATCH-FIX-UPSTREAM python3.8-compat.patch [email protected]
 # Make linking working even when default pkg-config doesn’t provide 
-lpython<ver>
-Patch5:         python3.8-compat.patch
-Patch6:         swig4_moduleimport.patch
+Patch6:         python3.8-compat.patch
+Patch7:         swig4_moduleimport.patch
+BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
+BuildRequires:  fdupes
+BuildRequires:  libselinux-devel = %{version}
+BuildRequires:  libsepol-devel >= %{libsepol_ver}
 BuildRequires:  libsepol-devel-static >= %{libsepol_ver}
+BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-devel
 BuildRequires:  ruby-devel
 BuildRequires:  swig
 BuildRequires:  pkgconfig(libpcre2-8)
+%python_subpackages
 
 %description
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
-%package -n %{python_subpackage_name}
+%package -n python-selinux
 %define oldpython python
 Summary:        Python bindings for the SELinux runtime library
 Group:          Development/Libraries/Python
-Requires:       %{python_base_requirement}
 Requires:       libselinux1 = %{version}
+Obsoletes:      python-selinux < %{version}
+Provides:       python-selinux = %{version}
 %ifpython2
 Obsoletes:      %{oldpython}-selinux < %{version}
 Provides:       %{oldpython}-selinux = %{version}
 %endif
 
-%description -n %{python_subpackage_name}
+%description -n python-selinux
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
@@ -105,21 +90,32 @@
 language.
 
 %prep
-%setup -q -n libselinux-%{version}
-%autopatch -p1
+%autosetup -p1 -n %{upname}-%{version}
 
 %build
-make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" swigify V=1 USE_PCRE2=y
-make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" pywrap V=1 USE_PCRE2=y
-make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" rubywrap V=1 USE_PCRE2=y
+%{python_expand :
+%make_build LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" swigify USE_PCRE2=y PYTHON=$python
+%make_build LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" pywrap USE_PCRE2=y PYTHON=$python
+%make_build LIBDIR="%{_libdir}" CFLAGS="%{optflags} 
-fno-semantic-interposition" rubywrap USE_PCRE2=y PYTHON=$python
+}
 
 %install
-make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" 
LIBSEPOLA=%{_libdir}/libsepol.a install-pywrap V=1
-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 %{python_subpackage_name}
-%{python3_sitearch}/*selinux*
+mkdir -p %{buildroot}/%{_lib}
+mkdir -p %{buildroot}%{_libdir}
+mkdir -p %{buildroot}%{_includedir}
+mkdir -p %{buildroot}%{_sbindir}
+%{python_expand :
+make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" 
PYTHON=$python LIBSEPOLA=%{_libdir}/libsepol.a install-pywrap V=1
+make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" 
PYTHON=$python LIBSEPOLA=%{_libdir}/libsepol.a install-rubywrap V=1
+}
+
+# Remove duplicate files
+%fdupes -s %{buildroot}%{_mandir}
+
+%files %{python_files selinux}
+%{python_sitearch}/selinux
+%{python_sitearch}/selinux-%{version}*-info
+%{python_sitearch}/_selinux*
 
 %files -n ruby-selinux
 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so

++++++ libselinux.spec ++++++
--- /var/tmp/diff_new_pack.9rv1an/_old  2023-08-09 17:24:31.341107234 +0200
+++ /var/tmp/diff_new_pack.9rv1an/_new  2023-08-09 17:24:31.345107259 +0200
@@ -32,8 +32,13 @@
 # PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
 Patch4:         readv-proto.patch
 Patch5:         skip_cycles.patch
+# PATCH-FIX-UPSTREAM python3.8-compat.patch [email protected]
+# Make linking working even when default pkg-config doesn’t provide 
-lpython<ver>
+Patch6:         python3.8-compat.patch
+Patch7:         swig4_moduleimport.patch
 BuildRequires:  fdupes
 BuildRequires:  libsepol-devel >= %{libsepol_ver}
+BuildRequires:  libsepol-devel-static >= %{libsepol_ver}
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libpcre2-8)
 
@@ -57,8 +62,8 @@
 %package -n selinux-tools
 Summary:        SELinux command-line utilities
 Group:          System/Base
-Provides:       libselinux-utils = %{version}-%{release}
 Requires:       libselinux1 = %{version}
+Provides:       libselinux-utils = %{version}-%{release}
 
 %description -n selinux-tools
 Security-enhanced Linux is a feature of the kernel and some
@@ -98,19 +103,21 @@
 necessary to develop your own software using libselinux.
 
 %prep
-%setup -q -n libselinux-%{version}
-%patch4 -p1
-%patch5 -p1
+%autosetup -p1 -n libselinux-%{version}
 
 %build
-make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} 
-fno-semantic-interposition -ffat-lto-objects" USE_PCRE2=y
+%make_build LIBDIR="%{_libdir}" CC="gcc" \
+    CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" \
+    USE_PCRE2=y
 
 %install
 mkdir -p %{buildroot}/%{_lib}
 mkdir -p %{buildroot}%{_libdir}
 mkdir -p %{buildroot}%{_includedir}
 mkdir -p %{buildroot}%{_sbindir}
-make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" 
BINDIR="%{_sbindir}" install
+make DESTDIR=%{buildroot} LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" \
+    BINDIR="%{_sbindir}" install
+
 mv %{buildroot}%{_sbindir}/getdefaultcon %{buildroot}%{_sbindir}/selinuxdefcon
 mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
 install -m 0755 %{SOURCE3} %{buildroot}%{_sbindir}/selinux-ready

Reply via email to