forked from pool/python-humanfriendly
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=30
This commit is contained in:
committed by
Git OBS Bridge
parent
e4f8cf45b6
commit
b8ffa2ec8b
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 23 11:01:33 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Fix build without python2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 30 09:38:31 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%bcond_without python2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-humanfriendly%{psuffix}
|
||||
Version: 8.1
|
||||
@@ -47,8 +48,10 @@ BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest >= 3.0.7}
|
||||
BuildRequires: %{python_module pytest-cov >= 2.4.0}
|
||||
BuildRequires: %{pythons}
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-monotonic
|
||||
%endif
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: python-monotonic
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user