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 3e01eb4902..55d4907194 100644
--- a/python/python3-gmpy2/python3-gmpy2.SlackBuild
+++ b/python/python3-gmpy2/python3-gmpy2.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for python3-gmpy2
+# Copyright 2025 Antonio Leal, Porto Salvo, Oeiras, Portugal
# Copyright 2019-2023, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
@@ -26,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-gmpy2
SRCNAM=gmpy2
-VERSION=${VERSION:-2.1.5}
+VERSION=${VERSION:-2.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -63,6 +64,8 @@ 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 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -70,7 +73,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
chmod 644 docs/*
-cp -a README docs $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst docs $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install