Blame SPECS/python-netaddr.spec

a17e1d
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
a17e1d
a17e1d
#====================================================================#
a17e1d
a17e1d
Name:           python-netaddr
a17e1d
Version:        0.7.5
a17e1d
Release:        9%{?dist}
a17e1d
Summary:        A pure Python network address representation and manipulation library
a17e1d
a17e1d
Group:          Development/Libraries
a17e1d
License:        BSD
a17e1d
URL:            http://github.com/drkjam/netaddr
a17e1d
Source0:        http://github.com/downloads/drkjam/netaddr/netaddr-%{version}.tar.gz
a17e1d
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
a17e1d
a17e1d
BuildArch:      noarch
a17e1d
BuildRequires:  python-devel >= 2.4
a17e1d
a17e1d
Patch0:         0001-Fixed-github-Issue-no.-2.-Thanks-keesbos.patch
a17e1d
Patch1:         0002-Exclude-39.0.0.0-8-network-from-reserved-set.patch
a17e1d
Patch2:         0003-Adapt-IPV4_RESERVED-according-to-RFC-5735-Appendix-A.patch
a17e1d
Patch3:         0004-Add-range-from-RFC-6598.patch
a17e1d
Patch4:         0005-Add-range-from-RFC-6890.patch
a17e1d
Patch5:         0006-Add-range-from-RFC-2544.patch
a17e1d
Patch6:         0007-Add-range-from-RFC-5737.patch
a17e1d
Patch7:         0008-Move-some-from-IPV4_PRIVATE-to-IPV4_RESERVED.patch
a17e1d
Patch8:         0009-Fixed-71.-Updated-IPv4-reserved-networks.patch
a17e1d
a17e1d
a17e1d
%description
a17e1d
A pure Python network address representation and manipulation library.
a17e1d
a17e1d
netaddr provides a Pythonic way of working with :-
a17e1d
a17e1d
- IPv4 and IPv6 addresses and subnets
a17e1d
- MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
a17e1d
- arbitrary (non-aligned) IP address ranges and IP address sets
a17e1d
- various non-CIDR IP range formats such as nmap and glob-style formats
a17e1d
a17e1d
Included are routines for :-
a17e1d
a17e1d
- generating, sorting and summarizing IP addresses and networks
a17e1d
- performing easy conversions between address notations and formats
a17e1d
- detecting, parsing and formatting network address representations
a17e1d
- performing set-based operations on groups of IP addresses and subnets
a17e1d
- working with arbitrary IP address ranges and formats
a17e1d
- accessing OUI and IAB organisational information published by IEEE
a17e1d
- accessing IP address and block information published by IANA
a17e1d
a17e1d
For details on the latest updates and changes, see :-
a17e1d
a17e1d
    http://github.com/drkjam/netaddr/blob/rel-0.7.x/CHANGELOG
a17e1d
a17e1d
API documentation for the latest release is available here :-
a17e1d
a17e1d
    http://packages.python.org/netaddr/
