diff options
Diffstat (limited to 'python/werkzeug')
-rw-r--r-- | python/werkzeug/werkzeug.SlackBuild | 41 | ||||
-rw-r--r-- | python/werkzeug/werkzeug.info | 8 |
2 files changed, 18 insertions, 31 deletions
diff --git a/python/werkzeug/werkzeug.SlackBuild b/python/werkzeug/werkzeug.SlackBuild index 199363f350..5475a6e5f6 100644 --- a/python/werkzeug/werkzeug.SlackBuild +++ b/python/werkzeug/werkzeug.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for werkzeug -# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2022-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2013 Mohamed LYAHYAOUI <mlyahyaoui@gmail.com> # Copyright 2018-2020 Dominik Drobek <dominik.drobek (at) o2.pl> # All rights reserved. @@ -25,12 +25,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # 20220512 46and2: Updated version, new maintainer. +# 20230914 46and2: Updated version, change build process. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=werkzeug -SRCNAM=Werkzeug -VERSION=${VERSION:-2.1.2} +VERSION=${VERSION:-3.0.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -43,9 +43,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 @@ -55,42 +52,32 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +# relax version required +sed -i '/MarkupSafe/ s/2\.1\.1/2.0.1/' pyproject.toml -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG -print0 | xargs -0 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.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.rst LICENSE.txt PKG-INFO README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/python/werkzeug/werkzeug.info b/python/werkzeug/werkzeug.info index 2c3ca8e009..cb0def12e0 100644 --- a/python/werkzeug/werkzeug.info +++ b/python/werkzeug/werkzeug.info @@ -1,10 +1,10 @@ PRGNAM="werkzeug" -VERSION="2.1.2" +VERSION="3.0.3" HOMEPAGE="https://palletsprojects.com/p/werkzeug/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/w/werkzeug/Werkzeug-2.1.2.tar.gz" -MD5SUM="5835c8738b8081c53367cbcc5db8784c" +DOWNLOAD="https://files.pythonhosted.org/packages/source/w/werkzeug/werkzeug-3.0.3.tar.gz" +MD5SUM="5955ba99c1a7466660fa9445fbabf5e2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-build" MAINTAINER="fourtysixandtwo" EMAIL="fourtysixandtwo@sliderr.net" |