|
|
caa73f |
%define oname IPy
|
|
|
caa73f |
|
|
|
caa73f |
# per fedora python packaging guidelines
|
|
|
caa73f |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
caa73f |
|
|
|
caa73f |
Summary: Python module for handling IPv4 and IPv6 Addresses and Networks
|
|
|
caa73f |
Name: python-%{oname}
|
|
|
caa73f |
Version: 0.75
|
|
|
586578 |
Release: 6%{?dist}
|
|
|
caa73f |
URL: https://github.com/haypo/python-ipy
|
|
|
caa73f |
Source0: http://pypi.python.org/packages/source/I/IPy/IPy-%{version}.tar.gz
|
|
|
caa73f |
License: BSD
|
|
|
caa73f |
Group: System Environment/Libraries
|
|
|
caa73f |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
caa73f |
BuildRequires: python-devel
|
|
|
caa73f |
BuildArch: noarch
|
|
|
caa73f |
|
|
|
caa73f |
%description
|
|
|
caa73f |
IPy is a Python module for handling IPv4 and IPv6 Addresses and Networks
|
|
|
caa73f |
in a fashion similar to perl's Net::IP and friends. The IP class allows
|
|
|
caa73f |
a comfortable parsing and handling for most notations in use for IPv4
|
|
|
caa73f |
and IPv6 Addresses and Networks.
|
|
|
caa73f |
|
|
|
caa73f |
%prep
|
|
|
caa73f |
%setup -q -n %{oname}-%{version}
|
|
|
caa73f |
|
|
|
caa73f |
%build
|
|
|
caa73f |
CFLAGS="%{optflags}" %{_bindir}/python setup.py build
|
|
|
caa73f |
|
|
|
caa73f |
%check
|
|
|
caa73f |
make test
|
|
|
caa73f |
|
|
|
caa73f |
%install
|
|
|
caa73f |
%{__rm} -rf %{buildroot}
|
|
|
caa73f |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
caa73f |
|
|
|
caa73f |
|
|
|
caa73f |
%clean
|
|
|
caa73f |
%{__rm} -rf %{buildroot}
|
|
|
caa73f |
|
|
|
caa73f |
%files
|
|
|
caa73f |
%defattr(-,root,root)
|
|
|
caa73f |
%doc AUTHORS COPYING ChangeLog PKG-INFO README
|
|
|
caa73f |
%{python_sitelib}/%{oname}*
|
|
|
caa73f |
|
|
|
caa73f |
|
|
|
caa73f |
%changelog
|
|
|
586578 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.75-6
|
|
|
586578 |
- Mass rebuild 2013-12-27
|
|
|
586578 |
|
|
|
caa73f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-5
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Aug 25 2012 Matt Domsch <mdomsch@fedoraproject.org> - 0.75-4
|
|
|
caa73f |
- project URL moved to github
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-3
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-2
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Tue Jun 21 2011 Matt Domsch <mdomsch@fedoraproject.org> - 0.75-1
|
|
|
caa73f |
- Version 0.75 (2011-04-12)
|
|
|
caa73f |
* IP('::/0').netmask() gives IP('::') instead of IP('0.0.0.0') (BZ#690625)
|
|
|
caa73f |
* Fix tests for Python 3.1 and 3.2
|
|
|
caa73f |
* ip.__nonzero__() and (ipa in ipb) return a bool instead of 0 or 1
|
|
|
caa73f |
* IP('0.0.0.0/0') + IP('0.0.0.0/0') raises an error, fix written by Arfrever
|
|
|
caa73f |
* Support Python 3: setup.py runs 2to3
|
|
|
caa73f |
* Update the ranges for IPv6 IPs
|
|
|
caa73f |
* Fix reverseName() and reverseNames() for IPv4 in IPv6 addresses
|
|
|
caa73f |
* Drop support of Python < 2.5
|
|
|
caa73f |
* Include examples and MANIFEST.in in source build (add them to MANIFEST.in)
|
|
|
caa73f |
* Remove __rcsid__ constant from IPy module
|
|
|
caa73f |
* Use xrange() instead of range()
|
|
|
caa73f |
* Use isinstance(x, int) instead of type(x) == types.IntType
|
|
|
caa73f |
* Prepare support of Python3 (use integer division: x // y)
|
|
|
caa73f |
* Fix IP(long) constructor: ensure that the address is not too large
|
|
|
caa73f |
* Constructor raise a TypeError if the type is not int, long, str or unicode
|
|
|
caa73f |
* 223.0.0.0/8 is now public (belongs to APNIC)
|
|
|
caa73f |
|
|
|
caa73f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.70-3
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.70-2
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Sun Jan 10 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.70-1
|
|
|
caa73f |
- Version 0.70 (2009-10-29)
|
|
|
caa73f |
* New "major" version because it may break compatibility
|
|
|
caa73f |
* Fix __cmp__(): IP('0.0.0.0/0') and IP('0.0.0.0') are not equal
|
|
|
caa73f |
* Fix IP.net() of the network "::/0": "::" instead of "0.0.0.0".
|
|
|
caa73f |
IPy 0.63 should fix this bug, but it wasn't.
|
|
|
caa73f |
|
|
|
caa73f |
* Sun Aug 30 2009 Matt Domsch <mdomsch@fedoraproject.org> - 0.63-1
|
|
|
caa73f |
- Fix formatting of "IPv4 in IPv6" network: IP('::ffff:192.168.10.0/120')
|
|
|
caa73f |
|
|
|
caa73f |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.62-4
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.62-3
|
|
|
caa73f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.62-2
|
|
|
caa73f |
- Rebuild for Python 2.6
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Nov 22 2008 Matt Domsch <mdomsch@fedoraproject.org> - 0.62-1
|
|
|
caa73f |
- new upstream version
|
|
|
caa73f |
- Fix reverse DNS of IPv6 address: use ".ip6.arpa." suffix instead of deprecated ".ip6.int." suffix
|
|
|
caa73f |
- Patch from Aras Vaichas allowing the [-1] operator to work with an IP object of size 1.
|
|
|
caa73f |
|
|
|
caa73f |
* Tue May 20 2008 Matt Domsch <matt@domsch.com> 0.60-1
|
|
|
caa73f |
- with assistance from Mike Frisch
|
|
|
caa73f |
- 0.60
|
|
|
caa73f |
|
|
|
caa73f |
* Tue Jun 05 2007 Matt Domsch <matt@domsch.com> 0.53-2
|
|
|
caa73f |
- simple cleanups per Fedora package review, with thanks to Nigel Jones.
|
|
|
caa73f |
|
|
|
caa73f |
* Thu May 10 2007 Matt Domsch <matt@domsch.com> 0.53-1
|
|
|
caa73f |
- repackaged for Fedora
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Jan 20 2007 David Walluck <walluck@mandriva.org> 0.52-1mdv2007.0
|
|
|
caa73f |
+ Revision: 110982
|
|
|
caa73f |
- 0.52
|
|
|
caa73f |
|
|
|
caa73f |
* Wed Dec 13 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0:0.51-2mdv2007.1
|
|
|
caa73f |
+ Revision: 96523
|
|
|
caa73f |
- Rebuild against new python
|
|
|
caa73f |
|
|
|
caa73f |
* Thu Nov 02 2006 David Walluck <walluck@mandriva.org> 0:0.51-1mdv2007.1
|
|
|
caa73f |
+ Revision: 75609
|
|
|
caa73f |
- 0.51
|
|
|
caa73f |
|
|
|
caa73f |
* Sun Oct 15 2006 David Walluck <walluck@mandriva.org> 0:0.42-3mdv2007.1
|
|
|
caa73f |
+ Revision: 65303
|
|
|
caa73f |
- sync with 2mdv
|
|
|
caa73f |
- Import python-IPy
|
|
|
caa73f |
|
|
|
caa73f |
|
|
|
caa73f |
|
|
|
caa73f |
* Sat Sep 16 2006 David Walluck <walluck@mandriva.com> 0:0.42-1mdv2007.0
|
|
|
caa73f |
- release
|