Accepting request 897729 from devel:languages:python

- disable python 2, fixes Leap builds. Python 2 is no longer supported.
  fixes boo#1186841

OBS-URL: https://build.opensuse.org/request/show/897729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-maxminddb?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2021-06-11 20:30:08 +00:00 committed by Git OBS Bridge
parent 696f553590
commit fd6bbda417
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jun 5 14:03:36 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- disable python 2, fixes Leap builds. Python 2 is no longer supported.
fixes boo#1186841
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 1 18:30:49 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at> Sun Nov 1 18:30:49 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-maxminddb # spec file for package python-maxminddb
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,8 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1
%bcond_without python2
Name: python-maxminddb Name: python-maxminddb
Version: 2.0.3 Version: 2.0.3
Release: 0 Release: 0
@ -30,9 +29,6 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libmaxminddb-devel BuildRequires: libmaxminddb-devel
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with python2}
BuildRequires: python-ipaddress
%endif
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}