From a6c85904562695e9bf6de57cf9abc8fbeb193bdb8b498cb5e57207080f9d1051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 22 Apr 2020 07:13:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=47 --- python-Beaker.changes | 1 + python-Beaker.spec | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) 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