aboutsummaryrefslogtreecommitdiff
path: root/python/python3-gmpy2/python3-gmpy2.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-10-18 09:03:22 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-22 13:03:40 +0700
commit42d0ebfae01eec591933d051717cf1b1a8d8d777 (patch)
tree50b20166872bf4edc8efa12c3ad2e9aabed53d97 /python/python3-gmpy2/python3-gmpy2.SlackBuild
parent9eb284a07388bb7b1ff6ebcb34f4a629dc03a804 (diff)
python/python3-gmpy2: Updated for version 2.1.0rc1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 \