Name: python-netaddr Version: 0.8.0 Release: 12%{?dist} Summary: A pure Python network address representation and manipulation library License: BSD-3-Clause URL: https://github.com/drkjam/netaddr Source0: https://pypi.python.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-sphinx %global desc A network address manipulation library for Python\ \ Provides support for:\ \ Layer 3 addresses\ \ * IPv4 and IPv6 addresses, subnets, masks, prefixes\ * iterating, slicing, sorting, summarizing and classifying IP networks\ * dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)\ * set based operations (unions, intersections etc) over IP addresses and\ subnets\ * parsing a large variety of different formats and notations\ * looking up IANA IP block information\ * generating DNS reverse lookups\ * supernetting and subnetting\ \ Layer 2 addresses\ \ * representation and manipulation MAC addresses and EUI-64 identifiers\ * looking up IEEE organisational information (OUI, IAB)\ * generating derived IPv6 addresses %global _description\ %{desc} %description %_description %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 %description -n python3-netaddr %{desc} %package -n python3-netaddr-shell Summary: An IPython-based shell environment for the netaddr library Requires: python3-netaddr = %{version}-%{release} Requires: python3-ipython %description -n python3-netaddr-shell An IPython-based shell environment for the netaddr library %prep %setup -q -n netaddr-%{version} # Make rpmlint happy, rip out python shebang lines from most python # modules find netaddr -name "*.py" | \ xargs sed -i -e '1 {/^#!\//d}' # Make rpmlint happy, fix permissions on documentation files chmod 0644 README.rst AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO %build %py3_build #docs pushd docs PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source html rm -f html/.buildinfo PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html rm -f python3/html/.buildinfo popd %install %py3_install %check py.test-%{python3_version} %files -n python3-netaddr %license COPYRIGHT %doc AUTHORS CHANGELOG %doc README.rst docs/python3/html %{python3_sitelib}/* %files -n python3-netaddr-shell %{_bindir}/netaddr %changelog * Thu Feb 23 2023 Orion Poplawski - 0.8.0-12 - Cleanup spec - Use SPDX License tag * Fri Jan 20 2023 Fedora Release Engineering - 0.8.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.8.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.8.0-9 - Rebuilt for Python 3.11 * Fri May 13 2022 John Eckersberg - 0.8.0-8 - Move netaddr shell into a separate subpackage (rhbz#2076031) * Tue Apr 12 2022 John Eckersberg - 0.8.0-7 - Add Recommends on python3-ipython (rhbz#2074313) * Fri Jan 21 2022 Fedora Release Engineering - 0.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.8.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 3 2020 John Eckersberg - 0.8.0-1 - New upstream release 0.8.0 (rhbz#1853684) * Fri Jun 19 2020 John Eckersberg - 0.7.20-1 - New upstream release 0.7.20 (rhbz#1848782) - Minor spec and rpmlint cleanups * Tue May 26 2020 Miro Hrončok - 0.7.19-22 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.7.19-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 7 2019 John Eckersberg - 0.7.19-20 - Remove python2 subpackage from Fedora 32+ (rhbz#1769871) * Thu Oct 03 2019 Miro Hrončok - 0.7.19-19 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.7.19-18 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.19-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 22 2019 John Eckersberg - 0.7.19-16 - Move /usr/bin/netaddr to python3 and remove python2 version See https://fedoraproject.org/wiki/Changes/Python_means_Python3 * Mon Mar 11 2019 John Eckersberg - 0.7.19-15 - Remove BuildRequires on python2-sphinx See https://fedoraproject.org/wiki/Changes/Sphinx2 * Sat Feb 02 2019 Fedora Release Engineering - 0.7.19-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 28 2018 John Eckersberg - 0.7.19-13 - Add python_provide for python3 subpackage per packaging guidelines (RHBZ#1654198) * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 0.7.19-12 - Drop explicit locale setting See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot * Sat Jul 14 2018 Fedora Release Engineering - 0.7.19-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.7.19-10 - Rebuilt for Python 3.7 * Tue Jun 19 2018 Miro Hrončok - 0.7.19-9 - Rebuilt for Python 3.7 * Thu Feb 22 2018 Iryna Shcherbina - 0.7.19-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Mon Feb 19 2018 John Eckersberg - 0.7.19-7 - Fix shebang mangling for python3 (RHBZ#1546800) * Fri Feb 09 2018 Fedora Release Engineering - 0.7.19-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 29 2017 Troy Dawson - 0.7.19-5 - Cleanup spec file conditionals * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.7.19-4 - Python 2 binary package renamed to python2-netaddr See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.7.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.7.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 17 2017 John Eckersberg - 0.7.19-1 - New upstream release 0.7.19 (RHBZ#1413231) * Mon Dec 19 2016 Miro Hrončok - 0.7.18-10 - Rebuild for Python 3.6 * Sun Nov 13 2016 Orion Poplawski - 0.7.18-9 - Update description - Fix netaddr shebang (bug #1394046) * Thu Nov 10 2016 Orion Poplawski - 0.7.18-8 - Use updated python macros - Use %%license * Tue Jul 19 2016 Fedora Release Engineering - 0.7.18-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Mar 8 2016 John Eckersberg - 0.7.18-6 - Add provides for python2-netaddr (RHBZ#1282129) * Thu Feb 04 2016 Fedora Release Engineering - 0.7.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 22 2015 Robert Kuska - 0.7.18-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - Delete file which contains bundled pytest * Wed Nov 11 2015 Fedora Release Engineering - 0.7.18-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Tue Nov 10 2015 Fedora Release Engineering - 0.7.18-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Sep 4 2015 John Eckersberg - 0.7.18-1 - New upstream release 0.7.18 (RHBZ#1259969) * Tue Sep 1 2015 John Eckersberg - 0.7.17-1 - New upstream release 0.7.17 * Mon Jun 29 2015 John Eckersberg - 0.7.15-1 - New upstream release 0.7.15 - Add separate source for tests, see https://github.com/drkjam/netaddr/issues/102 - Add patch for broken assertion, see https://github.com/drkjam/netaddr/pull/103 * Thu Jun 18 2015 Fedora Release Engineering - 0.7.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Apr 1 2015 John Eckersberg - 0.7.14-1 - New upstream release 0.7.14 * Wed Sep 17 2014 Haïkel Guémar - 0.7.12-1 - Upstream 0.7.12 - Conditionalize python3 subpackages build on Fedora - Few spec cleanups * Sat Jun 07 2014 Fedora Release Engineering - 0.7.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 29 2014 Bohuslav Kabrda - 0.7.11-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Mon Apr 21 2014 John Eckersberg - 0.7.11-1 - New upstream release 0.7.11 - Enabled Python 3 support (bz1070357) * Sun Aug 04 2013 Fedora Release Engineering - 0.7.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.7.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.7.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.7.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon May 30 2011 Jakub Hrozek - 0.7.5-3 - Do not traceback on invalid IPNetwork input (upstream issues #2, #6, #5, #8) - Remove executable bit from documentation files to make rpmlint happy * Tue Feb 08 2011 Fedora Release Engineering - 0.7.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 05 2010 John Eckersberg - 0.7.5-1 - New upstream release 0.7.5 - Updated summary and description to match upstream README - Updated URL and source to reflect upstream move to github * Thu Jul 22 2010 David Malcolm - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon May 17 2010 John Eckersberg - 0.7.4-1 - New upstream release 0.7.4 * Wed Sep 30 2009 John Eckersberg - 0.7.3-1 - New upstream release 0.7.3 * Fri Aug 21 2009 John Eckersberg - 0.7.2-1 - New upstream release 0.7.2 - Updated Summary and Description with new values provided by upstream * Mon Aug 17 2009 John Eckersberg - 0.7.1-1 - New upstream release 0.7.1 fixes naming conflict with 'nash' by renaming the netaddr shell to 'netaddr' * Wed Aug 12 2009 John Eckersberg - 0.7-1 - Upstream release 0.7 * Sun Jul 26 2009 Fedora Release Engineering - 0.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 22 2009 John Eckersberg - 0.6.3-2 - Minor tweaks to spec file aligning with latest Fedora packaging guidelines - Enforce python 2.4 dependency as needed by netaddr >= 0.6.2 - Drop BR on python-setuptool as it is not imported in setup.py - Drop BR on dos2unix use sed instead - Align description with that of delivered PKG-INFO - Rip out python shebangs - Add %%check section to enable tests - Thanks to Gareth Armstrong * Tue Jun 23 2009 John Eckersberg - 0.6.3-1 - New upstream bugfix release * Mon Apr 13 2009 John Eckersberg - 0.6.2-1 - New upstream bugfix release * Tue Apr 7 2009 John Eckersberg - 0.6.1-1 - New upstream bugfix release * Thu Feb 26 2009 Fedora Release Engineering - 0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 18 2009 John Eckersberg - 0.6-2 - Add BuildDepends on dos2unix to clean up some upstream sources * Wed Feb 18 2009 John Eckersberg - 0.6-1 - New upstream version * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.5.2-2 - Rebuild for Python 2.6 * Fri Oct 10 2008 John Eckersberg - 0.5.2-1 - New upstream version, bug fixes for 0.5.1 * Tue Sep 23 2008 John Eckersberg - 0.5.1-1 - New upstream version, bug fixes for 0.5 * Sun Sep 21 2008 John Eckersberg - 0.5-1 - New upstream version * Mon Aug 11 2008 John Eckersberg - 0.4-1 - Initial packaging for Fedora