Matt Domsch 851668b
%define oname IPy
Matt Domsch 851668b
Summary:        Python module for handling IPv4 and IPv6 Addresses and Networks
Matt Domsch 851668b
Name:           python-%{oname}
770ce9c
Version:        0.81
cb5a0f3
Release:        25%{?dist}
Matt Domsch af188f2
URL:            https://github.com/haypo/python-ipy
e3d61c0
Source0:        https://files.pythonhosted.org/packages/source/I/IPy/IPy-%{version}.tar.gz
Matt Domsch 851668b
License:        BSD
e3d61c0
BuildRequires:  python2-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
e3d61c0
e3d61c0
e3d61c0
e3d61c0
%package -n python2-%{oname}
e3d61c0
Summary: Python 2 module for handling IPv4 and IPv6 Addresses and Networks
e3d61c0
%{?python_provide:%python_provide python2-%{oname}}
e3d61c0
e3d61c0
%description -n python2-%{oname}
e3d61c0
IPy is a Python 2 module for handling IPv4 and IPv6 Addresses and Networks 
e3d61c0
in a fashion similar to perl's Net::IP and friends. The IP class allows 
e3d61c0
a comfortable parsing and handling for most notations in use for IPv4 
e3d61c0
and IPv6 Addresses and Networks.
e3d61c0
e3d61c0
e3d61c0
e3d61c0
e3d61c0
%package -n python3-%{oname}
e3d61c0
Summary: Python 3 module for handling IPv4 and IPv6 Addresses and Networks
e3d61c0
%{?python_provide:%python_provide python3-%{oname}}
e3d61c0
e3d61c0
# The following is juts for backwards compatibility (can be removed in F30):
e3d61c0
Provides: %{name}-python3 = %{version}-%{release}
e3d61c0
Obsoletes: %{name}-python3 < 0.81-19
e3d61c0
e3d61c0
%description -n python3-%{oname}
e3d61c0
IPy is a Python 3 module for handling IPv4 and IPv6 Addresses and Networks 
e3d61c0
in a fashion similar to perl's Net::IP and friends. The IP class allows 
e3d61c0
a comfortable parsing and handling for most notations in use for IPv4 
e3d61c0
and IPv6 Addresses and Networks.
e3d61c0
e3d61c0
e3d61c0
Matt Domsch 851668b
%prep
Matt Domsch 851668b
%setup -q -n %{oname}-%{version}
Matt Domsch 851668b
e3d61c0
Matt Domsch 851668b
%build
e3d61c0
%py2_build
e3d61c0
%py3_build
e3d61c0
Matt Domsch 851668b
Matt Domsch 851668b
%check
e3d61c0
PYTHONPATH=$PWD %{__python2} test/test_IPy.py
e3d61c0
PYTHONPATH=$PWD %{__python2} test_doc.py
e3d61c0
e3d61c0
PYTHONPATH=$PWD %{__python3} test/test_IPy.py
e3d61c0
#PYTHONPATH=$PWD %{__python3} test_doc.py  # FAILS
e3d61c0
Matt Domsch 851668b
Matt Domsch 851668b
%install
e3d61c0
%py2_install
e3d61c0
%py3_install
Matt Domsch 851668b
Matt Domsch 851668b
e3d61c0
%files -n python2-%{oname}
3d4e7f4
%license COPYING
e3d61c0
%doc AUTHORS ChangeLog README
e3d61c0
%{python2_sitelib}/%{oname}*
ba01ab6
ba01ab6
e3d61c0
%files -n python3-%{oname}
3d4e7f4
%license COPYING
e3d61c0
%doc AUTHORS ChangeLog README
770ce9c
%{python3_sitelib}/%{oname}*
770ce9c
%{python3_sitelib}/__pycache__/%{oname}*
Matt Domsch 851668b
e3d61c0
Matt Domsch 851668b
%changelog
cb5a0f3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-25
cb5a0f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cb5a0f3
5c7eb53
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-24
5c7eb53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5c7eb53
cbcc39a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-23
cbcc39a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cbcc39a
0d5c883
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.81-22
0d5c883
- Rebuilt for Python 3.7
0d5c883
0735962
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-21
0735962
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0735962
af9ca16
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-20
af9ca16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
af9ca16
e3d61c0
* Wed May 03 2017 Miro Hrončok <mhroncok@redhat.com> - 0.81-19
e3d61c0
- Modernized SPEC
e3d61c0
- Updated source URL to a working one
e3d61c0
- Fixed package names (#1440243)
e3d61c0
- Actually run the tests (the Makefile is not present)
e3d61c0
85930f4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-18
85930f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
85930f4
eb524fb
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.81-17
eb524fb
- Rebuild for Python 3.6
eb524fb
76163ec
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-16
76163ec
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
76163ec
441d8a3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-15
441d8a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
441d8a3
Robert Kuska 091f42d
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 0.81-14
Robert Kuska 091f42d
- Rebuilt for Python3.5 rebuild
Robert Kuska 091f42d
dd639c0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-13
dd639c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dd639c0
3d4e7f4
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 0.81-12
3d4e7f4
- fix license handling
3d4e7f4
1f8d899
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-11
1f8d899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1f8d899
b426687
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.81-10
b426687
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
b426687
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