Blame SPECS/python-ethtool.spec

6cb3e9
# The tests fail in mock
6cb3e9
%bcond_with tests
6cb3e9
6cb3e9
# Created by pyp2rpm-3.2.2
6cb3e9
%global pypi_name ethtool
6cb3e9
6cb3e9
Name:           python-%{pypi_name}
6cb3e9
Version:        0.14
d19f95
Release:        5%{?dist}
6cb3e9
Summary:        Python module to interface with %{pypi_name}
6cb3e9
6cb3e9
License:        GPLv2
6cb3e9
URL:            https://github.com/fedora-python/%{name}
6cb3e9
Source0:        https://files.pythonhosted.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
6cb3e9
Patch0:         0001-Fix-issue-when-interface-has-no-IPv4-address-assigne.patch
6cb3e9
Patch1:         0002-Allow-pifconfig-script-to-show-multiple-IPv4-address.patch
6cb3e9
6cb3e9
BuildRequires:  python3-devel
6cb3e9
BuildRequires:  python3-setuptools
6cb3e9
6cb3e9
BuildRequires:  libnl3-devel
6cb3e9
BuildRequires:  asciidoc
6cb3e9
6cb3e9
%description
6cb3e9
Python bindings for the ethtool kernel interface, that allows querying and
6cb3e9
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
6cb3e9
PCI locations.
6cb3e9
6cb3e9
%package -n     python3-%{pypi_name}
6cb3e9
Summary:        %{summary}
6cb3e9
%{?python_provide:%python_provide python3-%{pypi_name}}
6cb3e9
6cb3e9
%description -n python3-%{pypi_name}
6cb3e9
Python 3 bindings for the ethtool kernel interface, that allows querying and
6cb3e9
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
6cb3e9
PCI locations.
6cb3e9
6cb3e9
6cb3e9
%prep
6cb3e9
%autosetup -p1 -n %{pypi_name}-%{version}
6cb3e9
# Remove bundled egg-info
6cb3e9
rm -rf %{pypi_name}.egg-info
6cb3e9
6cb3e9
6cb3e9
%build
6cb3e9
%py3_build
6cb3e9
6cb3e9
a2x -d manpage -f manpage man/pethtool.8.asciidoc
6cb3e9
a2x -d manpage -f manpage man/pifconfig.8.asciidoc
6cb3e9
6cb3e9
%install
6cb3e9
%py3_install
6cb3e9
mkdir -p %{buildroot}%{_sbindir}
6cb3e9
mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig
6cb3e9
mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool
6cb3e9
6cb3e9
mkdir -p %{buildroot}%{_mandir}/man8/
6cb3e9
%{__gzip} -c man/pethtool.8 > %{buildroot}%{_mandir}/man8/pethtool.8.gz
6cb3e9
%{__gzip} -c man/pifconfig.8 > %{buildroot}%{_mandir}/man8/pifconfig.8.gz
6cb3e9
6cb3e9
6cb3e9
%if %{with tests}
6cb3e9
%check
6cb3e9
export PYTHONPATH=%{buildroot}%{python3_sitearch}
6cb3e9
%{__python3} tests/parse_ifconfig.py -v
6cb3e9
%{__python3}  -m unittest discover -v
6cb3e9
%endif
6cb3e9
6cb3e9
6cb3e9
%files -n python3-%{pypi_name}
6cb3e9
%doc README.rst CHANGES.rst
6cb3e9
%license COPYING
6cb3e9
%{_sbindir}/pifconfig
6cb3e9
%{_sbindir}/pethtool
6cb3e9
%doc %{_mandir}/man8/*
6cb3e9
%{python3_sitearch}/%{pypi_name}.cpython-%{python3_version_nodots}*.so
6cb3e9
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
6cb3e9
6cb3e9
%changelog
d19f95
* Mon Feb 07 2022 John Kacur <jkacur@redhat.com> - 0.15-5
d19f95
- Add functional test to python-ethtool
d19f95
- Resolves: rhbz#2051609
d19f95
d19f95
* Thu Jan 20 2022 John Kacur <jkacur@redhat.com> - 0.14-4
d19f95
- Rebuild for rhel-8.6, no functional change
d19f95
- Resolves: rhbz#2042222
d19f95
6cb3e9
* Sat Dec 08 2018 Lumír Balhar <lbalhar@redhat.com> - 0.14-3
6cb3e9
- Backport patch from upstream/rhel7 which allows pifconfig to show
6cb3e9
  multiple IPv4 addresses for each interface
6cb3e9
- Move patches to dist-git
6cb3e9
- Resolves: rhbz#1652174
6cb3e9
6cb3e9
* Thu Nov 08 2018 Lumír Balhar <lbalhar@redhat.com> - 0.14-2
6cb3e9
- Backport upstream bugfix patch
6cb3e9
- Resolves: rhbz#1637918
6cb3e9
6cb3e9
* Mon Sep 17 2018 Lumír Balhar <lbalhar@redhat.com> - 0.14-1
6cb3e9
- New upstream version
6cb3e9
- Resolves: rhbz#1606952
6cb3e9
6cb3e9
* Tue Jun 05 2018 Petr Viktorin <pviktori@redhat.com> - 0.13-5
6cb3e9
- Remove the Python 2 version
6cb3e9
  https://bugzilla.redhat.com/show_bug.cgi?id=1567419
6cb3e9
6cb3e9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6cb3e9
6cb3e9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6cb3e9
6cb3e9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6cb3e9
6cb3e9
* Tue Jun 13 2017 Miro Hrončok <mhroncok@redhat.com> - 0.13-1
6cb3e9
- Updated to 0.13
6cb3e9
- Added python3 and python2 subpackages
6cb3e9
- Add --with tests
6cb3e9
- Modernize spec
6cb3e9
- Remove merged patch
6cb3e9
- Update upstream URL
6cb3e9
6cb3e9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-8
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6cb3e9
6cb3e9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
6cb3e9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6cb3e9
6cb3e9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6cb3e9
6cb3e9
* Mon Jun 22 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.11-5
6cb3e9
- Fix compile on F23
6cb3e9
6cb3e9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6cb3e9
6cb3e9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6cb3e9
6cb3e9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6cb3e9
6cb3e9
* Thu May 8 2014 David Sommerseth <davids@redhat.com> - 0.11-1
6cb3e9
- Updated to the lastest python-ethtool-0.11 release, which
6cb3e9
  incorporates all these additional patches and improves
6cb3e9
  libnl3 connection error checking.
6cb3e9
6cb3e9
* Mon Apr 7 2014 David Sommerseth <davids@redhat.com> - 0.10-6
6cb3e9
- Removed the never close netlink patch
6cb3e9
- Added a patch which will ensure it will open a valid socket in open_netlink()
6cb3e9
6cb3e9
* Wed Apr 2 2014 David Sommerseth <davids@redhat.com> - 0.10-5
6cb3e9
- Update patch 8 - to also never close the netlink socket
6cb3e9
6cb3e9
* Wed Apr 2 2014 David Sommerseth <davids@redhat.com> - 0.10-4
6cb3e9
- Added patch 8 - to see of FD_CLOEXEC impacts vdsm
6cb3e9
6cb3e9
* Tue Apr 1 2014 David Sommerseth <davids@redhat.com> - 0.10-3
6cb3e9
- Added patch 6 and 7, to improve error handling.  Will be removed when released upstream
6cb3e9
6cb3e9
* Thu Mar 20 2014 David Sommerseth <davids@redhat.com> - 0.10-2
6cb3e9
- Added patch 1, 2, 4 and 5; they have not appeared in an upstream release yet
6cb3e9
6cb3e9
* Thu Jan 09 2014 David Sommerseth <davids@redhat.com> - 0.10-1
6cb3e9
- Updated to v0.10
6cb3e9
6cb3e9
* Wed Dec 11 2013 David Sommerseth <davids@redhat.com> - 0.9-2
6cb3e9
- Forced rebuild with new tarball. Had pushed up old version.
6cb3e9
6cb3e9
* Tue Dec 10 2013 David Sommerseth <davids@redhat.com> - 0.9-1
6cb3e9
- Rebased against upstream 0.9
6cb3e9
6cb3e9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6cb3e9
6cb3e9
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 0.8-1
6cb3e9
- 0.8
6cb3e9
6cb3e9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6cb3e9
6cb3e9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6cb3e9
6cb3e9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6cb3e9
6cb3e9
* Wed Apr 13 2011 David Sommerseth <davids@redhat.com> - 0.7-2
6cb3e9
- Fixed missing man page packaging
6cb3e9
6cb3e9
* Mon Apr 11 2011 David Sommerseth <davids@redhat.com> - 0.7-1
6cb3e9
- Fixed several memory leaks (commit aa2c20e697af, abc7f912f66d)
6cb3e9
- Improved error checking towards NULL values(commit 4e928d62a8e3)
6cb3e9
- Fixed typo in pethtool --help (commit 710766dc722)
6cb3e9
- Only open a NETLINK connection when needed (commit 508ffffbb3c)
6cb3e9
- Added man page for pifconfig and pethtool (commit 9f0d17aa532, rhbz#638475)
6cb3e9
- Force NETLINK socket to close on fork() using FD_CLOEXEC (commit 1680cbeb40e)
6cb3e9
6cb3e9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
6cb3e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6cb3e9
6cb3e9
* Wed Jan 19 2011 David Sommerseth <dazo@users.sourceforge.net> - 0.6-1
6cb3e9
- Don't segfault if we don't receive any address from rtnl_link_get_addr()
6cb3e9
- Remove errornous file from MANIFEST
6cb3e9
- Added ethtool.version string constant
6cb3e9
- Avoid duplicating IPv6 address information
6cb3e9
- import sys module in setup.py (Miroslav Suchy)
6cb3e9
6cb3e9
* Mon Aug  9 2010 David Sommerseth <davids@redhat.com> - 0.5-1
6cb3e9
- Fixed double free issue (commit c52ed2cbdc5b851ebc7b)
6cb3e9
6cb3e9
* Wed Apr 28 2010 David Sommerseth <davids@redhat.com> - 0.4-1
6cb3e9
- David Sommerseth is now taking over the maintenance of python-ethtool
6cb3e9
- New URLs for upstream source code
6cb3e9
- Added new API: ethtool.get_interfaces_info() - returns list of etherinfo objects
6cb3e9
- Added support retrieving for IPv6 address, using etherinfo::get_ipv6_addresses()
6cb3e9
6cb3e9
* Fri Sep  5 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-2
6cb3e9
- Rewrote build and install sections as part of the fedora review process
6cb3e9
  BZ #459549
6cb3e9
6cb3e9
* Tue Aug 26 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
6cb3e9
- Add get_flags method from the first python-ethtool contributor, yay
6cb3e9
- Add pifconfig command, that mimics the ifconfig tool using the
6cb3e9
  bindings available
6cb3e9
6cb3e9
* Wed Aug 20 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
6cb3e9
- Expand description and summary fields, as part of the fedora
6cb3e9
  review process.
6cb3e9
6cb3e9
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
6cb3e9
- add dist to the release tag
6cb3e9
6cb3e9
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
6cb3e9
- First build into MRG repo
6cb3e9
6cb3e9
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
6cb3e9
- Get ethtool code from rhpl 0.212