14
0

Accepting request 705219 from home:pgajdos

- version update to 0.10.9
  * Fixed a bug that in certain circumstances could lead to an infinite
    loop in netifaces.gateways() (thanks asomers).
  * Fixed a memory management bug in an error path (thanks NicoPy).
- created a small test

OBS-URL: https://build.opensuse.org/request/show/705219
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netifaces?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal
2019-05-24 11:56:32 +00:00
committed by Git OBS Bridge
parent b81b5df8e7
commit 9f1a871ff4
6 changed files with 94 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-netifaces
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Novell
#
# All modifications and additions to the file contributed by third parties
@@ -13,19 +13,22 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-netifaces
Version: 0.10.7
Version: 0.10.9
Release: 0
Summary: Portable network interface information
License: MIT
Group: Development/Languages/Python
Url: http://alastairs-place.net/projects/netifaces/
Source: https://pypi.io/packages/source/n/netifaces/netifaces-%{version}.tar.gz
Url: https://github.com/al45tair/netifaces
Source0: https://pypi.io/packages/source/n/netifaces/netifaces-%{version}.tar.gz
# https://github.com/al45tair/netifaces/issues/40
Source1: https://raw.githubusercontent.com/al45tair/netifaces/master/LICENSE
Source2: https://raw.githubusercontent.com/al45tair/netifaces/master/test.py
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -48,6 +51,7 @@ provided by the socket options is normally less complete.
%prep
%setup -q -n netifaces-%{version}
cp %{SOURCE1} %{SOURCE2} .
%build
%python_build
@@ -55,8 +59,12 @@ provided by the socket options is normally less complete.
%install
%python_install
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test.py | grep 'Interface lo'
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%doc README.rst
%{python_sitearch}/*