15
0

Accepting request 785565 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/785565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cheroot?expand=0&rev=11
This commit is contained in:
2020-03-26 23:25:15 +00:00
committed by Git OBS Bridge
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 16 10:23:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Sat Mar 7 14:09:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -18,6 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define pypi_name cheroot
%bcond_without python2
Name: python-%{pypi_name}
Version: 8.3.0
Release: 0
@@ -39,7 +40,6 @@ BuildRequires: %{python_module setuptools_scm_git_archive >= 1.0}
BuildRequires: %{python_module six >= 1.11.0}
BuildRequires: %{python_module trustme}
BuildRequires: fdupes
BuildRequires: python-backports.functools_lru_cache
BuildRequires: python-rpm-macros
Requires: python-jaraco.functools
Requires: python-more-itertools >= 2.6
@@ -49,6 +49,9 @@ Requires: python-six >= 1.11.0
# *smacks head against desk*
Provides: python-Cheroot = %{version}
BuildArch: noarch
%if %{with python2}
BuildRequires: python-backports.functools_lru_cache
%endif
%ifpython2
Requires: python-backports.functools_lru_cache
%endif