rpms/python-crypto/devel pycrypto-2.0.1-hashlib.patch, 1.1, 1.2 python-crypto.spec, 1.25, 1.26
Stewart Adam
firewing at fedoraproject.org
Sat Feb 7 18:01:43 UTC 2009
- Previous message (by thread): rpms/kernel/devel patch-2.6.29-rc3-git11.bz2.sign, NONE, 1.1 .cvsignore, 1.1008, 1.1009 config-generic, 1.235, 1.236 kernel.spec, 1.1273, 1.1274 sources, 1.970, 1.971 upstream, 1.882, 1.883 linux-2.6.29-btrfs-readdir-fix.patch, 1.1, NONE linux-2.6.29-btrfs-selinux.patch, 1.1, NONE linux-2.6.29-btrfs-setxattr-fix.patch, 1.1, NONE patch-2.6.29-rc3-git10.bz2.sign, 1.1, NONE
- Next message (by thread): rpms/elisa/devel .cvsignore, 1.11, 1.12 elisa.spec, 1.14, 1.15 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: firewing
Update of /cvs/extras/rpms/python-crypto/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16285
Modified Files:
pycrypto-2.0.1-hashlib.patch python-crypto.spec
Log Message:
* Sat Feb 7 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-15.1
- Oops, actually apply the patch
- Modify patch so modules remain compatible with PEP 247
pycrypto-2.0.1-hashlib.patch:
Index: pycrypto-2.0.1-hashlib.patch
===================================================================
RCS file: /cvs/extras/rpms/python-crypto/devel/pycrypto-2.0.1-hashlib.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pycrypto-2.0.1-hashlib.patch 7 Feb 2009 14:25:07 -0000 1.1
+++ pycrypto-2.0.1-hashlib.patch 7 Feb 2009 18:01:43 -0000 1.2
@@ -1,33 +1,53 @@
---- HMAC.py.old 2009-02-07 09:08:31.000000000 -0500
-+++ HMAC.py 2009-02-07 09:09:08.000000000 -0500
-@@ -33,7 +33,7 @@
+--- Hash/HMAC.py.old 2002-07-25 13:19:02.000000000 -0400
++++ Hash/HMAC.py 2009-02-07 12:32:36.000000000 -0500
+@@ -33,8 +33,8 @@
digestmod: A module supporting PEP 247. Defaults to the md5 module.
"""
if digestmod == None:
- import md5
-+ from hashlib import md5
- digestmod = md5
+- digestmod = md5
++ import MD5
++ digestmod = MD5
self.digestmod = digestmod
---- MD5.py.old 2009-02-07 09:08:22.000000000 -0500
-+++ MD5.py 2009-02-07 09:09:22.000000000 -0500
-@@ -3,7 +3,7 @@
+ self.outer = digestmod.new()
+--- Hash/MD5.py.old 2002-07-11 10:31:19.000000000 -0400
++++ Hash/MD5.py 2009-02-07 12:50:48.000000000 -0500
+@@ -3,11 +3,10 @@
__revision__ = "$Id$"
-from md5 import *
-+from hashlib import md5
++import hashlib
- import md5
- if hasattr(md5, 'digestsize'):
---- SHA.py.old 2009-02-07 09:08:38.000000000 -0500
-+++ SHA.py 2009-02-07 09:09:32.000000000 -0500
-@@ -3,7 +3,7 @@
+-import md5
+-if hasattr(md5, 'digestsize'):
+- digest_size = digestsize
+- del digestsize
+-del md5
++new = hashlib.md5
++md5 = hashlib.md5
+
++blocksize = hashlib.md5().block_size
++digest_size = hashlib.md5().digest_size
+--- Hash/SHA.py.old 2002-07-11 10:31:19.000000000 -0400
++++ Hash/SHA.py 2009-02-07 12:50:17.000000000 -0500
+@@ -3,9 +3,10 @@
__revision__ = "$Id$"
-from sha import *
-+from hashlib import sha
- import sha
- if hasattr(sha, 'digestsize'):
- digest_size = digestsize
+-import sha
+-if hasattr(sha, 'digestsize'):
+- digest_size = digestsize
+- del digestsize
+-del sha
++import hashlib
++
++new = hashlib.sha1
++sha = hashlib.sha1
++
++blocksize = hashlib.sha1().block_size
++digest_size = hashlib.sha1().digest_size
+o
+
Index: python-crypto.spec
===================================================================
RCS file: /cvs/extras/rpms/python-crypto/devel/python-crypto.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- python-crypto.spec 7 Feb 2009 14:25:07 -0000 1.25
+++ python-crypto.spec 7 Feb 2009 18:01:43 -0000 1.26
@@ -4,12 +4,14 @@
Summary: Cryptography library for Python
Name: python-crypto
Version: 2.0.1
-Release: 15
+Release: 15.1
License: Public Domain
Group: Development/Libraries
# FIXME: In the near future, new releases will be at http://www.dlitz.net/software/pycrypto/
URL: http://www.amk.ca/python/code/crypto.html
Source: http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz
+Patch0: pycrypto-2.0.1-hashlib.patch
+
Provides: pycrypto = %{version}-%{release}
BuildRequires: python >= 2.2
BuildRequires: python-devel >= 2.2
@@ -26,6 +28,7 @@
%setup -n pycrypto-%{version} -q
sed -i s:/lib:/%_lib:g setup.py
+%patch0 -b .hashlib
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
@@ -63,6 +66,10 @@
%changelog
+* Sat Feb 7 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-15.1
+- Oops, actually apply the patch
+- Modify patch so modules remain compatible with PEP 247
+
* Sat Feb 7 2009 Stewart Adam <s.adam at diffingo.com> - 2.0.1-15
- Add patch to hashlib instead of deprecated md5 and sha modules (#484473)
- Previous message (by thread): rpms/kernel/devel patch-2.6.29-rc3-git11.bz2.sign, NONE, 1.1 .cvsignore, 1.1008, 1.1009 config-generic, 1.235, 1.236 kernel.spec, 1.1273, 1.1274 sources, 1.970, 1.971 upstream, 1.882, 1.883 linux-2.6.29-btrfs-readdir-fix.patch, 1.1, NONE linux-2.6.29-btrfs-selinux.patch, 1.1, NONE linux-2.6.29-btrfs-setxattr-fix.patch, 1.1, NONE patch-2.6.29-rc3-git10.bz2.sign, 1.1, NONE
- Next message (by thread): rpms/elisa/devel .cvsignore, 1.11, 1.12 elisa.spec, 1.14, 1.15 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list