a17e1d
a17e1d
a17e1d
%prep
a17e1d
%setup -q -n netaddr-%{version}
a17e1d
a17e1d
%patch0 -p1 -b .invalid_ip_network
a17e1d
%patch1 -p1
a17e1d
%patch2 -p1
a17e1d
%patch3 -p1
a17e1d
%patch4 -p1
a17e1d
%patch5 -p1
a17e1d
%patch6 -p1
a17e1d
%patch7 -p1
a17e1d
%patch8 -p1
a17e1d
a17e1d
# Make rpmlint happy, get rid of DOS line endings
a17e1d
%{__sed} -i 's/\r//' netaddr/*.py
a17e1d
%{__sed} -i 's/\r//' netaddr/ip/*.py
a17e1d
%{__sed} -i 's/\r//' netaddr/eui/*.idx
a17e1d
a17e1d
# Make rpmlint happy, rip out python shebang lines from most python
a17e1d
# modules
a17e1d
find netaddr -name "*.py" | \
a17e1d
  xargs %{__perl} -ni -e 'print unless /usr\/bin\/python|env\s+python/'
a17e1d
a17e1d
# Make rpmlint happy, fix permissions on documentation files
a17e1d
chmod 0644 README AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE PKG-INFO
a17e1d
a17e1d
%build
a17e1d
%{__python} setup.py build
a17e1d
a17e1d
a17e1d
%install
a17e1d
rm -rf %{buildroot}
a17e1d
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
a17e1d
a17e1d
a17e1d
%check
a17e1d
%{__python} netaddr/tests/__init__.py
a17e1d
a17e1d
%clean
a17e1d
rm -rf %{buildroot}
a17e1d
a17e1d
a17e1d
%files
a17e1d
%defattr(-,root,root,-)
a17e1d
%doc AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE PKG-INFO
a17e1d
%doc README docs/api/
a17e1d
%{python_sitelib}/*
a17e1d
%{_bindir}/netaddr
a17e1d
a17e1d
%changelog
a17e1d
* Thu Nov 2 2017 Pavel Vomacka <pvomacka@redhat.com> - 0.7.5-9
a17e1d
- Adding commands to apply new patches added in previous release 0.7.5-8
a17e1d
a17e1d
* Fri Oct 20 2017 Pavel Vomacka <pvomacka@redhat.com> - 0.7.5-8
a17e1d
- Resolves: #1438668 DNS forwarder address added during IPA installation
a17e1d
  shouldn't add IP-Address '0.0.0.0'
a17e1d
a17e1d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.7.5-7
a17e1d
- Mass rebuild 2013-12-27
a17e1d
a17e1d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-6
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a17e1d
a17e1d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-5
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a17e1d
a17e1d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a17e1d
a17e1d
* Mon May 30 2011 Jakub Hrozek <jhrozek@redhat.com> - 0.7.5-3
a17e1d
- Do not traceback on invalid IPNetwork input (upstream issues #2, #6, #5, #8)
a17e1d
- Remove executable bit from documentation files to make rpmlint happy
a17e1d
a17e1d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-2
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a17e1d
a17e1d
* Tue Oct 05 2010 John Eckersberg <jeckersb@redhat.com> - 0.7.5-1
a17e1d
- New upstream release 0.7.5
a17e1d
- Updated summary and description to match upstream README
a17e1d
- Updated URL and source to reflect upstream move to github
a17e1d
a17e1d
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.4-2
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a17e1d
a17e1d
* Mon May 17 2010 John Eckersberg <jeckersb@redhat.com> - 0.7.4-1
a17e1d
- New upstream release 0.7.4
a17e1d
a17e1d
* Wed Sep 30 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.3-1
a17e1d
- New upstream release 0.7.3
a17e1d
a17e1d
* Fri Aug 21 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.2-1
a17e1d
- New upstream release 0.7.2
a17e1d
- Updated Summary and Description with new values provided by upstream
a17e1d
a17e1d
* Mon Aug 17 2009 John Eckersberg <jeckersb@redhat.com> - 0.7.1-1
a17e1d
- New upstream release 0.7.1 fixes naming conflict with 'nash' by
a17e1d
  renaming the netaddr shell to 'netaddr'
a17e1d
a17e1d
* Wed Aug 12 2009 John Eckersberg <jeckersb@redhat.com> - 0.7-1
a17e1d
- Upstream release 0.7
a17e1d
a17e1d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a17e1d
a17e1d
* Wed Jul 22 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.3-2
a17e1d
- Minor tweaks to spec file aligning with latest Fedora packaging guidelines
a17e1d
- Enforce python 2.4 dependency as needed by netaddr >= 0.6.2
a17e1d
- Drop BR on python-setuptool as it is not imported in setup.py
a17e1d
- Drop BR on dos2unix use sed instead
a17e1d
- Align description with that of delivered PKG-INFO
a17e1d
- Rip out python shebangs
a17e1d
- Add %%check section to enable tests
a17e1d
- Thanks to Gareth Armstrong <gareth.armstrong@hp.com>
a17e1d
a17e1d
* Tue Jun 23 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.3-1
a17e1d
- New upstream bugfix release
a17e1d
a17e1d
* Mon Apr 13 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.2-1
a17e1d
- New upstream bugfix release
a17e1d
a17e1d
* Tue Apr 7 2009 John Eckersberg <jeckersb@redhat.com> - 0.6.1-1
a17e1d
- New upstream bugfix release
a17e1d
a17e1d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
a17e1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a17e1d
a17e1d
* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 0.6-2
a17e1d
- Add BuildDepends on dos2unix to clean up some upstream sources
a17e1d
a17e1d
* Wed Feb 18 2009 John Eckersberg <jeckersb@redhat.com> - 0.6-1
a17e1d
- New upstream version
a17e1d
a17e1d
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.2-2
a17e1d
- Rebuild for Python 2.6
a17e1d
a17e1d
* Fri Oct 10 2008 John Eckersberg <jeckersb@redhat.com> - 0.5.2-1
a17e1d
- New upstream version, bug fixes for 0.5.1
a17e1d
a17e1d
* Tue Sep 23 2008 John Eckersberg <jeckersb@redhat.com> - 0.5.1-1
a17e1d
- New upstream version, bug fixes for 0.5
a17e1d
a17e1d
* Sun Sep 21 2008 John Eckersberg <jeckersb@redhat.com> - 0.5-1
a17e1d
- New upstream version
a17e1d
a17e1d
* Mon Aug 11 2008 John Eckersberg <jeckersb@redhat.com> - 0.4-1
a17e1d
- Initial packaging for Fedora
a17e1d