%define module netaddr Name: python-%module Version: 0.7.5 Release: %mkrel 2 License: BSD3c Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses Url: http://code.google.com/p/netaddr Group: Development/Python Source: netaddr-%{version}.tar.bz2 BuildRequires: python-devel BuildRequires: python-setuptools BuildArch: noarch %description A pure Python network address representation and manipulation library. netaddr provides a Pythonic way of working with: - IPv4 and IPv6 addresses and subnets (including CIDR notation); - MAC (Media Access Control) addresses in multiple formats; - IEEE EUI-64, OUI and IAB identifiers; - a user friendly IP glob-style format. Included are routines for: - generating, sorting and summarizing IP addresses; - converting IP addresses and ranges between various different formats; - performing set based operations on groups of IP addresses and subnets; - arbitrary IP address range calculations and conversions; - querying IEEE OUI and IAB organisational information; - querying of IP standards related data from key IANA data sources. %prep %setup -q -n %module-%{version} chmod -x AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS # remove executable bit from docs %build CFLAGS="%{optflags}" python setup.py build %install %{__python} setup.py install --root $RPM_BUILD_ROOT --install-purelib=%{python_sitelib} %files %doc AUTHORS CHANGELOG COPYRIGHT README LICENSE THANKS %{_bindir}/%module %{python_sitelib}/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.7.5-2.mga3 + Revision: 379158 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Nov 03 2012 neoclust <neoclust> 0.7.5-1.mga3 + Revision: 313246 - imported package python-netaddr