forked from pool/python-Beaker
- Fix build without Python 2 present.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=46
This commit is contained in:
@@ -17,19 +17,20 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without python2
|
||||
Name: python-Beaker
|
||||
Version: 1.11.0
|
||||
Release: 0
|
||||
Summary: A Session and Caching library with WSGI Middleware
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/bbangert/beaker
|
||||
Source: https://github.com/bbangert/beaker/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module SQLAlchemy}
|
||||
BuildRequires: %{python_module WebTest}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module cryptography}
|
||||
BuildRequires: %{python_module dbm}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pycryptodome}
|
||||
BuildRequires: %{python_module pylibmc}
|
||||
@@ -39,24 +40,26 @@ BuildRequires: %{python_module redis}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-dbm
|
||||
Requires: python3-pylibmc
|
||||
Requires: python3-setuptools
|
||||
Recommends: python3-SQLAlchemy
|
||||
Recommends: python3-cryptography
|
||||
Recommends: python3-python-memcached
|
||||
Recommends: python3-pycrypto
|
||||
Recommends: python3-pycryptopp >= 0.5.12
|
||||
Recommends: python3-pymongo
|
||||
Recommends: python3-redis
|
||||
BuildArch: noarch
|
||||
%ifpython3
|
||||
Requires: python3-dbm
|
||||
%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-redis
|
||||
BuildArch: noarch
|
||||
Requires: python-funcsigs
|
||||
Provides: %{oldpython}-beaker = %{version}
|
||||
Obsoletes: %{oldpython}-beaker < %{version}
|
||||
Provides: python-beaker = %{version}
|
||||
Obsoletes: python-beaker < %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Requires: python3-dbm
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user