forked from pool/python-ifaddr
Accepting request 684424 from devel:languages:python
- Update to 0.1.6: * Restrict ipaddress dependency to Python < 3.3 * Fixes installation of ipaddress module OBS-URL: https://build.opensuse.org/request/show/684424 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ifaddr?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf2a8fbb578da2844d999a0a453825f660ed2d3fc47dcffc5f673dd8de4f0f8b
|
||||
size 13222
|
||||
3
ifaddr-0.1.6.tar.gz
Normal file
3
ifaddr-0.1.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93
|
||||
size 6526
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 12 16:34:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Update to 0.1.6:
|
||||
* Restrict ipaddress dependency to Python < 3.3
|
||||
* Fixes installation of ipaddress module
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 9 09:36:58 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ifaddr
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,30 +19,27 @@
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-ifaddr
|
||||
Version: 0.1.4
|
||||
Version: 0.1.6
|
||||
Release: 0
|
||||
Summary: Module for enumerating IP addresses on system network adapters
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/pydron/ifaddr
|
||||
Source: https://files.pythonhosted.org/packages/source/i/ifaddr/ifaddr-%{version}.zip
|
||||
URL: https://github.com/pydron/ifaddr
|
||||
Source: https://files.pythonhosted.org/packages/source/i/ifaddr/ifaddr-%{version}.tar.gz
|
||||
Source99: https://raw.githubusercontent.com/pydron/ifaddr/master/LICENSE.txt
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
%ifpython2
|
||||
BuildRequires: %{oldpython}-ipaddress
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: python-ipaddress
|
||||
# /SECTION
|
||||
%ifpython2
|
||||
Requires: %{oldpython}-ipaddress
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -51,8 +48,7 @@ IP addresses assigned to the system.
|
||||
|
||||
%prep
|
||||
%setup -q -n ifaddr-%{version}
|
||||
cp %{S:99} .
|
||||
rm ifaddr.egg-info/requires.txt
|
||||
cp %{SOURCE99} .
|
||||
sed -i -e "s/install_requires = \['ipaddress'\],//" setup.py
|
||||
dos2unix README.rst
|
||||
|
||||
@@ -64,8 +60,7 @@ dos2unix README.rst
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
cd ifaddr
|
||||
%python_expand py.test-%{$python_version}
|
||||
%pytest ifaddr
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user