diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-04-08 18:30:51 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-15 10:26:29 +0200 |
commit | bc27ab6eb8eaf519f4989578e219ff3c3e729488 (patch) | |
tree | 83d00863b6e1db0734d6e04be5a30f1b853cccae /libraries | |
parent | e21fe6b59ecb3d38a6f71966dca5c8204703915c (diff) |
libraries/gdata: Updated for version 2.0.9.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/gdata/deprecated_sha.patch | 21 | ||||
-rw-r--r-- | libraries/gdata/gdata.SlackBuild | 7 | ||||
-rw-r--r-- | libraries/gdata/gdata.info | 8 |
3 files changed, 6 insertions, 30 deletions
diff --git a/libraries/gdata/deprecated_sha.patch b/libraries/gdata/deprecated_sha.patch deleted file mode 100644 index 7c52b337e1a43..0000000000000 --- 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 4ce36156920a2..1f052f044c8e7 100644 --- a/libraries/gdata/gdata.SlackBuild +++ b/libraries/gdata/gdata.SlackBuild @@ -5,7 +5,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> 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 7fcd38a0adb7b..707968ce8a702 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" |