15
0
forked from pool/python-ifaddr

Accepting request 653694 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/653694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ifaddr?expand=0&rev=2
This commit is contained in:
2018-12-14 19:53:36 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 9 09:36:58 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase.
-------------------------------------------------------------------
Fri Nov 2 20:09:04 UTC 2018 - alarrosa@suse.com

View File

@@ -12,7 +12,8 @@
# 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/
#
%define oldpython python
@@ -20,23 +21,23 @@
Name: python-ifaddr
Version: 0.1.4
Release: 0
Summary: Module for enumerating IP addresses on system network adapters
License: MIT
Summary: Enumerates all IP addresses on all network adapters of the system
Url: https://github.com/pydron/ifaddr
Group: Development/Languages/Python
Url: https://github.com/pydron/ifaddr
Source: https://files.pythonhosted.org/packages/source/i/ifaddr/ifaddr-%{version}.zip
Source99: https://raw.githubusercontent.com/pydron/ifaddr/master/LICENSE.txt
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
%ifpython2
BuildRequires: %{oldpython}-ipaddress
%endif
# /SECTION
BuildRequires: unzip
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: unzip
%ifpython2
Requires: %{oldpython}-ipaddress
%endif
@@ -45,8 +46,8 @@ BuildArch: noarch
%python_subpackages
%description
ifaddr is a small Python library that allows you to find all the
IP addresses of the computer.
ifaddr is a Python library that allows finding the
IP addresses assigned to the system.
%prep
%setup -q -n ifaddr-%{version}
@@ -55,7 +56,6 @@ rm ifaddr.egg-info/requires.txt
sed -i -e "s/install_requires = \['ipaddress'\],//" setup.py
dos2unix README.rst
%build
%python_build