summaryrefslogtreecommitdiff
path: root/packaging/python-netifaces.spec
blob: 5caa207bb5a3fa508e01223acb3ad37cfb777dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Name:       python-netifaces
Version:    0.6
Release:    1
Group:      System/Libraries
License:    MIT
Url:        http://alastairs-place.net/netifaces/
Summary:    Portable network interface information
Source:     http://alastairs-place.net/projects/netifaces/netifaces-%{version}.tar.gz
BuildRequires:  pkgconfig(python)
BuildRequires:  python-setuptools

%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}/*