80173a9
# The tests fail in mock
80173a9
%bcond_with tests
80173a9
80173a9
# Created by pyp2rpm-3.2.2
80173a9
%global pypi_name ethtool
80173a9
80173a9
Name:           python-%{pypi_name}
4d78a2d
Version:        0.15
b17e184
Release:        7%{?dist}
80173a9
Summary:        Python module to interface with %{pypi_name}
80173a9
80173a9
License:        GPLv2
80173a9
URL:            https://github.com/fedora-python/%{name}
16a0be9
Source0:        %{pypi_source}
80173a9
34a4a6c
BuildRequires:  gcc
34a4a6c
80173a9
BuildRequires:  python3-devel
80173a9
BuildRequires:  python3-setuptools
80173a9
80173a9
BuildRequires:  libnl3-devel
80173a9
BuildRequires:  asciidoc
b28068d
f4a9b7f
%description
f4a9b7f
Python bindings for the ethtool kernel interface, that allows querying and
David Sommerseth cdab08c
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
f4a9b7f
PCI locations.
f4a9b7f
80173a9
%package -n     python3-%{pypi_name}
80173a9
Summary:        %{summary}
80173a9
%{?python_provide:%python_provide python3-%{pypi_name}}
80173a9
80173a9
%description -n python3-%{pypi_name}
80173a9
Python 3 bindings for the ethtool kernel interface, that allows querying and
80173a9
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
80173a9
PCI locations.
80173a9
80173a9
f4a9b7f
%prep
80173a9
%autosetup -n %{pypi_name}-%{version}
80173a9
# Remove bundled egg-info
80173a9
rm -rf %{pypi_name}.egg-info
80173a9
f4a9b7f
f4a9b7f
%build
80173a9
%py3_build
80173a9
David Sommerseth 1e3ca7f
a2x -d manpage -f manpage man/pethtool.8.asciidoc
David Sommerseth 1e3ca7f
a2x -d manpage -f manpage man/pifconfig.8.asciidoc
f4a9b7f
f4a9b7f
%install
80173a9
%py3_install
80173a9
mkdir -p %{buildroot}%{_sbindir}
80173a9
mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig
80173a9
mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool
80173a9
80173a9
mkdir -p %{buildroot}%{_mandir}/man8/
a635229
cp -p man/*.8 %{buildroot}%{_mandir}/man8/
f4a9b7f
f4a9b7f
80173a9
%if %{with tests}
80173a9
%check
80173a9
export PYTHONPATH=%{buildroot}%{python3_sitearch}
80173a9
%{__python3} tests/parse_ifconfig.py -v
80173a9
%{__python3}  -m unittest discover -v
80173a9
%endif
80173a9
80173a9
80173a9
%files -n python3-%{pypi_name}
80173a9
%doc README.rst CHANGES.rst
80173a9
%license COPYING
f4a9b7f
%{_sbindir}/pifconfig
80173a9
%{_sbindir}/pethtool
David Sommerseth 1e3ca7f
%doc %{_mandir}/man8/*
80173a9
%{python3_sitearch}/%{pypi_name}.cpython-%{python3_version_nodots}*.so
16a0be9
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
f4a9b7f
f4a9b7f
%changelog
b17e184
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-7
b17e184
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b17e184
e332a11
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.15-6
e332a11
- Rebuilt for Python 3.12
e332a11
0c4b5f4
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-5
0c4b5f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
0c4b5f4
2be4a4c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-4
2be4a4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2be4a4c
ca78815
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.15-3
ca78815
- Rebuilt for Python 3.11
ca78815
7736a07
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-2
7736a07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7736a07
4d78a2d
* Mon Aug 02 2021 Lumír Balhar <lbalhar@redhat.com> - 0.15-1
4d78a2d
- Update to 0.15
4d78a2d
Resolves: rhbz#1976135
4d78a2d
ccd8732
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-11
ccd8732
- Second attempt - Rebuilt for
ccd8732
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ccd8732
2c81fca
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.14-10
2c81fca
- Rebuilt for Python 3.10
2c81fca
614267e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-9
614267e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
614267e
63b78d4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-8
63b78d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
63b78d4
612dc3a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14-7
612dc3a
- Rebuilt for Python 3.9
612dc3a
b7533b9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-6
b7533b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b7533b9
16a0be9
* Tue Sep 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-5
16a0be9
- Drop python2-ethtool
16a0be9
0b11758
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14-4
0b11758
- Rebuilt for Python 3.8
0b11758
4bfd61c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
4bfd61c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4bfd61c
6422511
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
6422511
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6422511
a635229
* Thu Sep 13 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14-1
a635229
- Update to 0.14
a635229
0825fde
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-6
0825fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0825fde
f466c54
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13-5
f466c54
- Rebuilt for Python 3.7
f466c54
4c910d9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
4c910d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c910d9
ca09c8b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
ca09c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ca09c8b
34aac09
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
34aac09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
34aac09
80173a9
* Tue Jun 13 2017 Miro Hrončok <mhroncok@redhat.com> - 0.13-1
80173a9
- Updated to 0.13
80173a9
- Added python3 and python2 subpackages
80173a9
- Add --with tests
80173a9
- Modernize spec
80173a9
- Remove merged patch
80173a9
- Update upstream URL
80173a9
0941d2a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-8
0941d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0941d2a
02e7093
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-7
02e7093
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
02e7093
7181cea
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
7181cea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7181cea
b28068d
* Mon Jun 22 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.11-5
b28068d
- Fix compile on F23
b28068d
78a69f0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
78a69f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
78a69f0
03ed3c8
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
03ed3c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
03ed3c8
3a04a35
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
3a04a35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3a04a35
David Sommerseth 5a45196
* Thu May 8 2014 David Sommerseth <davids@redhat.com> - 0.11-1
David Sommerseth 5a45196
- Updated to the lastest python-ethtool-0.11 release, which
David Sommerseth 5a45196
  incorporates all these additional patches and improves
David Sommerseth 5a45196
  libnl3 connection error checking.
David Sommerseth 5a45196
David Sommerseth 5a45196
* Mon Apr 7 2014 David Sommerseth <davids@redhat.com> - 0.10-6
David Sommerseth 5a45196
- Removed the never close netlink patch
David Sommerseth 5a45196
- Added a patch which will ensure it will open a valid socket in open_netlink()
David Sommerseth 5a45196
David Sommerseth 5a45196
* Wed Apr 2 2014 David Sommerseth <davids@redhat.com> - 0.10-5
David Sommerseth 5a45196
- Update patch 8 - to also never close the netlink socket
David Sommerseth 5a45196
David Sommerseth 5a45196
* Wed Apr 2 2014 David Sommerseth <davids@redhat.com> - 0.10-4
David Sommerseth 5a45196
- Added patch 8 - to see of FD_CLOEXEC impacts vdsm
David Sommerseth 5a45196
David Sommerseth eb9a146
* Tue Apr 1 2014 David Sommerseth <davids@redhat.com> - 0.10-3
David Sommerseth eb9a146
- Added patch 6 and 7, to improve error handling.  Will be removed when released upstream
David Sommerseth eb9a146
David Sommerseth eb9a146
* Thu Mar 20 2014 David Sommerseth <davids@redhat.com> - 0.10-2
David Sommerseth eb9a146
- Added patch 1, 2, 4 and 5; they have not appeared in an upstream release yet
David Sommerseth eb9a146
David Sommerseth 5c055d3
* Thu Jan 09 2014 David Sommerseth <davids@redhat.com> - 0.10-1
David Sommerseth b37749f
- Updated to v0.10
David Sommerseth b37749f
David Sommerseth 747d9fc
* Wed Dec 11 2013 David Sommerseth <davids@redhat.com> - 0.9-2
David Sommerseth 747d9fc
- Forced rebuild with new tarball. Had pushed up old version.
David Sommerseth 747d9fc
David Sommerseth 9df921a
* Tue Dec 10 2013 David Sommerseth <davids@redhat.com> - 0.9-1
David Sommerseth 9df921a
- Rebased against upstream 0.9
David Sommerseth 9df921a
0877400
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
0877400
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0877400
adfa3ee
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 0.8-1
adfa3ee
- 0.8
adfa3ee
1b737ff
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
1b737ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1b737ff
cb585c4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
cb585c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cb585c4
9555be5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
9555be5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9555be5
David Sommerseth 1e3ca7f
* Wed Apr 13 2011 David Sommerseth <davids@redhat.com> - 0.7-2
David Sommerseth 1e3ca7f
- Fixed missing man page packaging
David Sommerseth 1e3ca7f
David Sommerseth 3f347fe
* Mon Apr 11 2011 David Sommerseth <davids@redhat.com> - 0.7-1
David Sommerseth 3f347fe
- Fixed several memory leaks (commit aa2c20e697af, abc7f912f66d)
David Sommerseth 3f347fe
- Improved error checking towards NULL values(commit 4e928d62a8e3)
David Sommerseth 3f347fe
- Fixed typo in pethtool --help (commit 710766dc722)
David Sommerseth 3f347fe
- Only open a NETLINK connection when needed (commit 508ffffbb3c)
David Sommerseth 3f347fe
- Added man page for pifconfig and pethtool (commit 9f0d17aa532, rhbz#638475)
David Sommerseth 3f347fe
- Force NETLINK socket to close on fork() using FD_CLOEXEC (commit 1680cbeb40e)
David Sommerseth 3f347fe
d4965c0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-2
d4965c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d4965c0
David Sommerseth 1cab7d7
* Wed Jan 19 2011 David Sommerseth <dazo@users.sourceforge.net> - 0.6-1
David Sommerseth 1cab7d7
- Don't segfault if we don't receive any address from rtnl_link_get_addr()
David Sommerseth 1cab7d7
- Remove errornous file from MANIFEST
David Sommerseth 1cab7d7
- Added ethtool.version string constant
David Sommerseth 1cab7d7
- Avoid duplicating IPv6 address information
David Sommerseth 1cab7d7
- import sys module in setup.py (Miroslav Suchy)
David Sommerseth 1cab7d7
David Sommerseth 91fc93d
* Mon Aug  9 2010 David Sommerseth <davids@redhat.com> - 0.5-1
David Sommerseth 91fc93d
- Fixed double free issue (commit c52ed2cbdc5b851ebc7b)
David Sommerseth 91fc93d
David Sommerseth cdab08c
* Wed Apr 28 2010 David Sommerseth <davids@redhat.com> - 0.4-1
David Sommerseth cdab08c
- David Sommerseth is now taking over the maintenance of python-ethtool
David Sommerseth cdab08c
- New URLs for upstream source code
David Sommerseth cdab08c
- Added new API: ethtool.get_interfaces_info() - returns list of etherinfo objects
David Sommerseth cdab08c
- Added support retrieving for IPv6 address, using etherinfo::get_ipv6_addresses()
f0b9954
f4a9b7f
* Fri Sep  5 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-2
f4a9b7f
- Rewrote build and install sections as part of the fedora review process
f4a9b7f
  BZ #459549
f4a9b7f
f4a9b7f
* Tue Aug 26 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
f4a9b7f
- Add get_flags method from the first python-ethtool contributor, yay
f4a9b7f
- Add pifconfig command, that mimics the ifconfig tool using the
f4a9b7f
  bindings available
f4a9b7f
f4a9b7f
* Wed Aug 20 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.2-1
f4a9b7f
- Expand description and summary fields, as part of the fedora
f4a9b7f
  review process.
f4a9b7f
f4a9b7f
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
f4a9b7f
- add dist to the release tag
f4a9b7f
f4a9b7f
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
f4a9b7f
- First build into MRG repo
f4a9b7f
f4a9b7f
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
f4a9b7f
- Get ethtool code from rhpl 0.212