15
0
forked from pool/python-Beaker

Accepting request 303985 from home:benoit_monin:branches:devel:languages:python

- update to version 1.7.0
- remove everything related to tests: upstream deleted them from archive
- drop Beaker-1.6.4-setup_test.patch: only used by the tests
- do not delete the shebang of pbkdf2.py: fixed upstream
- remove CHANGELOG and LICENSE from package: deleted from archive
- add README.rst to the package documentation

OBS-URL: https://build.opensuse.org/request/show/303985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Beaker?expand=0&rev=27
This commit is contained in:
Michal Čihař
2015-04-27 10:35:36 +00:00
committed by Git OBS Bridge
parent 9ab69a33ff
commit cdabdf27dc
5 changed files with 32 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Beaker
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,35 +16,19 @@
#
# 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
Version: 1.7.0
Release: 0
Url: http://beaker.rtfd.org/
Summary: A Session and Caching library with WSGI Middleware
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/B/Beaker/Beaker-%{version}.tar.gz
Patch: Beaker-1.6.4-setup_test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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
BuildRequires: python-WebTest
BuildRequires: python-mock
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
@@ -88,8 +72,6 @@ Features:
%prep
%setup -q -n Beaker-%{version}
%patch -p1
sed -i "1d" beaker/crypto/pbkdf2.py # Fix non-executable script
%build
python setup.py build
@@ -98,17 +80,9 @@ 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,-)
%doc CHANGELOG LICENSE
%doc README.rst
%{python_sitelib}/beaker/
%{python_sitelib}/Beaker-%{version}-py%{py_ver}.egg-info