diff --git a/python-ifaddr.changes b/python-ifaddr.changes index b5cc8c1..cc648fb 100644 --- a/python-ifaddr.changes +++ b/python-ifaddr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 11:47:26 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Mar 12 16:34:30 UTC 2019 - Tomáš Chvátal diff --git a/python-ifaddr.spec b/python-ifaddr.spec index 7845784..37b5926 100644 --- a/python-ifaddr.spec +++ b/python-ifaddr.spec @@ -1,7 +1,7 @@ # # spec file for package python-ifaddr # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,8 @@ # -%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-ifaddr Version: 0.1.6 Release: 0 @@ -35,10 +35,12 @@ BuildRequires: unzip BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python-ipaddress +%endif # /SECTION %ifpython2 -Requires: %{oldpython}-ipaddress +Requires: python-ipaddress %endif %python_subpackages