From baa3c3ce5efb8c83ad6b9261848782e0a0dc67be Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 17 Jul 2014 21:13:33 +0700 Subject: python/python-urllib3: Updated for version 1.9. Signed-off-by: Willy Sudiarto Raharjo --- python/python-urllib3/python-urllib3.SlackBuild | 15 +++++++++------ python/python-urllib3/python-urllib3.info | 6 +++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/python/python-urllib3/python-urllib3.SlackBuild b/python/python-urllib3/python-urllib3.SlackBuild index 58af51f7b0..f8263f655e 100644 --- a/python/python-urllib3/python-urllib3.SlackBuild +++ b/python/python-urllib3/python-urllib3.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for python-urllib3 # Copyright 2013 Thibaut Notteboom, Paris, FRANCE +# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,12 +24,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-urllib3 -VERSION=${VERSION:-1.7.1} +SRCNAM=$(echo $PRGNAM | cut -c8-14) +VERSION=${VERSION:-1.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=urllib3 - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -73,10 +73,13 @@ find -L . \ python setup.py install --root=$PKG +# Python 3 support. +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CHANGES.rst CONTRIBUTORS.txt LICENSE.txt MANIFEST.in PKG-INFO README.rst \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.rst *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/python-urllib3/python-urllib3.info b/python/python-urllib3/python-urllib3.info index 6f1acac408..a34dacdca1 100644 --- a/python/python-urllib3/python-urllib3.info +++ b/python/python-urllib3/python-urllib3.info @@ -1,8 +1,8 @@ PRGNAM="python-urllib3" -VERSION="1.7.1" +VERSION="1.9" HOMEPAGE="http://pypi.python.org/pypi/urllib3" -DOWNLOAD="http://pypi.python.org/packages/source/u/urllib3/urllib3-1.7.1.tar.gz" -MD5SUM="8b05bb2081379fe3c332542aa7c172f3" +DOWNLOAD="http://pypi.python.org/packages/source/u/urllib3/urllib3-1.9.tar.gz" +MD5SUM="e035f0ccbf37ac0e7c0ebbc190e666a1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3