summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-05-08 07:36:58 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:25 -0500
commitbc04d974ab7a9b7ed240f880ba447d49ea3f8420 (patch)
treec92fa13d2f7a0da2a4c06f463a8712edebe7480d /development
parent11d0e8aa163fa48596960c0afe0e2d11aa65f0ec (diff)
downloadslackbuilds-bc04d974ab7a9b7ed240f880ba447d49ea3f8420.tar.gz
development/MySQL-python: Updated for version 1.2.3.
This commit also fixes dep info in README (rworkman) Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/MySQL-python/MySQL-python.SlackBuild7
-rw-r--r--development/MySQL-python/MySQL-python.info6
-rw-r--r--development/MySQL-python/README2
-rw-r--r--development/MySQL-python/docs.patch14
4 files changed, 22 insertions, 7 deletions
diff --git a/development/MySQL-python/MySQL-python.SlackBuild b/development/MySQL-python/MySQL-python.SlackBuild
index 190207434b..9b2ed4fcb1 100644
--- a/development/MySQL-python/MySQL-python.SlackBuild
+++ b/development/MySQL-python/MySQL-python.SlackBuild
@@ -5,7 +5,7 @@
# Written by Jick Nan (jick.nan@gmail.com)
PRGNAM=MySQL-python
-VERSION=1.2.3c1
+VERSION=1.2.3
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,13 +49,16 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# patch MANIFEST.in
+patch -p1 < $CWD/docs.patch
+
python setup.py install --root=$PKG
find $PKG | xargs 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 ChangeLog GPL HISTORY PKG-INFO README doc/*.txt \
+cp -a HISTORY PKG-INFO README doc/*.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/development/MySQL-python/MySQL-python.info b/development/MySQL-python/MySQL-python.info
index 9f40891649..e5402d05d1 100644
--- a/development/MySQL-python/MySQL-python.info
+++ b/development/MySQL-python/MySQL-python.info
@@ -1,8 +1,8 @@
PRGNAM="MySQL-python"
-VERSION="1.2.3c1"
+VERSION="1.2.3"
HOMEPAGE="http://cheeseshop.python.org/pypi/MySQL-python/"
-DOWNLOAD="http://downloads.sourceforge.net/mysql-python/MySQL-python-1.2.3c1.tar.gz"
-MD5SUM="310dd856e439d070b59ece6dd7a0734d"
+DOWNLOAD="http://downloads.sourceforge.net/mysql-python/MySQL-python-1.2.3.tar.gz"
+MD5SUM="215eddb6d853f6f4be5b4afc4154292f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="pysetuptools"
diff --git a/development/MySQL-python/README b/development/MySQL-python/README
index 545bf819fa..8241994ae6 100644
--- a/development/MySQL-python/README
+++ b/development/MySQL-python/README
@@ -8,5 +8,3 @@ The design goals are:
* Thread-friendliness (threads will not block each other)
MySQL-3.23 through 5.1 and Python-2.3 through 2.6 are currently supported.
-
-This requires the Python setuptools (pysetuptools on SlackBuilds.org).
diff --git a/development/MySQL-python/docs.patch b/development/MySQL-python/docs.patch
new file mode 100644
index 0000000000..9c624b3547
--- /dev/null
+++ b/development/MySQL-python/docs.patch
@@ -0,0 +1,14 @@
+--- MySQL-python-1.2.3/MANIFEST.in.orig 2010-11-20 17:45:00.000000000 +0100
++++ MySQL-python-1.2.3/MANIFEST.in 2010-11-20 17:45:30.000000000 +0100
+@@ -1,10 +1,8 @@
+ recursive-include doc *.txt
+ recursive-include tests *.py
+ include MANIFEST.in
+-include MANIFEST
+-include ChangeLog
+ include HISTORY
+-include GPL
++include README
+ include pymemcompat.h
+ include metadata.cfg
+ include site.cfg