summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-07-17 21:13:33 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-17 21:13:33 +0700
commitbaa3c3ce5efb8c83ad6b9261848782e0a0dc67be (patch)
tree75ab68465bca4a202833303cb248a99a2ea6d04f
parentd1193dcdaf2fc523b76e6856073e760254ea05a1 (diff)
downloadslackbuilds-baa3c3ce5efb8c83ad6b9261848782e0a0dc67be.tar.gz
python/python-urllib3: Updated for version 1.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python-urllib3/python-urllib3.SlackBuild15
-rw-r--r--python/python-urllib3/python-urllib3.info6
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=""