commit python-kmod for openSUSE:Factory

2020-08-13 Thread root
Hello community,

here is the log from the commit of package python-kmod for openSUSE:Factory 
checked in at 2020-08-13 10:18:20

Comparing /work/SRC/openSUSE:Factory/python-kmod (Old)
 and  /work/SRC/openSUSE:Factory/.python-kmod.new.3399 (New)


Package is "python-kmod"

Thu Aug 13 10:18:20 2020 rev:3 rq:826097 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-kmod/python-kmod.changes  2018-03-28 
10:30:58.253931438 +0200
+++ /work/SRC/openSUSE:Factory/.python-kmod.new.3399/python-kmod.changes
2020-08-13 10:24:00.650901290 +0200
@@ -1,0 +2,5 @@
+Wed Aug 12 17:28:31 UTC 2020 - Matej Cepl 
+
+- Run SPEC file through spec-cleaner
+
+---



Other differences:
--
++ python-kmod.spec ++
--- /var/tmp/diff_new_pack.yxKynm/_old  2020-08-13 10:24:04.462902449 +0200
+++ /var/tmp/diff_new_pack.yxKynm/_new  2020-08-13 10:24:04.462902449 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-kmod
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -23,8 +23,8 @@
 Summary:Python module to work with kernel modules
 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
+URL:https://github.com/agrover/python-kmod
+Source: 
https://files.pythonhosted.org/packages/source/k/kmod/kmod-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE fix-build.patch
 Patch0: fix-build.patch
 Patch1: fix-build-kmod-17.patch
@@ -34,7 +34,6 @@
 BuildRequires:  kmod
 BuildRequires:  libkmod-devel
 BuildRequires:  python-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %python_subpackages
 
 %description
@@ -66,7 +65,6 @@
 %python_install
 
 %files %{python_files}
-%defattr(-,root,root)
 %dir %{python_sitearch}/kmod/
 %{python_sitearch}/kmod/*
 %{python_sitearch}/kmod*.egg-info




commit python-kmod for openSUSE:Factory

2018-03-28 Thread root
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 - jthumsh...@suse.com
+
+- 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