Hello community,

here is the log from the commit of package libsemanage for openSUSE:Factory 
checked in at 2017-10-01 16:58:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libsemanage (Old)
 and      /work/SRC/openSUSE:Factory/.libsemanage.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libsemanage"

Sun Oct  1 16:58:54 2017 rev:41 rq:529096 version:2.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/libsemanage/python-semanage.changes      
2016-08-03 11:36:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libsemanage.new/python-semanage.changes 
2017-10-01 16:58:55.275131101 +0200
@@ -1,0 +2,6 @@
+Wed Sep 27 15:51:27 UTC 2017 - [email protected]
+
+- build both python2 and python3 version of the semanage binding
+  with the singlespec machinery
+
+-------------------------------------------------------------------
@@ -172,0 +179 @@
+

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

Other differences:
------------------
++++++ libsemanage.spec ++++++
--- /var/tmp/diff_new_pack.DZL1Xc/_old  2017-10-01 16:58:55.911041642 +0200
+++ /var/tmp/diff_new_pack.DZL1Xc/_new  2017-10-01 16:58:55.915041079 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libsemanage
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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

++++++ python-semanage.spec ++++++
--- /var/tmp/diff_new_pack.DZL1Xc/_old  2017-10-01 16:58:55.931038829 +0200
+++ /var/tmp/diff_new_pack.DZL1Xc/_new  2017-10-01 16:58:55.935038266 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-semanage
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-semanage
 Version:        2.5
 Release:        0
@@ -26,6 +27,7 @@
 Source:         
https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/libsemanage-%{version}.tar.gz
 Source1:        baselibs.conf
 Patch0:         suse_path.patch
+BuildRequires:  %{python_module devel}
 BuildRequires:  audit-devel
 BuildRequires:  bison
 BuildRequires:  flex
@@ -33,11 +35,12 @@
 BuildRequires:  libselinux-devel
 BuildRequires:  libsepol-devel
 BuildRequires:  libustr-devel
-BuildRequires:  python-devel
+BuildRequires:  python-rpm-macros
 BuildRequires:  swig
 # Ensure same version
 Requires:       libsemanage1 = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%python_subpackages
 
 %description
 This package contains the Python bindings for developing
@@ -45,18 +48,30 @@
 
 %prep
 %setup -q -n libsemanage-%{version}
-%patch0 -p0
+%patch0
 
 %build
 make %{?_smp_mflags} clean
-make -j1 CFLAGS="%{optflags}" swigify
-make -j1 CFLAGS="%{optflags}" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" 
SHLIBDIR="%{_lib}" all pywrap
+%{python_expand # loop over possible pythons
+make -j1 PYTHON=$python CFLAGS="%{optflags}" swigify
+make -j1 PYTHON=$python CFLAGS="%{optflags}" \
+         LIBDIR="%{_libdir}" \
+         LIBEXECDIR="%{_libexecdir}" \
+         SHLIBDIR="%{_lib}" \
+    all pywrap
+}
 
 %install
 mkdir -p %{buildroot}/%{_lib}
 mkdir -p %{buildroot}%{_libdir}
 mkdir -p %{buildroot}%{_includedir}
-make DESTDIR=%{buildroot} LIBDIR="%{buildroot}%{_libdir}" 
LIBEXECDIR="%{buildroot}%{_libexecdir}" SHLIBDIR="%{buildroot}/%{_lib}" install 
install-pywrap
+%{python_expand # loop over possible pythons
+make PYTHON=$python DESTDIR=%{buildroot} \
+     LIBDIR="%{buildroot}%{_libdir}" \
+     LIBEXECDIR="%{buildroot}%{_libexecdir}" \
+     SHLIBDIR="%{buildroot}/%{_lib}" \
+     install install-pywrap
+}
 
 # remove files contained in other packages
 rm -rf %{buildroot}%{_sysconfdir}
@@ -70,7 +85,7 @@
 rm -rf %{buildroot}%{_libdir}/pkgconfig
 rm -rf %{buildroot}%{_mandir}
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %{python_sitearch}/*
 


Reply via email to