Hello community,

here is the log from the commit of package python-ethtool for openSUSE:Factory 
checked in at 2017-11-03 16:25:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ethtool (Old)
 and      /work/SRC/openSUSE:Factory/.python-ethtool.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ethtool"

Fri Nov  3 16:25:34 2017 rev:4 rq:538142 version:0.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ethtool/python-ethtool.changes    
2017-10-18 10:54:21.905942975 +0200
+++ /work/SRC/openSUSE:Factory/.python-ethtool.new/python-ethtool.changes       
2017-11-03 16:26:26.120749097 +0100
@@ -1,0 +2,10 @@
+Wed Nov  1 15:20:02 UTC 2017 - [email protected]
+
+- provide tools for python3 only again
+
+-------------------------------------------------------------------
+Tue Oct 17 16:20:23 CEST 2017 - [email protected]
+
+- use update_alternatives for different python versions
+
+-------------------------------------------------------------------
@@ -4,0 +15,7 @@
+
+-------------------------------------------------------------------
+Tue Oct 17 10:46:28 CEST 2017 - [email protected]
+
+- update to version 0.13 for python3 support
+- fix build for python2 and python3
+- drop obsolete patch python-ethtool.patch

Old:
----
  python-ethtool-0.11.tar.bz2
  python-ethtool.patch

New:
----
  ethtool-0.13.tar.gz

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

Other differences:
------------------
++++++ python-ethtool.spec ++++++
--- /var/tmp/diff_new_pack.c9gCqR/_old  2017-11-03 16:26:26.704727842 +0100
+++ /var/tmp/diff_new_pack.c9gCqR/_new  2017-11-03 16:26:26.704727842 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package python-ethtool
+# spec file for package python
 #
 # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
@@ -16,19 +16,24 @@
 #
 
 
-Name:           python-ethtool
-Version:        0.11
+%global pypi_name ethtool
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+Name:           python-%{pypi_name}
+Version:        0.13
 Release:        0
 Summary:        Ethernet settings Python bindings
 License:        GPL-2.0
 Group:          Development/Languages/Python
-Url:            https://fedorahosted.org/python-ethtool/
-Source:         
https://fedorahosted.org/releases/p/y/python-ethtool/%{name}-%{version}.tar.bz2
-Patch0:         python-ethtool.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Url:            https://github.com/fedora-python/%{name}
+Source:         
https://files.pythonhosted.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  libnl3-devel
-BuildRequires:  pkg-config
-BuildRequires:  python-devel
+BuildRequires:  pkgconfig
+BuildRequires:  python-rpm-macros
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%python_subpackages
 
 %description
 Python bindings for the ethtool kernel interface that allows querying and
@@ -36,26 +41,26 @@
 PCI locations.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{pypi_name}-%{version}
 
 %build
+export LANG=C.UTF-8
 export CFLAGS="%{optflags}"
-python setup.py build
+%python_build
 
 %install
-python setup.py install --root=%{buildroot} --prefix=%{_prefix}
+export LANG=C.UTF-8
+%python_install
 
 mkdir -p %{buildroot}%{_sbindir}  %{buildroot}%{_mandir}/man8
-cp -p pethtool.py %{buildroot}%{_sbindir}/pethtool
-cp -p pifconfig.py %{buildroot}%{_sbindir}/pifconfig
+mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig
+mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
-%doc COPYING
-%{_sbindir}/pethtool
-%{_sbindir}/pifconfig
-%{python_sitearch}/ethtool.so
-%{python_sitearch}/*.egg-info
+%doc README.rst CHANGES.rst COPYING
+%{python_sitearch}/
+%python3_only %{_sbindir}/pethtool
+%python3_only %{_sbindir}/pifconfig
 
 %changelog


Reply via email to