Hello community,
here is the log from the commit of package python-beaker for openSUSE:Factory
checked in at Thu Sep 3 16:52:52 CEST 2009.
--------
New Changes file:
--- /dev/null 2009-04-14 11:55:47.000000000 +0200
+++ /mounts/work_src_done/STABLE/python-beaker/python-beaker.changes 2009-09-03 14:05:38.000000000 +0200
@@ -0,0 +1,15 @@
+-------------------------------------------------------------------
+Thu Sep 3 14:05:28 CEST 2009 - matejcik@suse.cz
+
+- build as noarch
+
+-------------------------------------------------------------------
+Thu Sep 3 13:30:55 CEST 2009 - matejcik@suse.cz
+
+- tar-bzipped the source
+- importing from OBS, original changelog follows:
+* Mon Aug 10 2009 - Ciaran Farrell
+- Added requires to enable testing
+
+* Tue Dec 02 2008 - James Oakley - 1.1.2-1
+- Initial release
calling whatdependson for head-i586
New:
----
Beaker-1.4.tar.bz2
python-beaker-absimport.patch
python-beaker-py2.4-hashlib.patch
python-beaker.changes
python-beaker.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-beaker.spec ++++++
#
# spec file for package python-beaker (Version 1.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname Beaker
Name: python-beaker
Version: 1.4
Release: 1
Summary: WSGI middleware layer to provide sessions
Group: Development/Languages
License: BSD
Url: http://beaker.groovie.org/
Source0: Beaker-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
BuildRequires: python-setuptools
Patch0: %{name}-py2.4-hashlib.patch
Patch1: %{name}-absimport.patch
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
Beaker is a caching library that includes Session and Cache objects built on
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
manage Session objects and signed cookies.
Beaker is a web session and general caching library that includes WSGI
middleware for use in web applications.
As a general caching library, Beaker can handle storing for various times any
Python object that can be pickled with optional back-ends on a fine-grained
basis.
Beaker was built largely on the code from MyghtyUtils, then refactored and
extended with database support.
Beaker includes Cache and Session WSGI middleware to ease integration with WSGI
capable frameworks, and is automatically used by Pylons.
Authors:
--------
Ben Bangart
Philip Jenvey
Mike Bayer
%description
Beaker is a caching library that includes Session and Cache objects built on
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
manage Session objects and signed cookies.
Beaker is a web session and general caching library that includes WSGI
middleware for use in web applications.
As a general caching library, Beaker can handle storing for various times any
Python object that can be pickled with optional back-ends on a fine-grained
basis.
Beaker was built largely on the code from MyghtyUtils, then refactored and
extended with database support.
Beaker includes Cache and Session WSGI middleware to ease integration with WSGI
capable frameworks, and is automatically used by Pylons.
Authors:
--------
Ben Bangart
Philip Jenvey
Mike Bayer
%prep
%setup -q -n %{modname}-%{version}
%patch1 -p0 -b .absimport
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
#python setup.py install -01 --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%{__python} setup.py install -O1 --prefix=%{_prefix} --skip-build --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGELOG LICENSE
%changelog
++++++ python-beaker-absimport.patch ++++++
--- beaker/ext/google.py.orig 2009-06-27 13:57:33.000000000 -0400
+++ beaker/ext/google.py 2009-06-27 13:57:37.000000000 -0400
@@ -1,4 +1,3 @@
-from __future__ import absolute_import
import cPickle
import logging
from datetime import datetime
++++++ python-beaker-py2.4-hashlib.patch ++++++
--- beaker/session.py.orig 2009-06-02 08:58:51.000000000 -0400
+++ beaker/session.py 2009-06-02 09:00:26.000000000 -0400
@@ -5,13 +5,8 @@
import random
import time
from datetime import datetime, timedelta
-try:
- from hashlib import md5, sha1
-except ImportError:
- from md5 import md5
- # NOTE: We have to use the callable with hashlib (hashlib.sha1),
- # otherwise hmac only accepts the sha module object itself
- import sha as sha1
+from md5 import md5
+import sha as sha1
# Check for pycryptopp encryption for AES
try:
--- beaker/util.py.orig 2009-06-02 09:22:13.000000000 -0400
+++ beaker/util.py 2009-06-02 09:22:44.000000000 -0400
@@ -17,10 +17,7 @@
Set = set
except NameError:
from sets import Set
-try:
- from hashlib import sha1
-except ImportError:
- from sha import sha as sha1
+from sha import sha as sha1
from beaker.converters import asbool
--- beaker/crypto/pbkdf2.py.orig 2009-06-02 09:22:07.000000000 -0400
+++ beaker/crypto/pbkdf2.py 2009-06-02 09:22:34.000000000 -0400
@@ -79,12 +79,7 @@
except ImportError:
# PyCrypto not available. Use the Python standard library.
import hmac as HMAC
- try:
- from hashlib import sha1 as SHA1
- except ImportError:
- # NOTE: We have to use the callable with hashlib (hashlib.sha1),
- # otherwise hmac only accepts the sha module object itself
- import sha as SHA1
+ import sha as SHA1
def strxor(a, b):
return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b)])
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org