- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ethtool?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal
2019-03-01 10:56:02 +00:00
committed by Git OBS Bridge
parent 933f47c469
commit b583cd4438
4 changed files with 29 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31234eed156f1fcbb311f56e32c9abe42de62d3766411046d362bf45eae017fe
size 44282

3
ethtool-0.14.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46565daa5c4de3ef6c5908d062a8646278086cd29c62e43e0e04e49e5e34768b
size 43204

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Mar 1 10:55:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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

View File

@@ -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