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