[python-openid/el5] Include patch from RHBZ#524975

Patrick "鮳\'&*`" Uiterwijk puiterwijk at fedoraproject.org
Wed Apr 30 18:49:50 UTC 2014


commit ab4903c35b1d6be5dd0713e94f36cad550e1f3c3
Author: Patrick Uiterwijk <puiterwijk at redhat.com>
Date:   Wed Apr 30 14:45:52 2014 -0400

    Include patch from RHBZ#524975

 digestsize.patch   |   11 +++++++++++
 python-openid.spec |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/digestsize.patch b/digestsize.patch
new file mode 100644
index 0000000..61a7fae
--- /dev/null
+++ b/digestsize.patch
@@ -0,0 +1,11 @@
+diff -rupN python-openid-2.1.1.orig/openid/cryptutil.py python-openid-2.1.1/openid/cryptutil.py
+--- python-openid-2.1.1.orig/openid/cryptutil.py	2007-12-14 19:10:46.000000000 -0500
++++ python-openid-2.1.1/openid/cryptutil.py	2014-04-30 14:44:08.456219533 -0400
+@@ -46,6 +46,7 @@ else:
+     class HashContainer(object):
+         def __init__(self, hash_constructor):
+             self.new = hash_constructor
++            self.digest_size = hash_constructor().digest_size
+ 
+     sha1_module = HashContainer(hashlib.sha1)
+     sha256_module = HashContainer(hashlib.sha256)
diff --git a/python-openid.spec b/python-openid.spec
index 31474c5..9bf9c19 100644
--- a/python-openid.spec
+++ b/python-openid.spec
@@ -2,13 +2,14 @@
 
 Name:           python-openid
 Version:        2.1.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Python OpenID libraries
 
 Group:          Development/Languages
 License:        ASL 2.0
 URL:            http://www.openidenabled.com/python-openid/
 Source0:	http://openidenabled.com/files/python-openid/packages/python-openid-%{version}.tar.bz2
+Patch0:         digestsize.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -40,6 +41,7 @@ Features of the 2.x.x series include:
 
 %prep
 %setup -q
+%patch0 -p1
 find . -type f | xargs chmod a-x
 
 %build
@@ -61,6 +63,9 @@ rm -rf %{buildroot}
 %{python_sitelib}/*
 
 %changelog
+* Wed Apr 30 2014 Patrick Uiterwijk <puiterwijk at redhat.com> - 2.1.1-4
+- Include patch from RHBZ#524975
+
 * Sat Dec 15 2007 Jeffrey C. Ollie <jeff at ocjtech.us> - 2.1.1-3
 - Don't BR Django on EPEL because the openid tests use some features
   of Django that aren't functional.


More information about the scm-commits mailing list