-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python/python3-json-logger: Update for 3.2.1
- Loading branch information
isaackwy
committed
Dec 18, 2024
1 parent
1db48d6
commit daf3030
Showing
2 changed files
with
13 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# Slackware build script for python3-json-logger | ||
|
||
# Copyright 2022-2023 Isaac Yu <[email protected]> | ||
# Copyright 2022-2024 Isaac Yu <[email protected]> | ||
# All rights reserved. | ||
# | ||
# Redistribution and use of this script, with or without modification, is | ||
|
@@ -25,7 +25,7 @@ | |
cd $(dirname $0) ; CWD=$(pwd) | ||
|
||
PRGNAM=python3-json-logger | ||
VERSION=${VERSION:-2.0.7} | ||
VERSION=${VERSION:-3.2.1} | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-_SBo} | ||
PKGTYPE=${PKGTYPE:-tgz} | ||
|
@@ -49,20 +49,6 @@ 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 | ||
|
@@ -78,13 +64,17 @@ find -L . \ | |
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ | ||
-o -perm 400 \) -exec chmod 644 {} \; | ||
|
||
python3 setup.py install --root=$PKG | ||
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') | ||
export PYTHONPATH=/opt/python$PYVER/site-packages | ||
|
||
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 CHANGELOG.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION | ||
cp -a docs/changelog.md docs/contributing.md README.md docs/security.md $PKG/usr/doc/$PRGNAM-$VERSION | ||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | ||
|
||
mkdir -p $PKG/install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
PRGNAM="python3-json-logger" | ||
VERSION="2.0.7" | ||
HOMEPAGE="https://github.com/madzak/python-json-logger" | ||
DOWNLOAD="https://github.com/madzak/python-json-logger/archive/v2.0.7/python-json-logger-2.0.7.tar.gz" | ||
MD5SUM="280d601aa6fad91cc0f1bf67e44522ab" | ||
VERSION="3.2.1" | ||
HOMEPAGE="https://github.com/nhairs/python-json-logger" | ||
DOWNLOAD="https://github.com/nhairs/python-json-logger/archive/v3.2.1/python-json-logger-3.2.1.tar.gz" | ||
MD5SUM="dd57f9cfeb7af11394b9522875a166ee" | ||
DOWNLOAD_x86_64="" | ||
MD5SUM_x86_64="" | ||
REQUIRES="" | ||
REQUIRES="python3-setuptools-opt python3-typing-extensions" | ||
MAINTAINER="Isaac Yu" | ||
EMAIL="[email protected]" |