diff options
author | Arn0 <yth@ythogtha.org> | 2023-07-04 15:15:34 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-05 23:46:28 +0700 |
commit | ca1de4da512dbe960c4b60b43e58738eae6dd6e6 (patch) | |
tree | 458ecff6a733b043a88f5b89d7da87980d50c401 /development/zope.sqlalchemy | |
parent | 476f39ad3de2c416a2ccf90a571bea04f37000b5 (diff) |
development/zope.sqlalchemy: updated for version 3.0 Python3. New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/zope.sqlalchemy')
-rw-r--r-- | development/zope.sqlalchemy/zope.sqlalchemy.SlackBuild | 58 | ||||
-rw-r--r-- | development/zope.sqlalchemy/zope.sqlalchemy.info | 12 |
2 files changed, 34 insertions, 36 deletions
diff --git a/development/zope.sqlalchemy/zope.sqlalchemy.SlackBuild b/development/zope.sqlalchemy/zope.sqlalchemy.SlackBuild index ee27e47fddd5..6304adf96bf6 100644 --- a/development/zope.sqlalchemy/zope.sqlalchemy.SlackBuild +++ b/development/zope.sqlalchemy/zope.sqlalchemy.SlackBuild @@ -1,17 +1,32 @@ #!/bin/bash -# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST -# Copyright 2009 Eric Hameleers <alien@slackware.com>, Eindhoven, Netherlands # Slackware build script for zope.sqlalchemy # Written by Lionel Young <redtricycle@gmail.com> - -# Based on http://slackbuilds.org/template.SlackBuild +# Copyright 2023 Yth | Pont-en-Royans, France | yth@ythogtha.org +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zope.sqlalchemy -VERSION=${VERSION:-0.4} +VERSION=${VERSION:-3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -36,21 +51,7 @@ 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 +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -60,21 +61,18 @@ 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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -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 {} \; -python setup.py build || exit 1 -python setup.py install --root=$PKG || exit 1 +python3 setup.py install --root=$PKG -find $PKG | xargs 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ -CHANGES.txt CREDITS.txt README.txt \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/zope.sqlalchemy/zope.sqlalchemy.info b/development/zope.sqlalchemy/zope.sqlalchemy.info index ecb2aa028870..3f9a38c80cf1 100644 --- a/development/zope.sqlalchemy/zope.sqlalchemy.info +++ b/development/zope.sqlalchemy/zope.sqlalchemy.info @@ -1,10 +1,10 @@ PRGNAM="zope.sqlalchemy" -VERSION="0.4" +VERSION="3.0" HOMEPAGE="https://pypi.python.org/pypi/zope.sqlalchemy" -DOWNLOAD="https://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-0.4.tar.gz" -MD5SUM="245885dc0923fa36216386867cf450ae" +DOWNLOAD="https://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-3.0.tar.gz" +MD5SUM="410a9656971d93f7f193b08f4726b327" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Lionel Young" -EMAIL="redtricycle@gmail.com" +REQUIRES="SQLAlchemy python3-transaction" +MAINTAINER="Yth - Arnaud" +EMAIL="yth@ythogtha.org" |