%define module netifaces Name: python-%module Version: 0.8 Release: %mkrel 2 Requires: python BuildRequires: gcc BuildRequires: python-devel BuildRequires: python-setuptools Group: Development/Python License: MIT URL: http://alastairs-place.net/netifaces/ Summary: Portable network interface information Source: %{module}-%{version}.tar.gz %description netifaces provides a (hopefully portable-ish) way for Python programmers to get access to a list of the network interfaces on the local machine, and to obtain the addresses of those network interfaces. %prep %setup -q -n %module-%{version} %build CFLAGS="%{optflags}" python setup.py build %install %{__python} setup.py install --root $RPM_BUILD_ROOT --install-purelib=%{python_sitearch} %files %doc README %{python_sitearch}/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.8-2.mga3 + Revision: 379159 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Sep 09 2012 dams <dams> 0.8-1.mga3 + Revision: 291275 - fix %%mkrel - new version 0.8 - clean specfile - imported package python-netifaces