# # spec file for package python-netifaces (Version 0.5) # # Copyright (c) 2011 Novell # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://www.suse.de/feedback/ # # norootforbuild Name: python-netifaces Version: 0.5 Release: 1 %define pop_name netifaces Provides: %{pop_name} Requires: python = %{py_ver} BuildRequires: gcc BuildRequires: python-devel BuildRequires: python-setuptools Group: Development/Languages/Python License: MIT URL: http://alastairs-place.net/netifaces/ Summary: Portable network interface information Source: %{pop_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %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. The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux and Solaris. On Windows, it is currently not able to retrieve IPv6 addresses, owing to shortcomings of the Windows API. It should work on other UNIX-like systems provided they implement either getifaddrs() or support the SIOCGIFxxx socket options, although the data provided by the socket options is normally less complete. Authors: Alastair Houghton %prep %setup -q -n %pop_name-%{version} %build %{__python} setup.py build %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc README %changelog * Thu Jan 27 2011 Robert Schweikert - netifaces-1 - Initial build.