From ee3c789f16d87583c286a295f9fd4cb4eb58ec34 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2018 04:50:56 +0000 Subject: import python-ethtool-0.8-7.el7 --- diff --git a/.gitignore b/.gitignore index 5b52590..f4d510d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/python-ethtool-0.8.tar.bz2 +SOURCES/v0.8.tar.gz diff --git a/.python-ethtool.metadata b/.python-ethtool.metadata index fee9cd5..6b0b7b4 100644 --- a/.python-ethtool.metadata +++ b/.python-ethtool.metadata @@ -1 +1 @@ -d603302f55a4e305685b01e1a754f2cfead835c7 SOURCES/python-ethtool-0.8.tar.bz2 +c2edd0be17dc23c3b7d25a4cc498ba36f5d51e18 SOURCES/v0.8.tar.gz diff --git a/SOURCES/fix-long-interface-names.patch b/SOURCES/fix-long-interface-names.patch new file mode 100644 index 0000000..22d4c3d --- /dev/null +++ b/SOURCES/fix-long-interface-names.patch @@ -0,0 +1,13 @@ +diff --git a/pifconfig.py b/pifconfig.py +index 5557407..dbf9b2b 100755 +--- a/pifconfig.py ++++ b/pifconfig.py +@@ -61,7 +61,7 @@ def bits2netmask(bits): + def show_config(device): + info = ethtool.get_interfaces_info(device)[0] + flags = ethtool.get_flags(device) +- print '%-9.9s' % device, ++ print '%s' % device, + if not (flags & ethtool.IFF_LOOPBACK): + print "HWaddr %s" % ethtool.get_hwaddr(device) + else: diff --git a/SPECS/python-ethtool.spec b/SPECS/python-ethtool.spec index b17391c..eeb5230 100644 --- a/SPECS/python-ethtool.spec +++ b/SPECS/python-ethtool.spec @@ -4,13 +4,18 @@ Summary: Ethernet settings python bindings Name: python-ethtool Version: 0.8 -Release: 5%{?dist} -URL: http://git.fedorahosted.org/cgit/python-ethtool.git -Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2 +Release: 7%{?dist} +URL: https://github.com/fedora-python/%{name} +Source: https://github.com/fedora-python/%{name}/archive/v%{version}.tar.gz Patch0: python-ethtool-0.6-make-pifconfig-output-all-ipv4-addresses-for-interface.patch Patch1: python-ethtool-0.6-return-ipv6-only-interface-names.patch # Properly check libnl return codes and don't fall with segfault Patch2: python-ethtool-0.8-check-libnl-return-codes.patch +# Fix display of long network interface names +# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1330432 +# Fixed upstream: https://github.com/fedora-python/python-ethtool/pull/31/files +Patch3: fix-long-interface-names.patch + License: GPLv2 Group: System Environment/Libraries BuildRequires: python-devel libnl-devel asciidoc @@ -29,6 +34,7 @@ PCI locations. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{__python} setup.py build @@ -59,6 +65,14 @@ rm -rf %{buildroot} %endif %changelog +* Tue Apr 17 2018 Charalampos Stratakis - 0.8-7 +- Fix the URL's to point to the proper upstream repositories +Resolves: rhbz#1502393 + +* Mon Apr 16 2018 Charalampos Stratakis - 0.8-6 +- Fix diplay of long network interface names +Resolves: rhbz#1330432 + * Fri Jan 24 2014 Daniel Mach - 0.8-5 - Mass rebuild 2014-01-24