summaryrefslogtreecommitdiff
path: root/python/python-netaddr/python-netaddr.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-02-13 22:16:29 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-16 01:33:44 +0700
commitabfe622e009ecd7b85a2b1c9c5e98a5cf1f99f18 (patch)
treeb671da4098cc6ada205cc2151f2d3fbdf5300bde /python/python-netaddr/python-netaddr.SlackBuild
parent2e3436c9b772fcc8e1c453e858d81ed074bb5dc2 (diff)
downloadslackbuilds-abfe622e009ecd7b85a2b1c9c5e98a5cf1f99f18.tar.gz
python/python-netaddr: Updated for version 0.7.18
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'python/python-netaddr/python-netaddr.SlackBuild')
-rw-r--r--python/python-netaddr/python-netaddr.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/python/python-netaddr/python-netaddr.SlackBuild b/python/python-netaddr/python-netaddr.SlackBuild
index 160e798d2b..deaff20ec7 100644
--- a/python/python-netaddr/python-netaddr.SlackBuild
+++ b/python/python-netaddr/python-netaddr.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python-netaddr
-# Copyright 2013-2014 Christoph Willing, Australia
+# Copyright 2013-2016 Christoph Willing, Brisbane Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,13 @@
PRGNAM=python-netaddr
SRC_PRGNAM=netaddr
-VERSION=${VERSION:-0.7.11}
+VERSION=${VERSION:-0.7.18}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,7 +63,6 @@ cd $TMP
rm -rf $SRC_PRGNAM-$VERSION
tar xvf $CWD/$SRC_PRGNAM-$VERSION.tar.gz
cd $SRC_PRGNAM-$VERSION
-patch -p0 < $CWD/01_use_setuptools.diff
if [ ${NEWDATA:-no} = "yes" ]; then
echo 'downloading latest IEEE data'
@@ -84,7 +83,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-python setup.py install --root=$PKG
+python setup_egg.py install --root=$PKG
PYTHONPATH="build/lib" sphinx-build -b html docs/source docs/html
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -92,7 +91,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/html \
- AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE README REFERENCES THANKS \
+ AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE README* REFERENCES THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild