forked from pool/python-ipy
* Fix formatting of "IPv4 in IPv6" network: IP('::ffff:192.168.10.0/120')
- Version 0.62 (2008-07-15)
* Fix reverse DNS of IPv6 address: use ".ip6.arpa." suffix instead of
deprecated ".ip6.int." suffix
- Version 0.61 (2008-06-12)
* Patch from Aras Vaichas allowing the [-1] operator
to work with an IP object of size 1.
- Version 0.60 (2008-05-16)
* strCompressed() formats '::ffff:a.b.c.d' correctly
* Use strCompressed() instead of strFullsize() to format IP addresses,
ouput is smarter with IPv6 address
* Remove check_addr_prefixlen because it generates invalid IP address
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipy?expand=0&rev=2
44 lines
1.2 KiB
RPMSpec
44 lines
1.2 KiB
RPMSpec
%define modname IPy
|
|
Name: python-ipy
|
|
Version: 0.63
|
|
Release: 1
|
|
Summary: Class and Tools for Handling of IPv4 and IPv6 Addresses and Networks
|
|
URL: http://software.inl.fr/trac/wiki/IPy
|
|
License: BSD
|
|
Group: Development/Libraries/Python
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
%{py_requires}
|
|
BuildRequires: python-devel
|
|
|
|
%description
|
|
The IP class allows a comfortable parsing and handling for most
|
|
notations in use for IPv4 and IPv6 addresses and networks. It was
|
|
greatly inspired by RIPE's Perl module NET::IP's interface but
|
|
doesn't share the implementation. It doesn't share non-CIDR netmasks,
|
|
so funky stuff like a netmask of 0xffffff0f can't be done here.
|
|
|
|
Authors:
|
|
--------
|
|
Victor Stinner <victor.stinner AT inl.fr>
|
|
Maximillian Dornseif
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%doc example AUTHORS COPYING ChangeLog README
|
|
|
|
%changelog
|