rpms/python-crypto/devel pycrypto-2.0.1-hashlib.patch, NONE, 1.1 python-crypto.spec, 1.24, 1.25
Stewart Adam
firewing at fedoraproject.org
Sat Feb 7 14:25:37 UTC 2009
- Previous message (by thread): rpms/NetworkManager/devel .cvsignore, 1.92, 1.93 NetworkManager.spec, 1.253, 1.254 sources, 1.128, 1.129
- Next message (by thread): rpms/NetworkManager/F-10 NetworkManager.spec, 1.250, 1.251 nm-system-settings.conf, 1.1, 1.2 sources, 1.128, 1.129
- 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-serv15191/devel
Modified Files:
python-crypto.spec
Added Files:
pycrypto-2.0.1-hashlib.patch
Log Message:
* 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)
pycrypto-2.0.1-hashlib.patch:
--- NEW FILE pycrypto-2.0.1-hashlib.patch ---
--- 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 @@
digestmod: A module supporting PEP 247. Defaults to the md5 module.
"""
if digestmod == None:
- import md5
+ from hashlib 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 @@
__revision__ = "$Id: MD5.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
-from md5 import *
+from hashlib import md5
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 @@
__revision__ = "$Id: SHA.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
-from sha import *
+from hashlib import sha
import sha
if hasattr(sha, 'digestsize'):
digest_size = digestsize
Index: python-crypto.spec
===================================================================
RCS file: /cvs/extras/rpms/python-crypto/devel/python-crypto.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- python-crypto.spec 29 Nov 2008 15:27:20 -0000 1.24
+++ python-crypto.spec 7 Feb 2009 14:25:07 -0000 1.25
@@ -4,9 +4,10 @@
Summary: Cryptography library for Python
Name: python-crypto
Version: 2.0.1
-Release: 14.1
+Release: 15
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
Provides: pycrypto = %{version}-%{release}
@@ -62,6 +63,9 @@
%changelog
+* 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)
+
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 2.0.1-14.1
- Rebuild for Python 2.6
- Previous message (by thread): rpms/NetworkManager/devel .cvsignore, 1.92, 1.93 NetworkManager.spec, 1.253, 1.254 sources, 1.128, 1.129
- Next message (by thread): rpms/NetworkManager/F-10 NetworkManager.spec, 1.250, 1.251 nm-system-settings.conf, 1.1, 1.2 sources, 1.128, 1.129
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list