diff --git a/python-Beaker.changes b/python-Beaker.changes index 41cd9b2..bbb6197 100644 --- a/python-Beaker.changes +++ b/python-Beaker.changes @@ -1,3 +1,4 @@ +------------------------------------------------------------------- Wed Apr 22 06:59:17 UTC 2020 - Steve Kowalik - Fix build without Python 2 present. diff --git a/python-Beaker.spec b/python-Beaker.spec index da85057..a60ab64 100644 --- a/python-Beaker.spec +++ b/python-Beaker.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python %bcond_without python2 Name: python-Beaker Version: 1.11.0 @@ -40,23 +41,23 @@ BuildRequires: %{python_module redis} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with python2} -BuildRequires: python-funcsigs -%endif -%ifpython2 Requires: python-pylibmc Requires: python-setuptools Recommends: python-SQLAlchemy Recommends: python-cryptography -Recommends: python-python-memcached Recommends: python-pycrypto Recommends: python-pycryptopp >= 0.5.12 Recommends: python-pymongo +Recommends: python-python-memcached Recommends: python-redis BuildArch: noarch +%if %{with python2} +BuildRequires: python-funcsigs +%endif +%ifpython2 Requires: python-funcsigs -Provides: python-beaker = %{version} -Obsoletes: python-beaker < %{version} +Provides: %{oldpython}-beaker = %{version} +Obsoletes: %{oldpython}-beaker < %{version} %endif %ifpython3 Requires: python3-dbm