15
0

Accepting request 795808 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/795808
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-json_tricks?expand=0&rev=8
This commit is contained in:
2020-04-21 11:10:36 +00:00
committed by Git OBS Bridge
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 20 11:42:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Apr 16 11:38:33 UTC 2020 - pgajdos@suse.com

View File

@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-json_tricks
Version: 3.15.2
Release: 0
@@ -39,7 +40,9 @@ BuildRequires: %{python_module pandas}
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
%if %{with python2}
BuildRequires: python-enum34
%endif
# /SECTION
%ifpython2
Recommends: python-enum34