From 22e8ab8baa682cd6b42ec7bf79ed2be7a38d0dc6f12ebbe0916725def5347756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 11:42:58 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json_tricks?expand=0&rev=17 --- python-json_tricks.changes | 5 +++++ python-json_tricks.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/python-json_tricks.changes b/python-json_tricks.changes index d749754..bac60af 100644 --- a/python-json_tricks.changes +++ b/python-json_tricks.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 11:42:47 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Apr 16 11:38:33 UTC 2020 - pgajdos@suse.com diff --git a/python-json_tricks.spec b/python-json_tricks.spec index 7e45ea5..403ad60 100644 --- a/python-json_tricks.spec +++ b/python-json_tricks.spec @@ -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