15
0
forked from pool/python-Beaker
Tomáš Chvátal
2020-04-22 07:13:15 +00:00
committed by Git OBS Bridge
parent 7c62141a36
commit a6c8590456
2 changed files with 9 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
-------------------------------------------------------------------
Wed Apr 22 06:59:17 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Fix build without Python 2 present.

View File

@@ -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