aboutsummaryrefslogtreecommitdiff
path: root/python/python3-gmpy2/python3-gmpy2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-gmpy2/python3-gmpy2.SlackBuild')
-rw-r--r--python/python3-gmpy2/python3-gmpy2.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/python3-gmpy2/python3-gmpy2.SlackBuild b/python/python3-gmpy2/python3-gmpy2.SlackBuild
index 85b565879b..d4dcd6862c 100644
--- a/python/python3-gmpy2/python3-gmpy2.SlackBuild
+++ b/python/python3-gmpy2/python3-gmpy2.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-gmpy2
SRCNAM=gmpy2
-VERSION=${VERSION:-2.0.8}
+VERSION=${VERSION:-2.1.0rc1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -57,7 +57,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-unzip $CWD/$SRCNAM-$VERSION.zip
+tar xf $CWD/$SRCNAM-$VERSION.tar.?z
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -66,6 +66,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Symbols from the math library are also used
+sed -i "s/'mpfr','gmp'/&,'m'/" setup.py
+
python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \