diff --git a/python-pymemcache.changes b/python-pymemcache.changes index a9f1e60..6dea499 100644 --- a/python-pymemcache.changes +++ b/python-pymemcache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 09:34:22 UTC 2020 - Tomáš Chvátal + +- Fix build without python 2 + ------------------------------------------------------------------- Mon Mar 23 14:54:06 UTC 2020 - pgajdos@suse.com diff --git a/python-pymemcache.spec b/python-pymemcache.spec index d875bbd..7f16bf6 100644 --- a/python-pymemcache.spec +++ b/python-pymemcache.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pymemcache Version: 3.0.1 Release: 0 @@ -34,9 +35,11 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six BuildArch: noarch +%if %{with python2} +BuildRequires: python-future +%endif %ifpython2 -BuildRequires: python2-future -Requires: python2-future +Requires: python-future %endif %python_subpackages