|
|
1c5055 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
1c5055 |
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
1c5055 |
|
|
|
1c5055 |
Summary: Ethernet settings python bindings
|
|
|
1c5055 |
Name: python-ethtool
|
|
|
1c5055 |
Version: 0.8
|
|
|
ee3c78 |
Release: 7%{?dist}
|
|
|
ee3c78 |
URL: https://github.com/fedora-python/%{name}
|
|
|
ee3c78 |
Source: https://github.com/fedora-python/%{name}/archive/v%{version}.tar.gz
|
|
|
1c5055 |
Patch0: python-ethtool-0.6-make-pifconfig-output-all-ipv4-addresses-for-interface.patch
|
|
|
1c5055 |
Patch1: python-ethtool-0.6-return-ipv6-only-interface-names.patch
|
|
|
69c2f9 |
# Properly check libnl return codes and don't fall with segfault
|
|
|
69c2f9 |
Patch2: python-ethtool-0.8-check-libnl-return-codes.patch
|
|
|
ee3c78 |
# Fix display of long network interface names
|
|
|
ee3c78 |
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1330432
|
|
|
ee3c78 |
# Fixed upstream: https://github.com/fedora-python/python-ethtool/pull/31/files
|
|
|
ee3c78 |
Patch3: fix-long-interface-names.patch
|
|
|
ee3c78 |
|
|
|
1c5055 |
License: GPLv2
|
|
|
1c5055 |
Group: System Environment/Libraries
|
|
|
1c5055 |
BuildRequires: python-devel libnl-devel asciidoc
|
|
|
1c5055 |
%if 0%{?rhel} && 0%{?rhel} < 5
|
|
|
1c5055 |
BuildRequires: pkgconfig gcc
|
|
|
1c5055 |
%endif
|
|
|
1c5055 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
1c5055 |
|
|
|
1c5055 |
%description
|
|
|
1c5055 |
Python bindings for the ethtool kernel interface, that allows querying and
|
|
|
1c5055 |
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
|
|
|
1c5055 |
PCI locations.
|
|
|
1c5055 |
|
|
|
1c5055 |
%prep
|
|
|
1c5055 |
%setup -q
|
|
|
1c5055 |
%patch0 -p1
|
|
|
1c5055 |
%patch1 -p1
|
|
|
69c2f9 |
%patch2 -p1
|
|
|
ee3c78 |
%patch3 -p1
|
|
|
1c5055 |
|
|
|
1c5055 |
%build
|
|
|
1c5055 |
%{__python} setup.py build
|
|
|
1c5055 |
a2x -d manpage -f manpage man/pethtool.8.asciidoc
|
|
|
1c5055 |
a2x -d manpage -f manpage man/pifconfig.8.asciidoc
|
|
|
1c5055 |
|
|
|
1c5055 |
%install
|
|
|
1c5055 |
rm -rf %{buildroot}
|
|
|
1c5055 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
1c5055 |
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
|
|
|
1c5055 |
cp -p pethtool.py %{buildroot}%{_sbindir}/pethtool
|
|
|
1c5055 |
cp -p pifconfig.py %{buildroot}%{_sbindir}/pifconfig
|
|
|
1c5055 |
%{__gzip} -c man/pethtool.8 > %{buildroot}%{_mandir}/man8/pethtool.8.gz
|
|
|
1c5055 |
%{__gzip} -c man/pifconfig.8 > %{buildroot}%{_mandir}/man8/pifconfig.8.gz
|
|
|
1c5055 |
|
|
|
1c5055 |
%clean
|
|
|
1c5055 |
rm -rf %{buildroot}
|
|
|
1c5055 |
|
|
|
1c5055 |
%files
|
|
|
1c5055 |
%defattr(-,root,root)
|
|
|
1c5055 |
%doc COPYING
|
|
|
1c5055 |
%{_sbindir}/pethtool
|
|
|
1c5055 |
%{_sbindir}/pifconfig
|
|
|
1c5055 |
%doc %{_mandir}/man8/*
|
|
|
1c5055 |
%{python_sitearch}/ethtool.so
|
|
|
1c5055 |
%if "%{python_ver}" >= "2.5"
|
|
|
1c5055 |
%{python_sitearch}/*.egg-info
|
|
|
1c5055 |
%endif
|
|
|
1c5055 |
|
|
|
1c5055 |
%changelog
|
|
|
ee3c78 |
* Tue Apr 17 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8-7
|
|
|
ee3c78 |
- Fix the URL's to point to the proper upstream repositories
|
|
|
ee3c78 |
Resolves: rhbz#1502393
|
|
|
ee3c78 |
|
|
|
ee3c78 |
* Mon Apr 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8-6
|
|
|
ee3c78 |
- Fix diplay of long network interface names
|
|
|
ee3c78 |
Resolves: rhbz#1330432
|
|
|
ee3c78 |
|
|
|
69c2f9 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.8-5
|
|
|
69c2f9 |
- Mass rebuild 2014-01-24
|
|
|
69c2f9 |
|
|
|
69c2f9 |
* Mon Jan 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8-4
|
|
|
69c2f9 |
- Properly check libnl return codes, don't segfault.
|
|
|
69c2f9 |
Resolves: rhbz#1051392
|
|
|
69c2f9 |
|
|
|
69c2f9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.8-3
|
|
|
69c2f9 |
- Mass rebuild 2013-12-27
|
|
|
69c2f9 |
|
|
|
1c5055 |
* Thu Nov 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8-2
|
|
|
1c5055 |
- Fixed reporting of more IPv4 addresses per interface
|
|
|
1c5055 |
Resolves: rhbz#1027685
|
|
|
1c5055 |
- Make get_active_devices() return IPv6-only devices, too
|
|
|
1c5055 |
Resolves: rhbz#1027678
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 0.8-1
|
|
|
1c5055 |
- 0.8
|
|
|
1c5055 |
|
|
|
1c5055 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
|
|
|
1c5055 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
1c5055 |
|
|
|
1c5055 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
|
|
|
1c5055 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1c5055 |
|
|
|
1c5055 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
|
|
|
1c5055 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
1c5055 |
|
|
|
1c5055 |
* Wed Apr 13 2011 David Sommerseth <davids@redhat.com> - 0.7-2
|
|
|
1c5055 |
- Fixed missing man page packaging
|
|
|
1c5055 |
|
|
|
1c5055 |
* Mon Apr 11 2011 David Sommerseth <davids@redhat.com> - 0.7-1
|
|
|
1c5055 |
- Fixed several memory leaks (commit aa2c20e697af, abc7f912f66d)
|
|
|
1c5055 |
- Improved error checking towards NULL values(commit 4e928d62a8e3)
|
|
|
1c5055 |
- Fixed typo in pethtool --help (commit 710766dc722)
|
|
|
1c5055 |
- Only open a NETLINK connection when needed (commit 508ffffbb3c)
|
|
|
1c5055 |
- Added man page for pifconfig and pethtool (commit 9f0d17aa532, rhbz#638475)
|
|
|
1c5055 |
- Force NETLINK socket to close on fork() using FD_CLOEXEC (commit 1680cbeb40e)
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
|
|
|
1c5055 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1c5055 |
|
|
|
1c5055 |
* Wed Jan 19 2011 David Sommerseth <dazo@users.sourceforge.net> - 0.6-1
|
|
|
1c5055 |
- Don't segfault if we don't receive any address from rtnl_link_get_addr()
|
|
|
1c5055 |
- Remove errornous file from MANIFEST
|
|
|
1c5055 |
- Added ethtool.version string constant
|
|
|
1c5055 |
- Avoid duplicating IPv6 address information
|
|
|
1c5055 |
- import sys module in setup.py (Miroslav Suchy)
|
|
|
1c5055 |
|
|
|
1c5055 |
* Mon Aug 9 2010 David Sommerseth <davids@redhat.com> - 0.5-1
|
|
|
1c5055 |
- Fixed double free issue (commit c52ed2cbdc5b851ebc7b)
|
|
|
1c5055 |
|
|
|
1c5055 |
* Wed Apr 28 2010 David Sommerseth <davids@redhat.com> - 0.4-1
|
|
|
1c5055 |
- David Sommerseth is now taking over the maintenance of python-ethtool
|
|
|
1c5055 |
- New URLs for upstream source code
|
|
|
1c5055 |
- Added new API: ethtool.get_interfaces_info() - returns list of etherinfo objects
|
|
|
1c5055 |
- Added support retrieving for IPv6 address, using etherinfo::get_ipv6_addresses()
|
|
|
1c5055 |
|
|
|
1c5055 |
* Fri Sep 5 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-2
|
|
|
1c5055 |
- Rewrote build and install sections as part of the fedora review process
|
|
|
1c5055 |
BZ #459549
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Aug 26 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
|
|
|
1c5055 |
- Add get_flags method from the first python-ethtool contributor, yay
|
|
|
1c5055 |
- Add pifconfig command, that mimics the ifconfig tool using the
|
|
|
1c5055 |
bindings available
|
|
|
1c5055 |
|
|
|
1c5055 |
* Wed Aug 20 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
|
|
|
1c5055 |
- Expand description and summary fields, as part of the fedora
|
|
|
1c5055 |
review process.
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
|
|
|
1c5055 |
- add dist to the release tag
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
|
|
|
1c5055 |
- First build into MRG repo
|
|
|
1c5055 |
|
|
|
1c5055 |
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
|
|
|
1c5055 |
- Get ethtool code from rhpl 0.212
|