[Python-modules-commits] r1029 - in
/packages/python-mysqldb/trunk/debian: ./ patches/
hertzog at users.alioth.debian.org
hertzog at users.alioth.debian.org
Fri Jun 23 20:18:01 UTC 2006
Author: hertzog
Date: Fri Jun 23 20:18:00 2006
New Revision: 1029
URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=1029
Log:
Load newtrunk into packages/python-mysqldb/trunk.
Added:
packages/python-mysqldb/trunk/debian/
packages/python-mysqldb/trunk/debian/changelog
packages/python-mysqldb/trunk/debian/control
packages/python-mysqldb/trunk/debian/copyright
packages/python-mysqldb/trunk/debian/patches/
packages/python-mysqldb/trunk/debian/patches/00list
packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch (with props)
packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch (with props)
packages/python-mysqldb/trunk/debian/python-mysqldb.postinst
packages/python-mysqldb/trunk/debian/python2.3-mysqldb.postinst
packages/python-mysqldb/trunk/debian/python2.3-mysqldb.prerm
packages/python-mysqldb/trunk/debian/python2.4-mysqldb.postinst
packages/python-mysqldb/trunk/debian/python2.4-mysqldb.prerm
packages/python-mysqldb/trunk/debian/rules (with props)
packages/python-mysqldb/trunk/debian/watch
Added: packages/python-mysqldb/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/changelog?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/changelog (added)
+++ packages/python-mysqldb/trunk/debian/changelog Fri Jun 23 20:18:00 2006
@@ -1,0 +1,331 @@
+python-mysqldb (1.2.1-p2-1) unstable; urgency=low
+
+ [ Jonas Meurer ]
+ * new upstream release (closes: #301419)
+ - update patches
+ * bump mysqlversion in debian/rules to 5.0.19
+ * set the maintainer to the debian python modules team
+ * relax dependency of python-mysqldb on python2.3-mysqldb
+ (closes: #361940, #358747)
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 12 Apr 2006 19:10:00 +0200
+
+python-mysqldb (1.2.1c3-6) unstable; urgency=low
+
+ * reconnect to lost connections even with mysql 5.x,
+ thanks to Dan Pascu <dan at ag-projects.com> for the patch.
+
+ -- Jonas Meurer <mejo at debian.org> Tue, 24 Jan 2006 13:24:21 +0100
+
+python-mysqldb (1.2.1c3-5) unstable; urgency=low
+
+ * rebuild against 5.0.16-1 (closes: #343802)
+ * set mysqlversion=5.0.16
+ * drop python2.2-mysqldb packages, as zope-mysqlda as last reverse
+ depend got removed from the archive
+
+ -- Jonas Meurer <mejo at debian.org> Sun, 18 Dec 2005 18:53:02 +0100
+
+python-mysqldb (1.2.1c3-4) unstable; urgency=low
+
+ * set mysqlversion=4.1.14 according to the version of mysql libs
+ we use to build
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 26 Oct 2005 17:57:47 +0200
+
+python-mysqldb (1.2.1c3-3) unstable; urgency=low
+
+ * rebuild against latest libmysqlclient14 with versioned symbols.
+ this fixes one half of the segfaults when python-mysqldb is used
+ by mod_python in apache with php4-mysql used by the same apache
+ at the same time. the other half has already been fixed by a new
+ php4 upload, also rebuilt against libmysqlclient14 with versioned
+ symbols. (closes: #333117)
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 26 Oct 2005 17:31:45 +0200
+
+python-mysqldb (1.2.1c3-2) unstable; urgency=low
+
+ * rebuild against mysql 4.1 (closes: #329753)
+ * remove patches/02_mysql_41: unused, obsolete
+ * bump standards-version to 3.6.2
+ * update fsf address
+
+ -- Jonas Meurer <mejo at debian.org> Mon, 26 Sep 2005 00:32:22 +0200
+
+python-mysqldb (1.2.1c3-1) unstable; urgency=low
+
+ * new upstream pre-release
+
+ -- Jonas Meurer <mejo at debian.org> Sat, 4 Jun 2005 03:12:12 +0200
+
+python-mysqldb (1.2.1c2-1) unstable; urgency=high
+
+ * new upstream release
+ * readd python 2.2 support to make zope-mysqlda happy again
+ * remove README.Debian, debian/python-mysqldb.doc-base:
+ this version doesn't ship any documentation except MySQLdb.txt
+ * urgency high to push fix for #306906 into sarge
+
+ -- Jonas Meurer <mejo at debian.org> Sun, 1 May 2005 17:53:26 +0200
+
+python-mysqldb (1.2.0-4) unstable; urgency=low
+
+ * rebuild with sources included
+
+ -- Jonas Meurer <mejo at debian.org> Sat, 26 Mar 2005 16:48:30 +0100
+
+python-mysqldb (1.2.0-3) unstable; urgency=low
+
+ * python2.4 packages are built (closes: #301402)
+ * remind scripts to ack NMU (closes: #299168, #297472)
+
+ -- Jonas Meurer <mejo at debian.org> Sat, 26 Mar 2005 02:29:33 +0100
+
+python-mysqldb (1.2.0-2) unstable; urgency=low
+
+ * fix bool convertion: patches/01_converters_boolean
+ - take boolean vars into account (closes: #300324)
+ - reintroduced dpatch in build scripts
+ * add build support for mysql 4.1: patches/02_mysql_41
+ - simply enable in patches/00list to build packages
+ with libmysqlclient14-dev from mysql-dfsg-4.1
+ - disabled by default to prevent segfaults if
+ used with mysql 4.0 libraries.
+
+ -- Jonas Meurer <mejo at debian.org> Fri, 25 Mar 2005 17:06:52 +0100
+
+python-mysqldb (1.2.0-1) unstable; urgency=low
+
+ * new upstream release
+ - add 2.4 to, remove 2.2 freom supported python versions,
+ MySQLdb-Python 1.2.0 doesn't support Python 2.2 any more.
+ - redesign documentation management as upstream ships a lot
+ more docs than in previous releases.
+ * Acknowledge NMU:
+ - rebuild against libmysqlclient12-dev (closes: #299168, #297472)
+
+ -- Jonas Meurer <mejo at debian.org> Fri, 25 Mar 2005 02:34:01 +0100
+
+python-mysqldb (1.1.6-1.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * High-urgency upload for sarge-targetted RC bugfix.
+ * Rebuild against libmysqlclient12-dev instead of libmysqlclient10-dev,
+ for compatibility with newer servers and to avoid segfaults when
+ other mysql-using apache modules are loaded together with mod-python
+ (closes: #299168).
+
+ -- Steve Langasek <vorlon at debian.org> Fri, 18 Mar 2005 02:47:59 -0800
+
+python-mysqldb (1.1.6-1) unstable; urgency=low
+
+ * new upstream release
+ * dropped patches/01_format_time: included in upstream
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 29 Sep 2004 19:13:46 +0200
+
+python-mysqldb (1.1.5-2) unstable; urgency=high
+
+ * removed "ssl crypto" compile options to actually build with
+ libmysqlclient10-dev from mysql 3.23.56 (closes: #272839)
+ * still urgency high because of #270555
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 22 Sep 2004 15:13:15 +0200
+
+python-mysqldb (1.1.5-1) unstable; urgency=high
+
+ * New upstream release
+ * Built with libmysqlclient10-dev (closes: #270555, #270570)
+ * Fixed rules to install maintainer scripts, rm install-stamp at clean
+ * Changed maintainer scripts for pythonPV-mysqldb to static ones
+ * Urgency high to push it into sarge, because of #270555
+
+ -- Jonas Meurer <mejo at debian.org> Tue, 21 Sep 2004 15:43:26 +0200
+
+python-mysqldb (1.1.4-1) unstable; urgency=low
+
+ * New upstream release
+ * fixed README.Debian, refering to docs in python-mysqldb, as they
+ aren't shipped with the python$PV-mysqldb packages.
+ (closes: #158355)
+
+ -- Jonas Meurer <mejo at debian.org> Wed, 15 Sep 2004 23:48:19 +0200
+
+python-mysqldb (1.1.3-1) unstable; urgency=low
+
+ * New Upstream Release 1.1.3
+ - Removes support for python2.1 (python2.2 isn't recommented as well)
+ - patch handled by upstream: 02_allow_stringified_timestamps
+ hope that the patch is superseeded, as this would add support for
+ MySQL 4.1 out of the box.
+ * Updated the package descriptions.
+ * cleaned up debian/rules:
+ - Moved exports in rules from build-python* to top
+ - removed quotes at var declarations
+ - changed from dynamical build for every configured python version to a
+ static one, to make build scripts more stable and avoid stupid bugs.
+ hopefully (closes: #270570, #270555)
+ - fixed sed usage, made package lintian clean
+ * fixed sed in postinst to work in woody (closes: #271013)
+ * fixed a small typo in the description of 2.3 package.
+
+ -- Jonas Meurer <mejo at debian.org> Mon, 13 Sep 2004 10:20:16 +0200
+
+python-mysqldb (1.0.0-1) unstable; urgency=low
+
+ * Overtook package, changed Maintainer field (closes: 255473)
+ * New Upstream Release (closes: #229678)
+ * Accept the NMUs (closes: #205344, #205654, #190655, #158357)
+ * changed build-depends to libmysqlclient-dev, license issues
+ have been resolved, see #242449 for further information.
+ * changed patch system to dpatch
+ * improved debian/rules
+ * some minor changes in maintainer scripts
+ * upgraded standards-version to 3.6.1.1
+ * added upstream changelog
+ * patches/02_allow_stringified_timestamps:
+ - Allow stringified timestamps. This is the default in MySQL 4.1
+ - this patch breaks package install for MySQL < 4.1, therefore
+ still disabled in binary, only build support added (closes: #185462)
+ * added debian/watch file
+
+ -- Jonas Meurer <mejo at debian.org> Fri, 13 Aug 2004 16:26:59 +0200
+
+python-mysqldb (0.9.2-0.4) unstable; urgency=low
+
+ * NMU
+ * Build for python2.3 as the default python version.
+ Closes: #205344, #205654.
+ * Change section to `python'.
+
+ -- Matthias Klose <doko at debian.org> Thu, 21 Aug 2003 23:53:29 +0200
+
+python-mysqldb (0.9.2-0.3) unstable; urgency=low
+
+ * Non-maintainer upload
+ * Fix conversion of datetime variables: times over 24 hours were
+ not converted properly. Closes: Bug#190655
+
+ -- Wichert Akkerman <wakkerma at debian.org> Fri, 25 Apr 2003 00:58:14 +0200
+
+python-mysqldb (0.9.2-0.2) unstable; urgency=low
+
+ * Build python2.3 packages.
+
+ -- Matthias Klose <doko at debian.org> Sat, 28 Sep 2002 14:14:25 +0200
+
+python-mysqldb (0.9.2-0.1) unstable; urgency=low
+
+ * New upstream version.
+ * Fix download location (closes: #158357).
+
+ -- Matthias Klose <doko at debian.org> Tue, 27 Aug 2002 09:15:24 +0200
+
+python-mysqldb (0.9.1-3) unstable; urgency=low
+
+ * Make the dependency on python2.1-mysqldb more strict.
+ * Build a package for python2.2 as well.
+
+ -- Gregor Hoffleit <flight at debian.org> Mon, 31 Dec 2001 13:03:16 +0100
+
+python-mysqldb (0.9.1-2) unstable; urgency=low
+
+ * Fix to postinst (fixes "Can't list
+ /usr/lib/python2.1/site-packages/extension" message).
+
+ -- Gregor Hoffleit <flight at debian.org> Thu, 27 Dec 2001 12:02:23 +0100
+
+python-mysqldb (0.9.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Gregor Hoffleit <flight at debian.org> Fri, 14 Dec 2001 15:59:48 +0100
+
+python-mysqldb (0.9.0-1.1) unstable; urgency=low
+
+ * NMU to adapt to draft python-policy (default is python2.1).
+ * Add zlib1g-dev to build dependencies (closes: #103913).
+ * Remove old .py[co] files left from old package (closes: #101483).
+
+ -- Matthias Klose <doko at debian.org> Fri, 2 Nov 2001 00:30:06 +0100
+
+python-mysqldb (0.9.0-1) unstable; urgency=low
+
+ * New upstream version (closes: 101224).
+ - now a true package.
+ - therefore some minor incompatibilities with earlier versions. They
+ won't hurt if you have sticked to the DB API.
+
+ * A FAQ is now included.
+ * examples have been removed (upstream).
+ * README.MySQLmodule is gone.
+
+ -- Gregor Hoffleit <flight at debian.org> Sun, 17 Jun 2001 23:14:39 +0200
+
+python-mysqldb (0.3.5-2) unstable; urgency=low
+
+ * Correct the dependencies of python2-mysqldb (closes: #92166).
+
+ -- Gregor Hoffleit <flight at debian.org> Fri, 30 Mar 2001 22:51:56 +0200
+
+python-mysqldb (0.3.5-1) unstable; urgency=high
+
+ * New upstream:
+ - fixes a typographical error which broke 0.3.4 badly
+ - also a fix for a long-standing bug in _mysql which caused it to not
+ work with Python 2.1b2
+ * Added back the documentation (from 0.3.3), which was somehow left out
+ in 0.3.4 and 0.3.5.
+ * Include all docs and examples in python2-mysqldb as well.
+
+ -- Gregor Hoffleit <flight at debian.org> Thu, 29 Mar 2001 16:32:51 +0200
+
+python-mysqldb (0.3.4-1) unstable; urgency=low
+
+ * New upstream version.
+ * New python2-mysqldb package, added python2-dev to build-dependencies.
+ * Docs have been removed...
+
+ -- Gregor Hoffleit <flight at debian.org> Sun, 25 Mar 2001 20:28:34 +0200
+
+python-mysqldb (0.3.3-1) unstable; urgency=low
+
+ * New upstream version.
+ * Added build-dependency on debhelper (closes: #84786).
+ * Cleanups in debian/rules.
+
+ -- Gregor Hoffleit <flight at debian.org> Sat, 17 Feb 2001 22:44:09 +0100
+
+python-mysqldb (0.3.0-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Gregor Hoffleit <flight at debian.org> Sat, 2 Dec 2000 11:29:03 +0100
+
+python-mysqldb (0.2.999b2-1) unstable; urgency=low
+
+ * New upstream version (is really 0.3.0b2), closes: #74752.
+ * Recompiled with libmysqlclient10-dev, built with python-distutils.
+ * Include dependency on python-base (closes: #68776).
+ * Author's email address and download location changed in copyright
+ file.
+ * Note that examples/dbtrainer0 is currently broken.
+
+ -- Gregor Hoffleit <flight at debian.org> Sat, 25 Nov 2000 10:50:34 +0100
+
+python-mysqldb (0.1.1-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Gregor Hoffleit <flight at debian.org> Wed, 20 Oct 1999 22:23:30 +0200
+
+python-mysqldb (0.1.0-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Gregor Hoffleit <flight at debian.org> Wed, 15 Sep 1999 14:07:55 +0200
+
+Local variables:
+mode: debian-changelog
+End:
Added: packages/python-mysqldb/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/control?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/control (added)
+++ packages/python-mysqldb/trunk/debian/control Fri Jun 23 20:18:00 2006
@@ -1,0 +1,50 @@
+Source: python-mysqldb
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Jonas Meurer <mejo at debian.org>
+Build-Depends: debhelper (>= 4.0), dpatch, python2.3-dev, python2.4-dev, libmysqlclient15-dev, zlib1g-dev
+Standards-Version: 3.6.2
+
+Package: python-mysqldb
+Architecture: all
+Depends: python (>= 2.3), python (<< 2.4), python2.3-mysqldb
+Suggests: python-egenix-mxdatetime
+Description: A Python interface to MySQL
+ MySQLdb is an interface to the popular MySQL database server for
+ Python. The design goals are:
+ .
+ + Compliance with Python database API version 2.0
+ + Thread-safety
+ + Thread-friendliness (threads will not block each other)
+ + Compatibility with MySQL-3.22 and later
+
+Package: python2.3-mysqldb
+Architecture: any
+Depends: ${shlibs:Depends}, python2.3
+Suggests: python2.3-egenix-mxdatetime, mysql-server-5.0 | mysql-server
+Description: A Python interface to MySQL
+ MySQLdb is an interface to the popular MySQL database server for
+ Python. The design goals are:
+ .
+ + Compliance with Python database API version 2.0
+ + Thread-safety
+ + Thread-friendliness (threads will not block each other)
+ + Compatibility with MySQL-3.22 and later
+ .
+ This is the Python 2.3 version of the package.
+
+Package: python2.4-mysqldb
+Architecture: any
+Depends: ${shlibs:Depends}, python2.4
+Suggests: python2.4-egenix-mxdatetime, mysql-server-5.0 | mysql-server
+Description: A Python interface to MySQL
+ MySQLdb is an interface to the popular MySQL database server for
+ Python. The design goals are:
+ .
+ + Compliance with Python database API version 2.0
+ + Thread-safety
+ + Thread-friendliness (threads will not block each other)
+ + Compatibility with MySQL-3.22 and later
+ .
+ This is the Python 2.4 version of the package.
Added: packages/python-mysqldb/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/copyright?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/copyright (added)
+++ packages/python-mysqldb/trunk/debian/copyright Fri Jun 23 20:18:00 2006
@@ -1,0 +1,25 @@
+This package was debianized by Gregor Hoffleit <flight at debian.org> on
+Wed, 15 Sep 1999 14:07:55 +0200.
+
+It was downloaded from http://sourceforge.net/projects/mysql-python
+
+Upstream Author: Andy Dustman <andy at dustman.net>
+
+Copyright:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2.1.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in `/usr/share/common-licenses/GPL'.
Added: packages/python-mysqldb/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/patches/00list?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/patches/00list (added)
+++ packages/python-mysqldb/trunk/debian/patches/00list Fri Jun 23 20:18:00 2006
@@ -1,0 +1,2 @@
+01_converters_boolean
+02_reconnect
Added: packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch (added)
+++ packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch Fri Jun 23 20:18:00 2006
@@ -1,0 +1,36 @@
+#! /bin/sh -e
+# 01_converters_boolean.dpatch by Jonas Meurer <mejo at debian.org>
+# (skeleton taken from 01_conffiles.patch from cdrtools package)
+#
+# All lines beginning with `## DP:' are a description of the patch.
+## DP: take boolean into account at converters.py
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+--- python-mysqldb-1.2.1-p2.orig/MySQLdb/converters.py
++++ python-mysqldb-1.2.1-p2/MySQLdb/converters.py
+@@ -163,5 +163,10 @@
+ except ImportError:
+ pass
+
+-
++try:
++ from types import BooleanType
++ def Bool2Str(s, d): return str(int(s))
++ conversions[BooleanType] = Bool2Str
++except ImportError:
++ pass
+
Propchange: packages/python-mysqldb/trunk/debian/patches/01_converters_boolean.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch (added)
+++ packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch Fri Jun 23 20:18:00 2006
@@ -1,0 +1,32 @@
+#! /bin/sh -e
+# 02_reconnect.dpatch by Dan Pascu <dan at ag-projects.com>
+#
+# All lines beginning with `## DP:' are a description of the patch.
+## DP: reconnect after connection is lost, even with mysql >= 5.0.3
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+
+exit 0
+
+ at DPATCH@
+--- python-mysqldb-1.2.1-p2.orig/_mysql.c
++++ python-mysqldb-1.2.1-p2/_mysql.c
+@@ -567,6 +567,8 @@
+ if (!conn) {
+ _mysql_Exception(self);
+ return -1;
++ } else {
++ conn->reconnect = 1;
+ }
+ /*
+ PyType_GenericAlloc() automatically sets up GC allocation and
Propchange: packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-mysqldb/trunk/debian/python-mysqldb.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/python-mysqldb.postinst?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/python-mysqldb.postinst (added)
+++ packages/python-mysqldb/trunk/debian/python-mysqldb.postinst Fri Jun 23 20:18:00 2006
@@ -1,0 +1,10 @@
+#! /bin/sh -e
+
+# remove old .py[co] files leftover from old package
+if [ -d /usr/lib/python1.5/site-packages/_mysql_const ]; then
+ rm -rf /usr/lib/python1.5/site-packages/_mysql_const
+fi
+
+#DEBHELPER#
+
+exit 0
Added: packages/python-mysqldb/trunk/debian/python2.3-mysqldb.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/python2.3-mysqldb.postinst?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/python2.3-mysqldb.postinst (added)
+++ packages/python-mysqldb/trunk/debian/python2.3-mysqldb.postinst Fri Jun 23 20:18:00 2006
@@ -1,0 +1,28 @@
+#! /bin/sh -e
+#
+# postinst script for Debian python packages.
+# Written 1998 by Gregor Hoffleit <flight at debian.org>.
+# Modified 2001 by Matthias Klose <doko at debian.org>
+# Modified 2004 by Jonas Meurer <jonas at freesources.org>
+
+
+PYTHON=python2.3
+DIRLIST="/usr/lib/$PYTHON/site-packages/MySQLdb"
+
+case "$1" in
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
+ for i in $DIRLIST ; do
+ /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
+ /usr/bin/$PYTHON /usr/lib/$PYTHON/compileall.py -q $i
+ done
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: packages/python-mysqldb/trunk/debian/python2.3-mysqldb.prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/python2.3-mysqldb.prerm?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/python2.3-mysqldb.prerm (added)
+++ packages/python-mysqldb/trunk/debian/python2.3-mysqldb.prerm Fri Jun 23 20:18:00 2006
@@ -1,0 +1,13 @@
+#! /bin/sh -e
+#
+# sample prerm script for Debian python packages.
+# Written 1998 by Gregor Hoffleit <flight at debian.org>.
+#
+
+PACKAGE=`basename $0 .prerm`
+
+dpkg -L $PACKAGE |
+ awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
+ xargs rm -f >&2
+
+#DEBHELPER#
Added: packages/python-mysqldb/trunk/debian/python2.4-mysqldb.postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/python2.4-mysqldb.postinst?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/python2.4-mysqldb.postinst (added)
+++ packages/python-mysqldb/trunk/debian/python2.4-mysqldb.postinst Fri Jun 23 20:18:00 2006
@@ -1,0 +1,28 @@
+#! /bin/sh -e
+#
+# postinst script for Debian python packages.
+# Written 1998 by Gregor Hoffleit <flight at debian.org>.
+# Modified 2001 by Matthias Klose <doko at debian.org>
+# Modified 2004 by Jonas Meurer <jonas at freesources.org>
+
+
+PYTHON=python2.4
+DIRLIST="/usr/lib/$PYTHON/site-packages/MySQLdb"
+
+case "$1" in
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
+ for i in $DIRLIST ; do
+ /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
+ /usr/bin/$PYTHON /usr/lib/$PYTHON/compileall.py -q $i
+ done
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: packages/python-mysqldb/trunk/debian/python2.4-mysqldb.prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/python2.4-mysqldb.prerm?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/python2.4-mysqldb.prerm (added)
+++ packages/python-mysqldb/trunk/debian/python2.4-mysqldb.prerm Fri Jun 23 20:18:00 2006
@@ -1,0 +1,13 @@
+#! /bin/sh -e
+#
+# sample prerm script for Debian python packages.
+# Written 1998 by Gregor Hoffleit <flight at debian.org>.
+#
+
+PACKAGE=`basename $0 .prerm`
+
+dpkg -L $PACKAGE |
+ awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
+ xargs rm -f >&2
+
+#DEBHELPER#
Added: packages/python-mysqldb/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/rules?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/rules (added)
+++ packages/python-mysqldb/trunk/debian/rules Fri Jun 23 20:18:00 2006
@@ -1,0 +1,91 @@
+#!/usr/bin/make -f
+#-*- makefile -*-
+
+export PACKAGE=python-mysqldb
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=4
+
+# Include dpatch stuff.
+include /usr/share/dpatch/dpatch.make
+
+# export some vars
+export mysqlversion=5.0.19
+export mysqlclient=mysqlclient_r
+export mysqloptlibs=ssl crypto
+
+PYTHON23 = /usr/bin/python2.3
+PYTHON24 = /usr/bin/python2.4
+
+build: build-stamp
+build-stamp: patch-stamp
+ dh_testdir
+
+ @echo "--- Compiling for python2.3"
+ $(PYTHON23) setup.py build
+
+ @echo "--- Compiling for python2.4"
+ $(PYTHON24) setup.py build
+
+ touch build-stamp
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ @echo "--- Cleaning"
+ rm -f build-stamp install-stamp
+ rm -rf build
+ find . -name "*.py[co]" -exec rm -f {} \;
+ dh_clean
+
+install: install-stamp
+install-stamp: build
+ dh_testdir
+ dh_testroot
+
+ @echo " -- Installing for python2.3"
+ $(PYTHON23) setup.py install --root `pwd`/debian/python2.3-mysqldb
+
+ @echo " -- Installing for python2.4"
+ $(PYTHON24) setup.py install --root `pwd`/debian/python2.4-mysqldb
+
+ @echo " -- Cleaning build from *.py[co] files"
+ -find debian -name '*.py[co]' | xargs -n 50 rm -f
+
+ touch install-stamp
+
+
+# Build architecture-independent files here.
+binary-indep:
+ dh_testdir -i
+ dh_testroot -i
+ dh_install -i
+ dh_installdocs -i README doc/MySQLdb.txt
+ dh_installchangelogs -i ChangeLog
+
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: install
+ dh_installdocs -a -A README doc/MySQLdb.txt
+ dh_installchangelogs -a ChangeLog
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
Propchange: packages/python-mysqldb/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: packages/python-mysqldb/trunk/debian/watch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-mysqldb/trunk/debian/watch?rev=1029&op=file
==============================================================================
--- packages/python-mysqldb/trunk/debian/watch (added)
+++ packages/python-mysqldb/trunk/debian/watch Fri Jun 23 20:18:00 2006
@@ -1,0 +1,2 @@
+version=2
+ftp://heanet.dl.sourceforge.net/m/my/mysql-python/MySQL-python-(.*)\.tar\.gz debian uupdate
More information about the Python-modules-commits
mailing list