diff --git a/ethtool-0.13.tar.gz b/ethtool-0.13.tar.gz deleted file mode 100644 index c688b0d..0000000 --- a/ethtool-0.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:31234eed156f1fcbb311f56e32c9abe42de62d3766411046d362bf45eae017fe -size 44282 diff --git a/ethtool-0.14.tar.gz b/ethtool-0.14.tar.gz new file mode 100644 index 0000000..0c13c89 --- /dev/null +++ b/ethtool-0.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46565daa5c4de3ef6c5908d062a8646278086cd29c62e43e0e04e49e5e34768b +size 43204 diff --git a/python-ethtool.changes b/python-ethtool.changes index 48d4452..a673630 100644 --- a/python-ethtool.changes +++ b/python-ethtool.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Mar 1 10:55:25 UTC 2019 - Tomáš Chvátal + +- Update to 0.14: + * Declared project as bugfix only from now on + * Support Python 3.7 + * Fix important issues reported by static analysis + * Fix installation on non-UTF-8 locales on Python 3.5 and 3.6 + * Added set_gso(), get_gro() and set_gro() functions + * Added installation instructions + ------------------------------------------------------------------- Wed Nov 1 15:20:02 UTC 2017 - mc@suse.com diff --git a/python-ethtool.spec b/python-ethtool.spec index fb8f18e..8714ef6 100644 --- a/python-ethtool.spec +++ b/python-ethtool.spec @@ -1,7 +1,7 @@ # # spec file for package python # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,27 +12,28 @@ # 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/ # %global pypi_name ethtool - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{pypi_name} -Version: 0.13 +Version: 0.14 Release: 0 Summary: Ethernet settings Python bindings -License: GPL-2.0 +License: GPL-2.0-only Group: Development/Languages/Python -Url: https://github.com/fedora-python/%{name} +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: fdupes BuildRequires: libnl3-devel +# needs ifconfig for tests (to check feature parity) +BuildRequires: net-tools-deprecated BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description @@ -44,21 +45,23 @@ PCI locations. %setup -q -n %{pypi_name}-%{version} %build -export LANG=C.UTF-8 export CFLAGS="%{optflags}" %python_build %install -export LANG=C.UTF-8 %python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} -mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8 +mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v + %files %{python_files} -%defattr(-,root,root) -%doc README.rst CHANGES.rst COPYING +%license COPYING +%doc README.rst CHANGES.rst %{python_sitearch}/ %python3_only %{_sbindir}/pethtool %python3_only %{_sbindir}/pifconfig