python-netifaces/python-netifaces.spec
Dirk Mueller 50744cd552 Accepting request 482962 from home:1Antoine1:branches:devel:languages:python
- Update to version 0.10.5:
  * Fix setup.py in case there's no print
  * Fix a potential one-byte stack overwrite
  * Fix possible null pointer deference
  * Respect interface priorities when determining default gateway
  * Use CIDR notation for IPv6 netmasks
  * Ignore broadcast addresses in the 169.254.0.0/16 range
- Convert package to python singlespec.

OBS-URL: https://build.opensuse.org/request/show/482962
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netifaces?expand=0&rev=16
2017-03-30 11:34:40 +00:00

64 lines
2.1 KiB
RPMSpec

#
# spec file for package python-netifaces
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Novell
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-netifaces
Version: 0.10.5
Release: 0
Summary: Portable network interface information
License: MIT
Group: Development/Languages/Python
Url: http://alastairs-place.net/projects/netifaces/
Source: https://pypi.python.org/packages/source/n/netifaces/netifaces-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%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_build
%install
%python_install
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%{python_sitearch}/*
%changelog