From a4dc2e5d4cd439c5ae5b8d84b77c8b45e1372b09 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Mon, 2 Oct 2023 17:38:20 -0700 Subject: python/python3-soxr: Version bump to 0.3.6 Signed-off-by: Willy Sudiarto Raharjo --- python/python3-soxr/python3-soxr.SlackBuild | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'python/python3-soxr/python3-soxr.SlackBuild') diff --git a/python/python3-soxr/python3-soxr.SlackBuild b/python/python3-soxr/python3-soxr.SlackBuild index f02dd8dd89..6e24371cad 100644 --- a/python/python3-soxr/python3-soxr.SlackBuild +++ b/python/python3-soxr/python3-soxr.SlackBuild @@ -24,10 +24,10 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-soxr -VERSION=${VERSION:-0.2.4} +VERSION=${VERSION:-0.3.6} SOXRVER=${SOXRVER:-0.1.3} SRCNAM=${SRCNAM:-python-soxr} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -48,20 +48,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 @@ -82,10 +68,10 @@ find -L . \ export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION -# Fix builds on i686 and possibly arm +# Fix version importing when using setuptools_scm<7 # Thanks to dofuuz -# https://github.com/dofuuz/python-soxr/issues/17 -patch -p1 < $CWD/fix_arm_and_i686.patch +# https://github.com/dofuuz/python-soxr/issues/21 +sed -i 's/import __version__/import version as __version__/' src/soxr/__init__.py python3 setup.py install --root=$PKG -- cgit v1.2.3