Hello community,

here is the log from the commit of package python-kmod for openSUSE:Factory 
checked in at 2018-03-28 10:30:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-kmod (Old)
 and      /work/SRC/openSUSE:Factory/.python-kmod.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-kmod"

Wed Mar 28 10:30:57 2018 rev:2 rq:591030 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-kmod/python-kmod.changes  2017-02-03 
18:57:45.670473981 +0100
+++ /work/SRC/openSUSE:Factory/.python-kmod.new/python-kmod.changes     
2018-03-28 10:30:58.253931438 +0200
@@ -1,0 +2,5 @@
+Thu Mar 22 13:21:16 UTC 2018 - [email protected]
+
+- Re-enable python3 build (bsc#1082208).
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-kmod.spec ++++++
--- /var/tmp/diff_new_pack.yZXXLa/_old  2018-03-28 10:31:00.013868144 +0200
+++ /var/tmp/diff_new_pack.yZXXLa/_new  2018-03-28 10:31:00.049866849 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-kmod
 #
-# Copyright (c) 2016 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,27 +16,26 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-kmod
 Version:        0.9.1
 Release:        0
 Summary:        Python module to work with kernel modules
-License:        LGPL-2.1+
+License:        LGPL-2.1-or-later
 Group:          Development/Languages/Python
 Url:            https://github.com/agrover/python-kmod
 Source:         
https://pypi.python.org/packages/source/k/kmod/kmod-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE fix-build.patch
-%if 0%{?suse_version} > 1320
 Patch0:         fix-build.patch
-%else
-Patch0:         fix-build-kmod-17.patch
-%endif
+Patch1:         fix-build-kmod-17.patch
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  kmod
 BuildRequires:  libkmod-devel
-BuildRequires:  python
-BuildRequires:  python-devel
-BuildRequires:  python-Cython
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%python_subpackages
 
 %description
 Python bindings for kmod/libkmod
@@ -54,19 +53,23 @@
 
 %prep
 %setup -q -n kmod-%{version}
+%if 0%{?suse_version} > 1320
 %patch0 -p1
+%else
+%patch1 -p1
+%endif
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %dir %{python_sitearch}/kmod/
 %{python_sitearch}/kmod/*
 %{python_sitearch}/kmod*.egg-info
-%doc COPYING.LESSER README
+%license COPYING.LESSER README
 
 %changelog


Reply via email to