14
0
Files
python-netifaces/python-netifaces.spec

57 lines
1.7 KiB
RPMSpec

#
# 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/
#
Name: python-netifaces
Version: 0.5
Release: 0
License: MIT
Summary: Portable network interface information
Url: http://alastairs-place.net/netifaces/
Group: Development/Languages/Python
Source: netifaces-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-distribute
Provides: netifaces
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%endif
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%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.
%prep
%setup -q -n netifaces-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc README
%{python_sitearch}/*
%changelog