%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 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