diff --git a/.gitignore b/.gitignore index 7480abd..2fd1add 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/netaddr-0.8.0.tar.gz +SOURCES/netaddr-0.10.1.tar.gz diff --git a/.python-netaddr.metadata b/.python-netaddr.metadata index d511f08..2e2182f 100644 --- a/.python-netaddr.metadata +++ b/.python-netaddr.metadata @@ -1 +1 @@ -16f10a1bfaf95052f368b3786188f9fbdda108c3 SOURCES/netaddr-0.8.0.tar.gz +bbfa2b78bb3c5b9558f8efb7bc3f1f57ac5fd644 SOURCES/netaddr-0.10.1.tar.gz diff --git a/SOURCES/THANKS b/SOURCES/THANKS new file mode 100644 index 0000000..0910cee --- /dev/null +++ b/SOURCES/THANKS @@ -0,0 +1,49 @@ +netaddr is written and maintained by David P. D. Moss + +It is released under the BSD License. + +Many people further contributed to netaddr by reporting problems, suggesting +various improvements or submitting actual code. Here is a list of these people +(in alphabetical order). Help me keep it complete and free of errors. + + Vincent Bernat + + Sebastien Douche + + John Eckersberg + + Yi-Jheng Lin + + Clay McClure + + Duncan McGreggor + + Stefan Nordhausen + + Brian F. Peters + + James William Pye + + Chaitan Rogers + + Victor Stinner + + Andrew Stromnov + +Thanks to everyone on the netaddr mailing list, those who raised bug reports +and to all those who have, directly and indirectly, guided and influenced the +development and distribution of this library. + +Thanks also for the use of the following code contributions :- + +a) Python Cookbook recipe 18.11: "Formatting Integers as Binary Strings" + + Python Cookbook 2d ed. (O'Reilly Media 2005) ISBN 0596-00797-3 + Alex Martelli, Anna Martelli Ravenscroft and David Ascher + +b) ASPN Cookbook Recipe 466286: "Integer set type" by Heiko Wundram + + http://code.activestate.com/recipes/466286/ + +And last but not least, thanks to Guido van Rossum for his encouraging words +and for giving us all Python. diff --git a/SPECS/python-netaddr.spec b/SPECS/python-netaddr.spec index 958047c..e212b0b 100644 --- a/SPECS/python-netaddr.spec +++ b/SPECS/python-netaddr.spec @@ -1,28 +1,20 @@ -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%endif - -%if 0%{?fedora} < 32 && 0%{?rhel} < 9 -%global with_python2 1 -%endif +%bcond docs %{undefined rhel} Name: python-netaddr -Version: 0.8.0 -Release: 5%{?dist} +Version: 0.10.1 +Release: 3%{?dist} Summary: A pure Python network address representation and manipulation library License: BSD URL: http://github.com/drkjam/netaddr Source0: https://pypi.python.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz +# Remove once https://github.com/netaddr/netaddr/pull/345 +Source1: THANKS BuildArch: noarch -# sphinx is python3-only f31 onward -# https://fedoraproject.org/wiki/Changes/Sphinx2 +%if %{with docs} BuildRequires: python3-sphinx -%if 0%{?with_python2} -BuildRequires: python2-pytest -BuildRequires: python2-devel -BuildRequires: python2-setuptools +BuildRequires: python3-furo %endif %global desc A network address manipulation library for Python\ @@ -53,29 +45,17 @@ Layer 2 addresses\ %description %_description -%if 0%{?with_python2} -%package -n python2-netaddr -Summary: %summary -%{?python_provide:%python_provide python2-netaddr} - -%description -n python2-netaddr %_description -%endif - -%if 0%{?with_python3} %package -n python3-netaddr Summary: A pure Python network address representation and manipulation library BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-sphinx BuildRequires: python3-pytest -%{?python_provide:%python_provide python3-netaddr} %description -n python3-netaddr %{desc} -%endif %prep -%setup -q -n netaddr-%{version} +%autosetup -n netaddr-%{version} -p1 # Make rpmlint happy, rip out python shebang lines from most python # modules @@ -86,61 +66,47 @@ find netaddr -name "*.py" | \ chmod 0644 README.rst AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO %build -%if 0%{?with_python2} -%py2_build -%endif - -%if 0%{?with_python3} %py3_build -%endif #docs +%if %{with docs} pushd docs PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source html -rm -f html/.buildinfo -%if 0%{?with_python3} -PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html rm -f python3/html/.buildinfo -%endif popd +%endif %install -%if 0%{?with_python2} -%py2_install -%endif - -%if 0%{?with_python3} %py3_install -%endif %check -%if 0%{?with_python2} -py.test-%{python2_version} -%endif -%if 0%{?with_python3} py.test-%{python3_version} -%endif -%if 0%{?with_python2} -%files -n python2-netaddr -%license COPYRIGHT LICENSE -%doc AUTHORS CHANGELOG -%doc README.rst docs/html -%{python2_sitelib}/* -%endif - -%if 0%{?with_python3} %files -n python3-netaddr %license COPYRIGHT -%doc AUTHORS CHANGELOG -%doc README.rst docs/python3/html -%{python3_sitelib}/* -%{_bindir}/netaddr +%doc AUTHORS CHANGELOG README.rst +%if %{with docs} +%doc docs/python3/html %endif +%{python3_sitelib}/* + + %{_bindir}/netaddr %changelog +* Wed Nov 13 2024 Rafael Jeffman - 0.10.1-3 +- Bump version to rebuild due to brew issues + Resolves: RHEL-25506 + +* Tue Nov 12 2024 Rafael Jeffman - 0.10.1-2 +- Remove subpackage python3-netaddr-shell + Resolves: RHEL-25506 + +* Mon Nov 11 2024 Rafael Jeffman - 0.10.1-1 +- Rebase to version 0.10.1 + Resolves: RHEL-25506 + * Tue Aug 10 2021 Mohan Boddu - 0.8.0-5 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688