python/python3-tempora: Updated for version 5.2.0.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2023-01-04 17:52:46 -07:00 committed by Willy Sudiarto Raharjo
parent 6f5e5defc1
commit 8788b12e29
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 9 additions and 15 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for python3-tempora # Slackware build script for python3-tempora
# Copyright 2022 fourtysixandtwo <fourtysixandtwo@sliderr.net> # Copyright 2022-23 fourtysixandtwo <fourtysixandtwo@sliderr.net>
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,12 +24,13 @@
# 20220908 46and2: Updated version. # 20220908 46and2: Updated version.
# -build process changed # -build process changed
# 20230104 46and2: Updated version, remove dep.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-tempora PRGNAM=python3-tempora
SRCNAM=$(echo $PRGNAM | sed "s/python3-//") SRCNAM=$(echo $PRGNAM | sed "s/python3-//")
VERSION=${VERSION:-5.1.0} VERSION=${VERSION:-5.2.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -42,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi 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 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0 exit 0
@ -79,17 +77,13 @@ cd $SRCNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -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 \ \( -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 {} \+
python3 -m build --no-isolation python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl python3 -m installer -d "$PKG" dist/*.whl
# installing tests to a subdir of your project might not conflict the toplevel, but
# don't do it anyway...
rm -r "$PKG"/usr/lib${LIBDIRSUFFIX}/python*/site-packages/${SRCNAM}/tests/
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -1,10 +1,10 @@
PRGNAM="python3-tempora" PRGNAM="python3-tempora"
VERSION="5.1.0" VERSION="5.2.0"
HOMEPAGE="https://github.com/jaraco/tempora" HOMEPAGE="https://github.com/jaraco/tempora"
DOWNLOAD="https://files.pythonhosted.org/packages/source/t/tempora/tempora-5.1.0.tar.gz" DOWNLOAD="https://files.pythonhosted.org/packages/source/t/tempora/tempora-5.2.0.tar.gz"
MD5SUM="f9954a8c3b091f9769eb7bbe0faddccf" MD5SUM="87fc0d99edd557323e61a16017707a8b"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="python3-jaraco.functools pytz" REQUIRES="python3-build python3-installer wheel pytz"
MAINTAINER="fourtysixandtwo" MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net" EMAIL="fourtysixandtwo@sliderr.net"