Hello community,

here is the log from the commit of package libselinux for openSUSE:Factory 
checked in at 2018-03-30 11:54:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libselinux (Old)
 and      /work/SRC/openSUSE:Factory/.libselinux.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libselinux"

Fri Mar 30 11:54:55 2018 rev:49 rq:590074 version:2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/libselinux/libselinux-bindings.changes   
2017-12-06 08:46:39.819179791 +0100
+++ /work/SRC/openSUSE:Factory/.libselinux.new/libselinux-bindings.changes      
2018-03-30 11:54:57.080792994 +0200
@@ -1,0 +2,6 @@
+Fri Mar 16 15:25:10 UTC 2018 - [email protected]
+
+- Updated spec file to use python3. Added python3.patch to fix
+  build
+
+-------------------------------------------------------------------

New:
----
  python3.patch

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

Other differences:
------------------
++++++ libselinux-bindings.spec ++++++
--- /var/tmp/diff_new_pack.Iz3DgY/_old  2018-03-30 11:54:57.988760156 +0200
+++ /var/tmp/diff_new_pack.Iz3DgY/_new  2018-03-30 11:54:57.992760012 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libselinux-bindings
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,8 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+
 %define libsepol_ver 2.6
 
 Name:           libselinux-bindings
@@ -32,10 +34,12 @@
 Source2:        baselibs.conf
 # PATCH-FIX-UPSTREAM Include <sys/uio.h> for readv prototype
 Patch4:         readv-proto.patch
+Patch5:         python3.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  libsepol-devel-static >= %{libsepol_ver}
 BuildRequires:  pcre-devel
-BuildRequires:  python-devel
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-devel
 BuildRequires:  ruby-devel
 BuildRequires:  swig
 
@@ -43,14 +47,19 @@
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
-%package -n python-selinux
+%package -n python3-selinux
 Summary:        Python bindings for the SELinux runtime library
 License:        SUSE-Public-Domain
 Group:          Development/Libraries/Python
+%define oldpython python
+%ifpython2
+Obsoletes:      %{oldpython}-selinux < %{version}
+Provides:       %{oldpython}-selinux = %{version}
+%endif
 Requires:       libselinux1 = %{version}
-Requires:       python
+Requires:       python3
 
-%description -n python-selinux
+%description -n python3-selinux
 libselinux provides an interface to get and set process and file
 security contexts and to obtain security policy decisions.
 
@@ -74,11 +83,12 @@
 %prep
 %setup -q -n libselinux-%{version}
 %patch4 -p1
+%patch5 -p1
 
 %build
 make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
 make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src swigify
-make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src pywrap
+make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" 
PYTHON=/usr/bin/python3 -C src pywrap
 make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src 
rubywrap
 
 %install
@@ -87,10 +97,10 @@
 make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" 
SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" -C src install-rubywrap
 rm -rf $RPM_BUILD_ROOT/%{_lib} $RPM_BUILD_ROOT%{_libdir}/libselinux.* 
$RPM_BUILD_ROOT%{_libdir}/pkgconfig
 
-%files -n python-selinux
+%files -n python3-selinux
 %defattr(-,root,root,-)
-%{py_sitedir}/selinux/
-%{py_sitedir}/_selinux.so
+%{python3_sitearch}/selinux/
+%{python3_sitearch}/_selinux.so
 
 %files -n ruby-selinux
 %defattr(-,root,root,-)

++++++ libselinux.spec ++++++
--- /var/tmp/diff_new_pack.Iz3DgY/_old  2018-03-30 11:54:58.012759288 +0200
+++ /var/tmp/diff_new_pack.Iz3DgY/_new  2018-03-30 11:54:58.016759143 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libselinux
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ python3.patch ++++++
Index: libselinux-2.6/src/Makefile
===================================================================
--- libselinux-2.6.orig/src/Makefile    2016-10-14 17:31:26.000000000 +0200
+++ libselinux-2.6/src/Makefile 2018-03-22 11:33:36.527385495 +0100
@@ -1,7 +1,7 @@
 # Support building the Python bindings multiple times, against various Python
 # runtimes (e.g. Python 2 vs Python 3) by optionally prefixing the build
 # targets with "PYPREFIX":
-PYTHON ?= python
+PYTHON ?= python3
 PYPREFIX ?= $(notdir $(PYTHON))
 RUBY ?= ruby
 RUBYPREFIX ?= $(notdir $(RUBY))

Reply via email to