diff options
Diffstat (limited to 'gis/OWSLib/OWSLib.SlackBuild')
-rw-r--r-- | gis/OWSLib/OWSLib.SlackBuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gis/OWSLib/OWSLib.SlackBuild b/gis/OWSLib/OWSLib.SlackBuild index fdc27f9965..afdb8084e9 100644 --- a/gis/OWSLib/OWSLib.SlackBuild +++ b/gis/OWSLib/OWSLib.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for OWSLib +# Copyright 2023-2024 Giancarlo Dessi, Cagliari, IT # Copyright 2013-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # @@ -25,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=OWSLib -VERSION=${VERSION:-0.24.1} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.30.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -78,6 +76,10 @@ find -L . \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +if [ -x /usr/bin/python3.11 ]; then + patch -p1 < $CWD/pytz-not-required.patch +fi python3 setup.py install --root=$PKG @@ -85,7 +87,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGES.rst LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS.rst LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |