From: Sven Hoexter Date: Mon, 22 Sep 2014 16:13:00 +0000 (+0200) Subject: Merge tag 'upstream/3.052' X-Git-Tag: debian/3.052-1~6 X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fmysqltcl.git;a=commitdiff_plain;h=ef0160440ef423857ed8496d6384f24e5130822f;hp=0a085bb35433261a474838231960d8ee3dc31d5c Merge tag 'upstream/3.052' Upstream version 3.052 --- diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..3d5f55c --- /dev/null +++ b/debian/README.source @@ -0,0 +1,3 @@ +This package uses quilt to manage the patches in debian/patches. +For further information please install the quilt package and read +/usr/share/doc/quilt/README.source. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..95eafcf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,217 @@ +mysqltcl (3.051-1) unstable; urgency=low + + * New upstream release - adds a -reconnect option. + + Refresh all patches. + * Increment Standards-Version to 3.9.3 - no changes required. + + -- Sven Hoexter Mon, 21 May 2012 19:26:33 +0200 + +mysqltcl (3.05-7) experimental; urgency=low + + * Temporarily build-depend on libmysqlclient-dev (>= 5.5.17) to + ensure that we really build against the new libmysqlclient in + experimental. + + -- Sven Hoexter Sat, 26 Nov 2011 13:22:02 +0100 + +mysqltcl (3.05-6) experimental; urgency=low + + * Apply a small patch (forwarded from Ubuntu!) to debian/rules adding + --with-mysql-lib so that mysqltcl will work with a multiarch + libmysqlclient. (Closes: #650053) + * Include /usr/share/dpkg/buildflags.mk and use DPKG_EXPORT_BUILDFLAGS + in debian/rules. Add dpkg-dev (>= 1.16.1) to build-depends. + + -- Sven Hoexter Sat, 26 Nov 2011 09:57:34 +0100 + +mysqltcl (3.05-5) unstable; urgency=low + + * Add debian/patches/tcl.m4_gnu_non_linux_ld_settings, patch provided + by Pino Toscano (thanks!), to fix the FTBFS on GNU/Hurd. Since we've + the same problem on GNU/kfreebsd it will fix those FTBFS too. + (Closes: #624378) + * Add build-dep on dh-autoreconf and add --with autoreconf for dh. + * Add debian/patches/man-hyphen-and-spelling to fix some smaller issue + with the manpage flagged by lintian. + + -- Sven Hoexter Thu, 28 Apr 2011 09:52:33 +0200 + +mysqltcl (3.05-4) unstable; urgency=low + + * According to dev-ref 6.2.2 the short description is no sentence so + we should start in lowercase letters. + * Change maintainer address to hoexter@d.o. + * Update VCS-* information in debian/control to the new git repository. + * Convert to dh: + + Build-Depend on debhelper (>= 8). + + Increase compat level to 8. + + Shorten debian/rules to the bare essentials. + + Override dh_makeshlibs call to add tcltk-depends. + * Increase Standards-Version to 3.9.2, no changes required. + * Add ${misc:Depends} to the binary package. + * Add debian/source/format -> 1.0. + * Add a watch file (giving up ...). + + -- Sven Hoexter Wed, 27 Apr 2011 19:26:39 +0200 + +mysqltcl (3.05-3) unstable; urgency=low + + * Move to section 'database' to fit the archive wide overrides. + + -- Sven Hoexter Wed, 05 Aug 2009 20:54:28 +0200 + +mysqltcl (3.05-2) unstable; urgency=low + + * Update debian/copyright with information about tests/all.tcl and + tclconfig/tcl.m4. Thanks to Ondrej Certik for noting it during a + package review. + * Bump Standards-Version to 3.8.2 + + Added a README.source. + * Add a short description to the man-section patch. + * Stretch the long description a bit with footage from the manpage. + (Noted by Ondrej Certik) + * Build-Dep on libmysqlclient-dev now that MySQL 5.1 is default. + + -- Sven Hoexter Tue, 04 Aug 2009 16:11:16 +0200 + +mysqltcl (3.05-1) unstable; urgency=low + + * New upstream release + + Bugfixes for mysql5 handling multiple result queries. + + -- Sven Hoexter Sun, 25 May 2008 11:30:10 +0200 + +mysqltcl (3.04-2) unstable; urgency=low + + * Re-add --with-tcl and --with-tclinclude. + + -- Sven Hoexter Thu, 14 Feb 2008 08:19:13 +0100 + +mysqltcl (3.04-1) unstable; urgency=low + + * New upstream release with + + Fix for mysql 5. + + Checking of mysql::state parameter length fixed. + * Standards-Version: 3.7.3 - no changes required. + * Changed compat to 5, Build-Depend on debhelper >> 5. + * Moved the homepage to the new Homepage field. + * Build-Depend now on tcl-dev instead of tcl8.4-dev. + * Use tcltk-depends to depend on the right Tcl version. + * Switched to use quilt to manage the patches. + * Added Vcs-Svn field to debian/control. + * Reworked debian/rules partly to make it a little bit clearer. + * Adopt the new Tcl/Tk policy and move the lib into /usr/lib/tcltk. + * Changed mysql to MySQL in the description. Thanks to Sergei and + lintian. + + -- Sven Hoexter Wed, 13 Feb 2008 21:03:46 +0100 + +mysqltcl (3.02-1) unstable; urgency=low + + * New upstream release + * Changed Standards-Version to 3.7.2 + + -- Sven Hoexter Sun, 7 May 2006 17:53:25 +0200 + +mysqltcl (3.01-2) unstable; urgency=low + + * ACK Luk Claes NMU (Closes: #359296, #343784, #353920). + * Added the mysqltcl Homepage to the control file. + * Changed Standards-Version to 3.6.2 + * Changed from DH_COMPAT 3 to DH_COMPAT 4 and moved it from rules + into the compat file. Build-Depends on debhelper >> 4 + * Build as a normal package with .diff.gz (closes: #353919) + * Removed the dot from the end of the synopsis line in control + * Edited the manpage to fit in section 3 + * Removed debian/dirs - everything we need is auto created + * Removed install-bin-binaries from Makefile.in so that we do not + create the empty bin directory in the package + * Removed commented out dh_* commands from rules + * Added myself as the current maintainer in the copyright and control file + * David N. Welton agreed that I take over the + maintenance of this package. + + -- Sven Hoexter Mon, 10 Apr 2006 16:17:32 +0200 + +mysqltcl (3.01-1.1) unstable; urgency=high + + * Non-maintainer upload. + * Fix syntax error in tcl.m4 (Closes: #353920). + * Upgrade build depends to libmysqlclient15-dev (Closes: #343784). + + -- Luk Claes Mon, 27 Mar 2006 19:55:25 +0200 + +mysqltcl (3.01-1) unstable; urgency=low + + * New upstream release. + * mysqltcl: New upstream release available (v2.50) + * mysqltcl: Typo results in: Tcl_Release couldn't find reference + + -- David N. Welton Sun, 30 Oct 2005 17:59:39 +0100 + +mysqltcl (2.30-3) unstable; urgency=low + + * Recompile against libmysqlclient12. Enable threads in Tcl configure. + + -- David N. Welton Fri, 28 Jan 2005 15:55:33 +0100 + +mysqltcl (2.30-2) unstable; urgency=low + + * Fixed problem with directories. + + -- David N. Welton Sat, 30 Aug 2003 13:27:31 +0200 + +mysqltcl (2.30-1) unstable; urgency=low + + * New upstream release + + -- David N. Welton Sat, 26 Jul 2003 12:50:47 +0200 + +mysqltcl (2.12-1) unstable; urgency=low + + * New upstream release. + + -- David N. Welton Wed, 26 Mar 2003 02:19:04 -0800 + +mysqltcl (2.1-1) unstable; urgency=low + + * New upstream release. + + -- David N. Welton Mon, 9 Dec 2002 13:48:03 -0800 + +mysqltcl (2.0rc11-5) unstable; urgency=low + + * Updated config.guess and config.sub from /usr/share/misc. Let's hope + this time it works. Auto* sucks. (closes: #131058) + + -- David N. Welton Fri, 1 Feb 2002 15:08:30 +0100 + +mysqltcl (2.0rc11-4) unstable; urgency=low + + * Updated config.guess and config.sub from ftp.gnu.org. + * (closes: #125964) + + -- David N. Welton Wed, 2 Jan 2002 14:06:02 +0100 + +mysqltcl (2.0rc11-3) unstable; urgency=low + + * Added dependencies on mysql and tcl -dev packages. + * (closes: #121368) + + -- David N. Welton Tue, 18 Dec 2001 23:30:28 +0100 + +mysqltcl (2.0rc11-2) unstable; urgency=low + + * Created package. (closes: #119129) + + * Added man page. + + -- David N. Welton Mon, 12 Nov 2001 13:33:19 +0100 + +mysqltcl (2.0rc11-1) unstable; urgency=low + + * Initial Release. + + -- David N. Welton Sun, 11 Nov 2001 15:25:08 +0100 + + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8cb5846 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: mysqltcl +Section: database +Priority: optional +Maintainer: Sven Hoexter +Build-Depends: debhelper (>= 8), dpkg-dev (>= 1.16.1), tcl-dev, + libmysqlclient-dev (>=5.5.17), quilt, dh-autoreconf +Standards-Version: 3.9.3 +Homepage: http://www.xdobry.de/mysqltcl/ +Vcs-Git: git://git.sven.stormbind.net/git/sven/mysqltcl.git +Vcs-Browser: http://git.sven.stormbind.net/?p=sven/mysqltcl.git + + +Package: mysqltcl +Architecture: any +Depends: ${shlibs:Depends}, ${tclsh:Depends}, ${misc:Depends} +Description: interface to the MySQL database for the Tcl language + The mysqltcl package provides a Tcl interface to the MySQL database system. + Within Tcl you've a range of Tcl commands and a global Tcl array available + to access the database server. + Written in C mysqltcl uses the official MySQL C-API so that almost all + Tcl commands correspond to MySQL C-API functions. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..88a3a78 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,83 @@ +This package was debianized by David N. Welton on +Sun, 11 Nov 2001 15:25:08 +0100. + +The current Debian maintainer is Sven Hoexter + +It was downloaded from http://www.xdobry.de/mysqltcl/ + +Upstream Authors: Tobias Ritzau , Artur Trzewik + +Copyright: + +Most of the sourcecode falls under the following license: + +/* + * Copyright (c) 1994, 1995 Hakan Soderstrom and Tom Poindexter + * + * Permission to use, copy, modify, distribute, and sell this software + * and its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice and this permission notice + * appear in all copies of the software and related documentation. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL HAKAN SODERSTROM OR SODERSTROM PROGRAMVARUVERKSTAD + * AB BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL + * DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS + * OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY + * OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN + * CONNECTON WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + + + +The following files have a different license: +tests/all.tcl +tclconfig/tcl.m4 + + Copyright (c) 1998-2000 by Scriptics Corporation. + Copyright (c) 1999-2000 Ajuba Solutions. + Copyright (c) 2002-2005 ActiveState Corporation + +This software is copyrighted by the Regents of the University of +California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState +Corporation and other parties. The following terms apply to all files +associated with the software unless explicitly disclaimed in +individual files. + +The authors hereby grant permission to use, copy, modify, distribute, +and license this software and its documentation for any purpose, provided +that existing copyright notices are retained in all copies and that this +notice is included verbatim in any distributions. No written agreement, +license, or royalty fee is required for any of the authorized uses. +Modifications to this software may be copyrighted by their authors +and need not follow the licensing terms described here, provided that +the new terms are clearly indicated on the first page of each file where +they apply. + +IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY +FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY +DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE +IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE +NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR +MODIFICATIONS. + +GOVERNMENT USE: If you are acquiring this software on behalf of the +U.S. government, the Government shall have only "Restricted Rights" +in the software and related documentation as defined in the Federal +Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you +are acquiring the software on behalf of the Department of Defense, the +software shall be classified as "Commercial Computer Software" and the +Government shall have only "Restricted Rights" as defined in Clause +252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the +authors grant the U.S. Government and others acting in its behalf +permission to use and distribute the software in accordance with the +terms specified in this license. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..1a83401 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +README +README-msqltcl diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..57b8354 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +doc/*.n diff --git a/debian/patches/man-hyphen-and-spelling b/debian/patches/man-hyphen-and-spelling new file mode 100644 index 0000000..ed01d35 --- /dev/null +++ b/debian/patches/man-hyphen-and-spelling @@ -0,0 +1,141 @@ +Fix some smaller issue in the manpage brought up by lintian. +Mostly hyphen-as-minus and two spelling issue. +--- a/doc/mysqltcl.n ++++ b/doc/mysqltcl.n +@@ -358,17 +358,17 @@ The port number for the TCP/IP connectio + The socket or named pipe for the connection. + .TP + \fB-encoding\fR \fIencodingname\fR +-The option works similar to -encoding option in fconfigure. It support also +-special encoding name binary. By option -binary no converting will be done be reading or writing to/from MySQL. ++The option works similar to \-encoding option in fconfigure. It support also ++special encoding name binary. By option \-binary no converting will be done be reading or writing to/from MySQL. + If option is not set the system encoding (see utf-8) is used. + Please test all input and outputs with another program to check that all + is the way you expect it. If option binary is not used the system procedures + Tcl_ExternalToUtfDString (writing) and Tcl_ExternalToUtf (reading) will be used + by option binary the function Tcl_GetByteArrayFromObj and Tcl_NewByteArrayObj are used. +-If you want to manipulate binary date use -encoding binary. By handling textes set your ++If you want to manipulate binary date use \-encoding binary. By handling textes set your + special encoding that you want to use in your database. Consider what another system access the + database and what encoding they expect. It can useful +-to use -encoding utf-8. That is standard encoding in some linux distributions and newer systems. ++to use \-encoding utf-8. That is standard encoding in some linux distributions and newer systems. + .TP + \fB-compress\fR \fIboolean\fR + Use compression protocol. Default is false +@@ -404,23 +404,23 @@ Switch to SSL after handshake. Default i + .TP + \fB-sslkey\fR \fIstring\fR + is the pathname to the key file. +-Used if -ssl is true ++Used if \-ssl is true + .TP + \fB-sslcert\fR \fIstring\fR + is the pathname to the certificate file. +-Used if -ssl is true ++Used if \-ssl is true + .TP + \fB-sslca\fR \fIstring\fR + is the pathname to the certificate authority file. +-Used if -ssl is true ++Used if \-ssl is true + .TP + \fB-sslcapath\fR \fIstring\fR + is the pathname to a directory that contains trusted SSL CA certificates in pem format. +-Used if -ssl is true ++Used if \-ssl is true + .TP + \fB-sslcipher\fR \fIstring\fR + is a list of allowable ciphers to use for SSL encryption. +-Used if -ssl is true ++Used if \-ssl is true + .TP + \fB-reconnect\fR \fIboolean\fR + default is false. +@@ -466,9 +466,9 @@ is useful for scanning with a single \fI + Example: + .nf + +-% ::mysql::sel $db "SELECT ID, NAME FROM FRIENDS" -list ++% ::mysql::sel $db "SELECT ID, NAME FROM FRIENDS" \-list + {1 Joe} {2 Phil} {3 John} +-% ::mysql::sel $db "SELECT ID, NAME FROM FRIENDS" -flatlist ++% ::mysql::sel $db "SELECT ID, NAME FROM FRIENDS" \-flatlist + {1 Joe 2 Phil 3 John} + + .fi +@@ -482,7 +482,7 @@ Note that both list syntaxes are faster + + .fi + If \fIsql-statement\fR is a valid MySQL statement, but not a SELECT +-statement, the command returns -1 after executing the statement, or an empty ++statement, the command returns \-1 after executing the statement, or an empty + string if \fI-list\fR or \fI-flatlist\fR is specified. + There is no pending result in this case. + .sp +@@ -566,7 +566,7 @@ The first variable in the binding list i + the row, and so on. + The variables are created in the current context (if they do not + already exist). +-A variable name begining with a hyphen is not bound; it serves as a ++A variable name beginning with a hyphen is not bound; it serves as a + placeholder in the binding list. + If there are more columns than variables the extra columns are + ignored. +@@ -616,7 +616,7 @@ This command can be faster as using of : + very big resultset will not overload client machine. + The scipt should process the result immadiatly because + it can block table (or tables) for another clients. +-If performance matter please test all alternatives separatly. ++If performance matter please test all alternatives separately. + You must consider two aspects: memory consumption and performance. + .TP + \fB::mysql::seek\fR \fIhandle\fR \fIrow-index\fR +@@ -628,8 +628,8 @@ Row index 0 is the position just before + row index 1 is the position just before the second row, and so + on. + You may specify a negative row index. +-Row index -1 is the position just before the last row; +-row index -2 is the position just before the second last row, ++Row index \-1 is the position just before the last row; ++row index \-2 is the position just before the second last row, + and so on. + An out-of-bounds row index will cause ::mysql::seek to set the new current + position either just before the first row (if the index is too negative), +@@ -716,7 +716,7 @@ name lname area phone + % ::mysql::col $db friends {name type length} + {fname char 12} {lname char 20} {area char 5} {phone char 12} + % ::mysql::sel $db {select * from friends} +-% ::mysql::col $db -current name type length ++% ::mysql::col $db \-current name type length + {fname lname area phone} {char char char char} {12 20 5 12}] + + .fi +@@ -895,7 +895,7 @@ Rollback the current transaction. + .TP + \fB::mysql::nextresult\fR \fIhandle\fR + If more query results exist, mysql::nextresult() reads the next query results and returns the status back to application. +-returns -1 if no result or number of rows in the result set. ++returns \-1 if no result or number of rows in the result set. + .TP + \fB::mysql::moreresult\fR \fIhandle\fR + Returns true if more results exist from the currently executed query, and the application must call mysql::result to fetch the results. +@@ -930,7 +930,7 @@ if {[mysql::isnull $row]} { + create new null object. It can be used to simulate returned row contents. + .TP + \fB::mysql::setserveroption\fR \fIhandle\fR \fIoption\fR +-there are only 2 options now: -multi_statment_on and -multi_statment_off ++there are only 2 options now: \-multi_statment_on and \-multi_statment_off + .TP + \fB::mysql::shutdown\fR \fIhandle\fR + Asks the database server to shut down. The connected user must have SHUTDOWN privileges. +@@ -954,7 +954,7 @@ All conflicts also generate a Tcl error. + All MySQL server conflicts set mysqlstatus(code) to the numeric + code of the MySQL error. + .sp +-Any other conflict sets mysqlstatus(code) to -1. ++Any other conflict sets mysqlstatus(code) to \-1. + .TP + command + The last failing mysqltcl command. diff --git a/debian/patches/man-section b/debian/patches/man-section new file mode 100644 index 0000000..5941b5d --- /dev/null +++ b/debian/patches/man-section @@ -0,0 +1,12 @@ +This patch adds a proper section to the mysqltcl manpage. +--- a/doc/mysqltcl.n ++++ b/doc/mysqltcl.n +@@ -237,7 +237,7 @@ Database Class: \\fB\\$3\\fR + .de UL + \\$1\l'|0\(ul'\\$2 + .. +-.TH "mysqltcl" n 3.0 "" ++.TH "mysqltcl" 3 3.0 "" + .BS + .SH NAME + mysqltcl \- MySQL server access commands for Tcl diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..3ea4a5c --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +man-section +tcl.m4_gnu_non_linux_ld_settings +man-hyphen-and-spelling diff --git a/debian/patches/tcl.m4_gnu_non_linux_ld_settings b/debian/patches/tcl.m4_gnu_non_linux_ld_settings new file mode 100644 index 0000000..f398156 --- /dev/null +++ b/debian/patches/tcl.m4_gnu_non_linux_ld_settings @@ -0,0 +1,27 @@ +Fix incomplete linker settings in tcl.m4 on non Linux +but GNU systems which are not detected correctly. +This is a problem on Debian GNU/kfreebsd and GNU/Hurd. +Patch provided by Pino Toscano . +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624378 + +To take effect we've to run autoreconf after the patch +is applied. + +Forwarded upstream on 28.04.2011 via email. +--- a/tclconfig/tcl.m4 ++++ b/tclconfig/tcl.m4 +@@ -1475,11 +1475,11 @@ dnl AC_CHECK_TOOL(AR, ar) + SHLIB_SUFFIX=".so" + + SHLIB_LD="${CC} -shared" +- DL_OBJS="" ++ DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="$LDFLAGS -Wl,--export-dynamic" +- CC_SEARCH_FLAGS="" +- LD_SEARCH_FLAGS="" ++ CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ++ LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + if test "`uname -m`" = "alpha" ; then + CFLAGS="$CFLAGS -mieee" + fi diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..571e38b --- /dev/null +++ b/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +%: + dh $@ --with quilt,autoreconf + +override_dh_auto_configure: + dh_auto_configure -- \ + --prefix=/usr \ + --enable-threads \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-tcl=/usr/lib \ + --with-tclinclude=/usr/include/tcl \ + --with-mysql-lib=/usr/lib/$(DEB_HOST_MULTIARCH) + +override_dh_auto_install: + dh_auto_install --destdir=$(CURDIR)/debian/mysqltcl + + mkdir $(CURDIR)/debian/mysqltcl/usr/lib/tcltk + mv $(CURDIR)/debian/mysqltcl/usr/lib/mysqltcl* \ + $(CURDIR)/debian/mysqltcl/usr/lib/tcltk + rm -rf \ + $(CURDIR)/debian/mysqltcl/usr/share/man/mann \ + $(CURDIR)/debian/mysqltcl/usr/bin \ + $(CURDIR)/debian/mysqltcl/usr/include + +override_dh_makeshlibs: + dh_makeshlibs + tcltk-depends diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..7d0ec8c --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.xdobry.de/mysqltcl/mysqltcl-([\d\.]+).tar.gz