summaryrefslogtreecommitdiff
path: root/python/mock/mock.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2018-05-31 21:59:14 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-02 07:32:35 +0700
commit1d01a46b1931606bb4ae783c202374e9a292b16c (patch)
treef7a436bb66f7b30c24c9ccf8ff63d4bdc9c83726 /python/mock/mock.SlackBuild
parentc085480417652a283ff498f10cb2f684edbfe7cb (diff)
downloadslackbuilds-1d01a46b1931606bb4ae783c202374e9a292b16c.tar.gz
python/mock: Updated for version 2.0.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/mock/mock.SlackBuild')
-rw-r--r--python/mock/mock.SlackBuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/python/mock/mock.SlackBuild b/python/mock/mock.SlackBuild
index 35f595a613..49a29091b0 100644
--- a/python/mock/mock.SlackBuild
+++ b/python/mock/mock.SlackBuild
@@ -1,6 +1,9 @@
#!/bin/sh
-# Slackware build script for mock.
+# Slackware build script for mock
+
+# Created by Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
+# Updated for version 2.0.0 by David Spencer <baildon.research@googlemail.com>
# Copyright 2011-2013 Markus Reichelt, Stolberg (Rhld.), DE
# All rights reserved.
@@ -22,16 +25,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
PRGNAM=mock
-VERSION=${VERSION:-1.0.1}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +44,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -67,9 +69,9 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python setup.py install --root=$PKG
@@ -78,7 +80,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- README.txt LICENSE.txt \
+ AUTHORS ChangeLog LICENSE.txt NEWS README.rst \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild