2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2008-08-13 19:30:01 +00:00
|
|
|
Name: python-netaddr
|
2015-09-04 13:32:31 +00:00
|
|
|
Version: 0.7.18
|
2016-11-10 20:38:20 +00:00
|
|
|
Release: 8%{?dist}
|
2010-10-06 01:10:35 +00:00
|
|
|
Summary: A pure Python network address representation and manipulation library
|
2008-08-13 19:30:01 +00:00
|
|
|
|
|
|
|
License: BSD
|
2010-10-06 01:10:35 +00:00
|
|
|
URL: http://github.com/drkjam/netaddr
|
2014-04-21 20:54:11 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
2015-06-30 15:39:55 +00:00
|
|
|
|
2008-08-13 19:30:01 +00:00
|
|
|
BuildArch: noarch
|
2014-09-17 13:08:45 +00:00
|
|
|
BuildRequires: python2-devel
|
2014-04-21 20:54:11 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-sphinx
|
2015-11-22 20:17:10 +00:00
|
|
|
BuildRequires: pytest
|
2016-03-08 21:58:19 +00:00
|
|
|
Provides: python2-netaddr = %{version}-%{release}
|
2008-08-13 19:30:01 +00:00
|
|
|
|
|
|
|
%description
|
2009-08-21 14:46:18 +00:00
|
|
|
A pure Python network address representation and manipulation library.
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2009-08-21 14:46:18 +00:00
|
|
|
netaddr provides a Pythonic way of working with :-
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
- IPv4 and IPv6 addresses and subnets
|
|
|
|
- MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
|
|
|
|
- arbitrary (non-aligned) IP address ranges and IP address sets
|
|
|
|
- various non-CIDR IP range formats such as nmap and glob-style formats
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2009-08-21 14:46:18 +00:00
|
|
|
Included are routines for :-
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
- generating, sorting and summarizing IP addresses and networks
|
|
|
|
- performing easy conversions between address notations and formats
|
|
|
|
- detecting, parsing and formatting network address representations
|
|
|
|
- performing set-based operations on groups of IP addresses and subnets
|
|
|
|
- working with arbitrary IP address ranges and formats
|
|
|
|
- accessing OUI and IAB organisational information published by IEEE
|
|
|
|
- accessing IP address and block information published by IANA
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
For details on the latest updates and changes, see :-
|
2008-08-13 19:30:01 +00:00
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
http://github.com/drkjam/netaddr/blob/rel-0.7.x/CHANGELOG
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
API documentation for the latest release is available here :-
|
2009-08-21 14:46:18 +00:00
|
|
|
|
|
|
|
http://packages.python.org/netaddr/
|
|
|
|
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2014-04-21 20:54:11 +00:00
|
|
|
%package -n python3-netaddr
|
|
|
|
Summary: A pure Python network address representation and manipulation library
|
2014-09-17 13:08:45 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-sphinx
|
2015-11-22 20:17:10 +00:00
|
|
|
BuildRequires: python3-pytest
|
2014-04-21 20:54:11 +00:00
|
|
|
|
|
|
|
%description -n python3-netaddr
|
|
|
|
A pure Python network address representation and manipulation library.
|
|
|
|
|
|
|
|
netaddr provides a Pythonic way of working with :-
|
|
|
|
|
|
|
|
- IPv4 and IPv6 addresses and subnets
|
|
|
|
- MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
|
|
|
|
- arbitrary (non-aligned) IP address ranges and IP address sets
|
|
|
|
- various non-CIDR IP range formats such as nmap and glob-style formats
|
|
|
|
|
|
|
|
Included are routines for :-
|
|
|
|
|
|
|
|
- generating, sorting and summarizing IP addresses and networks
|
|
|
|
- performing easy conversions between address notations and formats
|
|
|
|
- detecting, parsing and formatting network address representations
|
|
|
|
- performing set-based operations on groups of IP addresses and subnets
|
|
|
|
- working with arbitrary IP address ranges and formats
|
|
|
|
- accessing OUI and IAB organisational information published by IEEE
|
|
|
|
- accessing IP address and block information published by IANA
|
|
|
|
|
|
|
|
For details on the latest updates and changes, see :-
|
|
|
|
|
|
|
|
http://github.com/drkjam/netaddr/blob/rel-0.7.x/CHANGELOG
|
|
|
|
|
|
|
|
API documentation for the latest release is available here :-
|
|
|
|
|
|
|
|
http://packages.python.org/netaddr/
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2014-04-21 20:54:11 +00:00
|
|
|
|
2008-08-13 19:30:01 +00:00
|
|
|
%prep
|
2015-09-01 19:48:50 +00:00
|
|
|
%setup -q -n netaddr-%{version}
|
2015-06-30 15:39:55 +00:00
|
|
|
|
2009-07-22 19:32:38 +00:00
|
|
|
# Make rpmlint happy, get rid of DOS line endings
|
|
|
|
%{__sed} -i 's/\r//' netaddr/*.py
|
|
|
|
%{__sed} -i 's/\r//' netaddr/ip/*.py
|
|
|
|
%{__sed} -i 's/\r//' netaddr/eui/*.idx
|
2015-11-22 20:17:10 +00:00
|
|
|
rm -rf runtests.py
|
2009-07-22 19:32:38 +00:00
|
|
|
|
|
|
|
# Make rpmlint happy, rip out python shebang lines from most python
|
|
|
|
# modules
|
|
|
|
find netaddr -name "*.py" | \
|
2016-11-10 20:51:01 +00:00
|
|
|
xargs sed -i -e '1 {/^#!\//d}'
|
2009-07-22 19:32:38 +00:00
|
|
|
|
2011-05-30 06:51:41 +00:00
|
|
|
# Make rpmlint happy, fix permissions on documentation files
|
2015-06-29 17:40:47 +00:00
|
|
|
chmod 0644 README.md AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE PKG-INFO
|
2008-08-13 19:30:01 +00:00
|
|
|
|
|
|
|
%build
|
2016-11-10 20:38:20 +00:00
|
|
|
%py2_build
|
2014-04-21 20:54:11 +00:00
|
|
|
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2016-11-10 20:38:20 +00:00
|
|
|
%py3_build
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2014-04-21 20:54:11 +00:00
|
|
|
|
|
|
|
#docs
|
|
|
|
pushd docs
|
|
|
|
PYTHONPATH='../' sphinx-build -b html -d build/doctrees source html
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2014-05-29 10:56:31 +00:00
|
|
|
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2014-04-21 20:54:11 +00:00
|
|
|
popd
|
2008-08-13 19:30:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2016-11-10 20:38:20 +00:00
|
|
|
%py3_install
|
2014-04-21 20:54:11 +00:00
|
|
|
mv %{buildroot}%{_bindir}/netaddr %{buildroot}%{_bindir}/netaddr3
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2014-04-21 20:54:11 +00:00
|
|
|
|
2016-11-10 20:38:20 +00:00
|
|
|
%py2_install
|
2009-07-22 19:32:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2015-11-22 20:17:10 +00:00
|
|
|
py.test-%{python2_version}
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-11-22 20:17:10 +00:00
|
|
|
LANG=en_US.UTF-8 py.test-%{python3_version}
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2008-08-13 19:30:01 +00:00
|
|
|
|
|
|
|
%files
|
2016-11-10 20:38:20 +00:00
|
|
|
%license COPYRIGHT
|
|
|
|
%doc AUTHORS CHANGELOG INSTALL LICENSE PKG-INFO
|
2015-06-29 17:40:47 +00:00
|
|
|
%doc README.md docs/html
|
2016-11-10 20:38:20 +00:00
|
|
|
%{python2_sitelib}/*
|
2009-08-17 17:28:02 +00:00
|
|
|
%{_bindir}/netaddr
|
2008-08-13 19:30:01 +00:00
|
|
|
|
2014-09-17 13:08:45 +00:00
|
|
|
%if 0%{?with_python3}
|
2014-04-21 20:54:11 +00:00
|
|
|
%files -n python3-netaddr
|
2016-11-10 20:38:20 +00:00
|
|
|
%license COPYRIGHT
|
|
|
|
%doc AUTHORS CHANGELOG INSTALL LICENSE PKG-INFO
|
2015-06-29 17:40:47 +00:00
|
|
|
%doc README.md docs/python3/html
|
2014-04-21 20:54:11 +00:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
%{_bindir}/netaddr3
|
2014-09-17 13:08:45 +00:00
|
|
|
%endif
|
2014-04-21 20:54:11 +00:00
|
|
|
|
2008-08-13 19:30:01 +00:00
|
|
|
%changelog
|
2016-11-10 20:38:20 +00:00
|
|
|
* Thu Nov 10 2016 Orion Poplawski <orion@cora.nwra.com> - 0.7.18-8
|
|
|
|
- Use updated python macros
|
|
|
|
- Use %%license
|
|
|
|
|
2016-07-19 10:36:45 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.18-7
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-03-08 21:58:19 +00:00
|
|
|
* Tue Mar 8 2016 John Eckersberg <eck@redhat.com> - 0.7.18-6
|
|
|
|
- Add provides for python2-netaddr (RHBZ#1282129)
|
|
|
|
|
2016-02-04 20:15:06 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.18-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-22 20:17:10 +00:00
|
|
|
* Sun Nov 22 2015 Robert Kuska <rkuska@redhat.com> - 0.7.18-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
- Delete file which contains bundled pytest
|
|
|
|
|
2015-11-11 11:34:34 +00:00
|
|
|
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.18-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-11-10 16:26:39 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-09-04 13:32:31 +00:00
|
|
|
* Fri Sep 4 2015 John Eckersberg <eck@redhat.com> - 0.7.18-1
|
|
|
|
- New upstream release 0.7.18 (RHBZ#1259969)
|
|
|
|
|
2015-09-01 19:48:50 +00:00
|
|
|
* Tue Sep 1 2015 John Eckersberg <eck@redhat.com> - 0.7.17-1
|
|
|
|
- New upstream release 0.7.17
|
|
|
|
|
2015-06-29 17:40:47 +00:00
|
|
|
* Mon Jun 29 2015 John Eckersberg <eck@redhat.com> - 0.7.15-1
|
|
|
|
- New upstream release 0.7.15
|
|
|
|
- Add separate source for tests, see https://github.com/drkjam/netaddr/issues/102
|
2015-06-30 15:39:55 +00:00
|
|
|
- Add patch for broken assertion, see https://github.com/drkjam/netaddr/pull/103
|
2015-06-29 17:40:47 +00:00
|
|
|
|
2015-06-18 20:01:19 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-01 03:10:36 +00:00
|
|
|
* Wed Apr 1 2015 John Eckersberg <eck@redhat.com> - 0.7.14-1
|
|
|
|
- New upstream release 0.7.14
|
|
|
|
|
2014-09-17 13:08:45 +00:00
|
|
|
* Wed Sep 17 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 0.7.12-1
|
|
|
|
- Upstream 0.7.12
|
|
|
|
- Conditionalize python3 subpackages build on Fedora
|
|
|
|
- Few spec cleanups
|
|
|
|
|
2014-06-07 21:35:54 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-29 10:56:31 +00:00
|
|
|
* Thu May 29 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-04-21 20:54:11 +00:00
|
|
|
* Mon Apr 21 2014 John Eckersberg <jeckersb@redhat.com> - 0.7.11-1
|
|
|
|
- New upstream release 0.7.11
|
|
|
|
- Enabled Python 3 support (bz1070357)
|
|
|
|
|
2013-08-04 08:37:26 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 19:55:49 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 07:23:11 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 01:55:02 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-05-30 06:51:41 +00:00
|
|
|
* Mon May 30 2011 Jakub Hrozek <jhrozek@redhat.com> - 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
|
|
|
|
|
2011-02-09 05:21:01 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-10-06 01:10:35 +00:00
|
|
|
* Tue Oct 05 2010 John Eckersberg <jeckersb@redhat.com> - 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
|
|
|
|
|
2010-07-22 04:49:59 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-05-17 19:24:22 +00:00
|
|
|
* Mon May 17 2010 John Eckersberg <jeckersb@redhat.com> - 0.7.4-1
|
|
|
|
- New upstream release 0.7.4
|
|
|
|
|
2009-09-30 18:19:34 +00:00
|
|
|
* Wed Sep 30 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.3-1
|
|
|
|
- New upstream release 0.7.3
|
|
|
|
|
2009-08-21 14:46:18 +00:00
|
|
|
* Fri Aug 21 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.2-1
|
|
|
|
- New upstream release 0.7.2
|
|
|
|
- Updated Summary and Description with new values provided by upstream
|
|
|
|
|
2009-08-17 17:28:02 +00:00
|
|
|
* Mon Aug 17 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.1-1
|
|
|
|
- New upstream release 0.7.1 fixes naming conflict with 'nash' by
|
|
|
|
renaming the netaddr shell to 'netaddr'
|
|
|
|
|
2009-08-12 13:32:36 +00:00
|
|
|
* Wed Aug 12 2009 John Eckersberg <jeckersb@redhat.com> - 0.7-1
|
|
|
|
- Upstream release 0.7
|
|
|
|
|
2009-07-26 20:43:28 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-22 19:32:38 +00:00
|
|
|
* Wed Jul 22 2009 John Eckersberg <jeckersb@redhat.com> - 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 <gareth.armstrong@hp.com>
|
|
|
|
|
2009-06-24 02:46:30 +00:00
|
|
|
* Tue Jun 23 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.3-1
|
|
|
|
- New upstream bugfix release
|
|
|
|
|
2009-04-13 15:19:33 +00:00
|
|
|
* Mon Apr 13 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.2-1
|
|
|
|
- New upstream bugfix release
|
|
|
|
|
2009-04-08 02:13:14 +00:00
|
|
|
* Tue Apr 7 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.1-1
|
|
|
|
- New upstream bugfix release
|
|
|
|
|
2009-02-26 22:30:37 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-18 19:38:38 +00:00
|
|
|
* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 0.6-2
|
|
|
|
- Add BuildDepends on dos2unix to clean up some upstream sources
|
|
|
|
|
2009-02-18 19:30:14 +00:00
|
|
|
* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 0.6-1
|
|
|
|
- New upstream version
|
|
|
|
|
2008-11-29 15:52:09 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.2-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-10-10 15:02:24 +00:00
|
|
|
* Fri Oct 10 2008 John Eckersberg <jeckersb@redhat.com> - 0.5.2-1
|
|
|
|
- New upstream version, bug fixes for 0.5.1
|
|
|
|
|
2008-09-24 01:25:59 +00:00
|
|
|
* Tue Sep 23 2008 John Eckersberg <jeckersb@redhat.com> - 0.5.1-1
|
|
|
|
- New upstream version, bug fixes for 0.5
|
|
|
|
|
2008-09-22 00:35:33 +00:00
|
|
|
* Sun Sep 21 2008 John Eckersberg <jeckersb@redhat.com> - 0.5-1
|
|
|
|
- New upstream version
|
|
|
|
|
2008-08-13 19:30:01 +00:00
|
|
|
* Mon Aug 11 2008 John Eckersberg <jeckersb@redhat.com> - 0.4-1
|
|
|
|
- Initial packaging for Fedora
|
|
|
|
|