forked from pool/python-Beaker
- Add a build conditional for testing with memcached. It can be too
heavy at times OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=24
This commit is contained in:
committed by
Git OBS Bridge
parent
9c326ed958
commit
b73b3fa9e7
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 9 09:20:00 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Add a build conditional for testing with memcached. It can be too
|
||||
heavy at times
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 23:16:53 UTC 2013 - hpj@urpla.net
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
# memcached with both bindings can be a bit heavy at times, thus only enable
|
||||
# with a build conditional (off by default):
|
||||
%bcond_with tests
|
||||
|
||||
Name: python-Beaker
|
||||
Version: 1.6.4
|
||||
Release: 0
|
||||
@@ -30,6 +34,7 @@ Requires: python-cryptopp >= 0.5.12
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-cryptopp >= 0.5.12
|
||||
BuildRequires: python-setuptools
|
||||
%if %{with tests}
|
||||
# Testing requirements:
|
||||
BuildRequires: memcached
|
||||
BuildRequires: python-SQLAlchemy
|
||||
@@ -39,9 +44,9 @@ BuildRequires: python-nose
|
||||
# it tests against both memcached libs!
|
||||
BuildRequires: python-pylibmc
|
||||
BuildRequires: python-python-memcached
|
||||
%endif
|
||||
Provides: python-beaker = %{version}
|
||||
Obsoletes: python-beaker < %{version}
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
BuildRequires: python-ordereddict
|
||||
BuildRequires: python-unittest2
|
||||
@@ -93,11 +98,13 @@ python setup.py build
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
/usr/sbin/memcached&
|
||||
# test_container.test_dbm_container_{2,3} fail more often than not on BS,
|
||||
# but succeed on a local build
|
||||
python setup.py test || true
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
Reference in New Issue
Block a user