aboutsummaryrefslogtreecommitdiff
path: root/python/pyrfc3339
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyrfc3339')
-rw-r--r--python/pyrfc3339/pyrfc3339.SlackBuild35
-rw-r--r--python/pyrfc3339/pyrfc3339.info6
2 files changed, 9 insertions, 32 deletions
diff --git a/python/pyrfc3339/pyrfc3339.SlackBuild b/python/pyrfc3339/pyrfc3339.SlackBuild
index 31e252b362..16c99f344c 100644
--- a/python/pyrfc3339/pyrfc3339.SlackBuild
+++ b/python/pyrfc3339/pyrfc3339.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pyrfc3339
-# Copyright 2015-2020 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2015-2025 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pyrfc3339
-SRCNAM=pyRFC3339
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +38,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
@@ -51,28 +47,14 @@ 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 \
@@ -80,12 +62,7 @@ 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 {} \;
-python setup.py install --root=$PKG
-
-# Python 3 support.
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python3 setup.py install --root=$PKG
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
diff --git a/python/pyrfc3339/pyrfc3339.info b/python/pyrfc3339/pyrfc3339.info
index 57080e2d59..607b307cbd 100644
--- a/python/pyrfc3339/pyrfc3339.info
+++ b/python/pyrfc3339/pyrfc3339.info
@@ -1,8 +1,8 @@
PRGNAM="pyrfc3339"
-VERSION="1.1"
+VERSION="2.0.1"
HOMEPAGE="https://pypi.python.org/pypi/pyRFC3339"
-DOWNLOAD="https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-1.1.tar.gz"
-MD5SUM="c829980738b8271b0179ffd0c41187b0"
+DOWNLOAD="https://files.pythonhosted.org/packages/f0/d2/6587e8ec3951cbd97c56333d11e0f8a3a4cb64c0d6ed101882b7b31c431f/pyrfc3339-2.0.1.tar.gz"
+MD5SUM="38e099b17fff4fbd0b2a18e13365aeeb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""