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