summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/python3-crank/README (renamed from python/crank/README)0
-rw-r--r--python/python3-crank/python3-crank.SlackBuild (renamed from python/crank/crank.SlackBuild)14
-rw-r--r--python/python3-crank/python3-crank.info (renamed from python/crank/crank.info)2
-rw-r--r--python/python3-crank/slack-desc (renamed from python/crank/slack-desc)24
4 files changed, 19 insertions, 21 deletions
diff --git a/python/crank/README b/python/python3-crank/README
index 9afdaa1776..9afdaa1776 100644
--- a/python/crank/README
+++ b/python/python3-crank/README
diff --git a/python/crank/crank.SlackBuild b/python/python3-crank/python3-crank.SlackBuild
index dbf25cfc22..455c6c0ce1 100644
--- a/python/crank/crank.SlackBuild
+++ b/python/python3-crank/python3-crank.SlackBuild
@@ -22,7 +22,8 @@
cd $(dirname $0) ; CWD=$(pwd)
-PRGNAM=crank
+PRGNAM=python3-crank
+SRCNAM=${PRGNAM#python3-*}
VERSION=${VERSION:-0.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,9 +54,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -63,10 +64,7 @@ find -L . \
\( -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 install --root=$PKG
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.rst $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/python/crank/crank.info b/python/python3-crank/python3-crank.info
index 1f2b626080..bd072bf6fb 100644
--- a/python/crank/crank.info
+++ b/python/python3-crank/python3-crank.info
@@ -1,4 +1,4 @@
-PRGNAM="crank"
+PRGNAM="python3-crank"
VERSION="0.8.1"
HOMEPAGE="https://github.com/TurboGears/crank"
DOWNLOAD="https://pypi.python.org/packages/source/c/crank/crank-0.8.1.tar.gz"
diff --git a/python/crank/slack-desc b/python/python3-crank/slack-desc
index f133750a26..9916ebdf49 100644
--- a/python/crank/slack-desc
+++ b/python/python3-crank/slack-desc
@@ -5,15 +5,15 @@
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
- |-----handy-ruler------------------------------------------------------|
-crank: crank (Python module)
-crank:
-crank: Generalized Object based Dispatch mechanism for use across frameworks
-crank:
-crank:
-crank:
-crank:
-crank:
-crank:
-crank:
-crank:
+ |-----handy-ruler------------------------------------------------------|
+python3-crank: python3-crank (Python module)
+python3-crank:
+python3-crank: Generalized Object based Dispatch mechanism for use across frameworks
+python3-crank:
+python3-crank:
+python3-crank:
+python3-crank:
+python3-crank:
+python3-crank:
+python3-crank:
+python3-crank: