From bc27ab6eb8eaf519f4989578e219ff3c3e729488 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Thu, 8 Apr 2010 18:30:51 -0400 Subject: libraries/gdata: Updated for version 2.0.9. --- libraries/gdata/deprecated_sha.patch | 21 --------------------- libraries/gdata/gdata.SlackBuild | 7 ++----- libraries/gdata/gdata.info | 8 ++++---- 3 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 libraries/gdata/deprecated_sha.patch diff --git a/libraries/gdata/deprecated_sha.patch b/libraries/gdata/deprecated_sha.patch deleted file mode 100644 index 7c52b337e1..0000000000 --- a/libraries/gdata/deprecated_sha.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Nur -x '*.orig' -x '*~' python-gdata-1.2.4/src/gdata/tlslite/utils/cryptomath.py python-gdata-1.2.4.new/src/gdata/tlslite/utils/cryptomath.py ---- python-gdata-1.2.4/src/gdata/tlslite/utils/cryptomath.py 2008-12-02 03:35:26.000000000 +0100 -+++ python-gdata-1.2.4.new/src/gdata/tlslite/utils/cryptomath.py 2009-05-19 00:44:00.000000000 +0200 -@@ -6,7 +6,7 @@ - import math - import base64 - import binascii --import sha -+import hashlib - - from compat import * - -@@ -195,7 +195,7 @@ - return int(math.ceil(bits / 8.0)) - - def hashAndBase64(s): -- return stringToBase64(sha.sha(s).digest()) -+ return stringToBase64(hashlib.sha1(s).digest()) - - def getBase64Nonce(numChars=22): #defaults to an 132 bit nonce - bytes = getRandomBytes(numChars) diff --git a/libraries/gdata/gdata.SlackBuild b/libraries/gdata/gdata.SlackBuild index 4ce3615692..1f052f044c 100644 --- a/libraries/gdata/gdata.SlackBuild +++ b/libraries/gdata/gdata.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali PRGNAM=gdata -VERSION=${VERSION:-2.0.6} +VERSION=${VERSION:-2.0.9} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -30,16 +30,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Replace deprecated sha variable with hashlib. -patch -p1 < $CWD/deprecated_sha.patch - python setup.py install --root=$PKG ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null + xargs strip --strip-unneeded 2> /dev/null || true ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/libraries/gdata/gdata.info b/libraries/gdata/gdata.info index 7fcd38a0ad..707968ce8a 100644 --- a/libraries/gdata/gdata.info +++ b/libraries/gdata/gdata.info @@ -1,10 +1,10 @@ PRGNAM="gdata" -VERSION="2.0.6" +VERSION="2.0.9" HOMEPAGE="http://code.google.com/p/gdata-python-client/" -DOWNLOAD="http://gdata-python-client.googlecode.com/files/gdata-2.0.6.tar.gz" -MD5SUM="6f6a4ee9765889e4aab5e2a6ece5188e" +DOWNLOAD="http://gdata-python-client.googlecode.com/files/gdata-2.0.9.tar.gz" +MD5SUM="447e6e1424ca9d7f0191a90d9e635133" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com" -APPROVED="Erik Hanson" +APPROVED="dsomero" -- cgit v1.2.3