Blame SPECS/python-ethtool.spec

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