Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (33 sloc) 1.37 KB
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: python-netifaces
Version: 0.5
Release: 1%{?dist}
Summary: Python library which provides a list of network interfaces and its addresses on the local machine
Group: Development/Languages
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel python-setuptools
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.
%setup -q -n netifaces-%{version}
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="$RPM_OPT_FLAGS" %{__python} build
%{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT
* Tue May 10 2011 Andrey Brindeyev <> - 0.5-1
- Initial build