aboutsummaryrefslogtreecommitdiff
path: root/python/mock/mock.SlackBuild
diff options
context:
space:
mode:
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 35f595a61316f..49a29091b0008 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