From d8f96e1817016aecddb167e42babb4b0a03c996a048878a8e1d96199037cc29b Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 26 Mar 2020 23:23:38 +0000 Subject: [PATCH] Accepting request 784814 from devel:languages:python Staging:I py2 OBS-URL: https://build.opensuse.org/request/show/784814 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-maxminddb?expand=0&rev=6 --- python-maxminddb.changes | 5 +++++ python-maxminddb.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-maxminddb.changes b/python-maxminddb.changes index de70a2e..4b9790b 100644 --- a/python-maxminddb.changes +++ b/python-maxminddb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 14 08:03:28 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Wed Jan 1 11:06:52 UTC 2020 - Sebastian Wagner diff --git a/python-maxminddb.spec b/python-maxminddb.spec index f7e51fd..629ad91 100644 --- a/python-maxminddb.spec +++ b/python-maxminddb.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-maxminddb Version: 1.5.2 Release: 0 Summary: Reader for the MaxMind DB format License: Apache-2.0 -Group: Development/Languages/Python URL: http://www.maxmind.com/ Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz BuildRequires: %{python_module devel} @@ -30,13 +30,15 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: libmaxminddb-devel BuildRequires: python-rpm-macros -BuildRequires: python2-ipaddress +%if %{with python2} +BuildRequires: python-ipaddress +%endif # SECTION test requirements BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} # /SECTION %ifpython2 -Requires: python2-ipaddress +Requires: python-ipaddress %endif %python_subpackages