--- tora-1.3.13.orig/debian/changelog
+++ tora-1.3.13/debian/changelog
@@ -1,3 +1,105 @@
+tora (1.3.13-1.backports.org.1) unstable; urgency=low
+
+  * recompiled for http://www.backports.org/
+    + removed libqt3-compat-headers and kdelibs4-dev from build-dependencies
+    + used libqt3-mt-{psql|mysql|odbc} instead of libqt3c102-mt-{psql|mysql|odbc} as
+      dependency
+
+ -- Norbert Tretkowski <tretkowski@inittab.de>  Thu, 04 Mar 2004 00:25:56 +0100
+
+tora (1.3.13-2) unstable; urgency=low
+
+  * Added icon, improved capitalization of menu entry.
+
+ -- Michael Meskes <meskes@debian.org>  Mon, 01 Mar 2004 11:30:15 +0100
+
+tora (1.3.13-1) unstable; urgency=low
+
+  * New upstream version 
+
+ -- Michael Meskes <meskes@debian.org>  Sun, 15 Feb 2004 10:47:47 +0100
+
+tora (1.3.12-1) unstable; urgency=low
+
+  * New upstream version 
+
+ -- Michael Meskes <meskes@debian.org>  Tue, 21 Oct 2003 19:13:32 +0200
+
+tora (1.3.11-1) unstable; urgency=low
+
+  * New upstream version 
+  * Moved help files from /usr/lib to /usr/share
+
+ -- Michael Meskes <meskes@debian.org>  Sun, 31 Aug 2003 12:15:51 +0200
+
+tora (1.3.9.2-3) unstable; urgency=low
+
+  * Removed full screen opening (closes: #167590)
+  * Added patch from CVS so changed values are saved.
+  * Added my patches to doc/
+
+ -- Michael Meskes <meskes@debian.org>  Sun, 15 Jun 2003 14:31:11 +0200
+
+tora (1.3.9.2-2) unstable; urgency=low
+
+  * Include qobjectlist.h instead of qobjcoll.h (closes: #181522)
+  * Include qt3-compat-headers in Build-Depends until kdelibs4-dev is fixed
+  * Made sure qt3-mt is used (closes: #183063)
+
+ -- Michael Meskes <meskes@debian.org>  Mon, 24 Feb 2003 14:31:50 +0100
+
+tora (1.3.9.2-1) unstable; urgency=low
+
+  * New upstream version
+  * Compiled against new libqt3 (closes: #181091)
+
+ -- Michael Meskes <meskes@debian.org>  Mon, 17 Feb 2003 00:56:12 +0100
+
+tora (1.3.8-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Michael Meskes <meskes@debian.org>  Fri, 11 Oct 2002 09:09:50 +0200
+
+tora (1.3.7-4) unstable; urgency=low
+
+  * Fixed dependancy to list -mt qt3 modules (closes: #154259)
+  * Added several fixes to compiler warnings from CVS.
+
+ -- Michael Meskes <meskes@debian.org>  Sun,  1 Sep 2002 11:44:46 +0200
+
+tora (1.3.7-3) unstable; urgency=low
+
+  * Added compiler optimization (closes: #159036).
+  
+ -- Michael Meskes <meskes@debian.org>  Sun,  1 Sep 2002 11:44:46 +0200
+tora (1.3.7-2) unstable; urgency=low
+
+  * Fixed Built-Depends to note that qt 3.0.5 or greater is needed
+    (closes: #156420).
+
+ -- Michael Meskes <meskes@debian.org>  Mon, 12 Aug 2002 18:07:51 +0200
+ 
+tora (1.3.7-1) unstable; urgency=low
+
+  * New upstream version.
+  * Compiled against libqt3 3.0.5 which should fix missing connection provider
+    problem (closes: #154259).
+
+ -- Michael Meskes <meskes@debian.org>  Mon, 12 Aug 2002 13:57:08 +0200
+tora (1.3.6.1-2) unstable; urgency=low
+
+  * Changed Suggests to Depends as tora won't work without a database
+    connector. (closes: #152251)
+
+ -- Michael Meskes <meskes@debian.org>  Sun, 14 Jul 2002 09:54:07 +0200
+
+tora (1.3.6.1-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Michael Meskes <meskes@debian.org>  Fri,  5 Jul 2002 12:29:52 +0200
+
 tora (1.3.6-1) unstable; urgency=low
 
   * New upstream version.
@@ -10,7 +112,6 @@
   * New upstream version with several minor bugfixes
 
  -- Michael Meskes <meskes@debian.org>  Fri, 19 Apr 2002 10:32:16 +0200
-
 
 tora (1.3.5-1) unstable; urgency=low
 
--- tora-1.3.13.orig/debian/control
+++ tora-1.3.13/debian/control
@@ -2,14 +2,13 @@
 Section: misc
 Priority: optional
 Maintainer: Michael Meskes <meskes@debian.org>
-Build-Depends: debhelper (>> 3.0.0), libqt3-dev, g++, libqt3-mt-dev
+Build-Depends: debhelper (>> 3.0.0), g++, libqt3-dev, libqt3-mt-dev
 Standards-Version: 3.5.2
 
 Package: tora
 Architecture: any
-Depends: ${shlibs:Depends}
-Suggests: libqt3-psql|libqt3-odbc|libqt3-mysql
-Description: A graphical toolkit for database developers and administrators.
+Depends: ${shlibs:Depends}, libqt3-mt-psql | libqt3-mt-odbc | libqt3-mt-mysql
+Description: A graphical toolkit for database developers and administrators
  Tora features a schema browser, SQL worksheet, PL/SQL editor & debugger,
  storage manager, rollback segment monitor, instance manager, and SQL output
  viewer. Via qt3 it can access PostgreSQL and MySQL directly. Any other
--- tora-1.3.13.orig/debian/copyright
+++ tora-1.3.13/debian/copyright
@@ -3,9 +3,9 @@
 
 It was downloaded from http://www.globecom.net/tora/
 
-Upstream Author(s): Henrik Johnson <tora@underscore.se>
+Upstream Author: Henrik Johnson <tora@underscore.se>
 
-Copyright: Toolkit for Oracle is Copyright (C) 2003 Quest Software, Inc
+Copyright: Toolkit for Oracle is Copyright (C) 2000-2001,2001 Underscore AB
 and distributed under the GNU General Public License.
 
 On Debian GNU/Linux systems, a copy of the GNU GPL can be found in
--- tora-1.3.13.orig/debian/dirs
+++ tora-1.3.13/debian/dirs
@@ -1,2 +1,4 @@
 usr/bin
 usr/lib
+usr/share/tora
+usr/share/pixmaps
--- tora-1.3.13.orig/debian/docs
+++ tora-1.3.13/debian/docs
@@ -2,3 +2,4 @@
 NEWS
 README
 TODO
+debian/debian.patch
--- tora-1.3.13.orig/debian/menu
+++ tora-1.3.13/debian/menu
@@ -1,2 +1,3 @@
 ?package(tora):needs=X11 section=Apps/Databases\
-  title="tora" command="/usr/bin/tora" 
+  title="TOra" command="/usr/bin/tora"\
+  icon=/usr/share/pixmaps/tora.xpm
--- tora-1.3.13.orig/debian/rules
+++ tora-1.3.13/debian/rules
@@ -22,7 +22,7 @@
 	dh_testdir
 
 	# Add here commands to compile the package.
-	$(MAKE)
+	$(MAKE) CFLAGS_GLOB="-O2 -W -g -fPIC -Wall -Wno-unused"
 	#/usr/bin/docbook-to-man debian/tora.sgml > tora.1
 
 	touch build-stamp
@@ -49,6 +49,9 @@
 	-install --owner root --group root --mode=644 help/images/* $(CURDIR)/debian/tora/usr/lib/tora/help/images
 	-mv $(CURDIR)/debian/tora/usr/bin/tora $(CURDIR)/debian/tora/usr/lib/tora/tora.real
 	-install --owner root --group root --mode=755 debian/tora.wrapper $(CURDIR)/debian/tora/usr/bin/tora
+	-mv $(CURDIR)/debian/tora/usr/lib/tora/help $(CURDIR)/debian/tora/usr/share/tora
+	(cd $(CURDIR)/debian/tora/usr/lib/tora; ln -s ../../share/tora/help . )
+	install -c -m 644 icons/tora.xpm $(CURDIR)/debian/tora/usr/share/pixmaps
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -70,7 +73,6 @@
 #	dh_installcron
 #	dh_installman
 	dh_installinfo
-	dh_undocumented tora.1
 	dh_installchangelogs 
 	dh_link
 	dh_strip
@@ -78,6 +80,7 @@
 #	since the shared libs are named .tso we have to strip them manually
 #
 	strip --strip-unneeded --remove-section=.comment --remove-section=.note `pwd`/debian/tora/usr/lib/tora/*.tso
+	chmod 644 `pwd`/debian/tora/usr/lib/tora/*.tpl
 	dh_compress
 	dh_fixperms
 #	dh_makeshlibs
--- tora-1.3.13.orig/debian/debian.patch
+++ tora-1.3.13/debian/debian.patch
@@ -0,0 +1,36 @@
+diff --exclude debian -ruN configure.pl configure.pl
+--- configure.pl	2003-08-09 15:35:27.000000000 +0200
++++ configure.pl	2003-08-31 12:09:08.000000000 +0200
+@@ -269,7 +269,7 @@
+ my $QtLibOrig;
+ my $QtLibShared;
+ my $QtLibStatic;
+-my $QtSearch="libqt(?:-mt)?";
++my $QtSearch="libqt-mt";
+ my $StdCppLibStatic;
+ my $LFlags;
+ my $Target="tora-mono";
+diff --exclude debian -ruN toglobalsetting.cpp toglobalsetting.cpp
+--- toglobalsetting.cpp	2003-08-09 15:35:27.000000000 +0200
++++ toglobalsetting.cpp	2003-08-31 12:09:08.000000000 +0200
+@@ -81,7 +81,7 @@
+   HistorySize->setValue(toTool::globalConfig(CONF_STATUS_SAVE,
+ 					     DEFAULT_STATUS_SAVE).toInt());
+   IncludeDB->setChecked(!toTool::globalConfig(CONF_DB_TITLE,"Yes").isEmpty());
+-  MaximizeMain->setChecked(!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"Yes").isEmpty());
++  MaximizeMain->setChecked(!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"").isEmpty());
+   Statusbar->setChecked(!toTool::globalConfig(CONF_MESSAGE_STATUSBAR,"").isEmpty());
+   RestoreSession->setChecked(!toTool::globalConfig(CONF_RESTORE_SESSION,"").isEmpty());
+   HelpDirectory->setText(toHelpPath());
+diff --exclude debian -ruN tomain.cpp tomain.cpp
+--- tomain.cpp	2003-08-09 15:35:27.000000000 +0200
++++ tomain.cpp	2003-08-31 12:10:27.000000000 +0200
+@@ -506,7 +506,7 @@
+     } TOCATCH
+   }
+ 
+-  if (!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"Yes").isEmpty()&&Connections.size()==0)
++  if (!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"").isEmpty()&&Connections.size()==0)
+     showMaximized();
+   else
+     show();
--- tora-1.3.13.orig/configure.pl
+++ tora-1.3.13/configure.pl
@@ -270,7 +270,7 @@
 my $QtLibOrig;
 my $QtLibShared;
 my $QtLibStatic;
-my $QtSearch="libqt(?:-mt)?";
+my $QtSearch="libqt-mt";
 my $StdCppLibStatic;
 my $LFlags;
 my $Target="tora-mono";
--- tora-1.3.13.orig/toglobalsetting.cpp
+++ tora-1.3.13/toglobalsetting.cpp
@@ -81,7 +81,7 @@
   HistorySize->setValue(toTool::globalConfig(CONF_STATUS_SAVE,
 					     DEFAULT_STATUS_SAVE).toInt());
   IncludeDB->setChecked(!toTool::globalConfig(CONF_DB_TITLE,"Yes").isEmpty());
-  MaximizeMain->setChecked(!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"Yes").isEmpty());
+  MaximizeMain->setChecked(!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"").isEmpty());
   Statusbar->setChecked(!toTool::globalConfig(CONF_MESSAGE_STATUSBAR,"").isEmpty());
   RestoreSession->setChecked(!toTool::globalConfig(CONF_RESTORE_SESSION,"").isEmpty());
   HelpDirectory->setText(toHelpPath());
--- tora-1.3.13.orig/tomain.cpp
+++ tora-1.3.13/tomain.cpp
@@ -506,7 +506,7 @@
     } TOCATCH
   }
 
-  if (!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"Yes").isEmpty()&&Connections.size()==0)
+  if (!toTool::globalConfig(CONF_MAXIMIZE_MAIN,"").isEmpty()&&Connections.size()==0)
     showMaximized();
   else
     show();
