--- qscintilla-1.7.1.orig/debian/rules
+++ qscintilla-1.7.1/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export QTDIR=/usr/share/qt3
+export QMAKESPEC=$(QTDIR)/mkspecs/linux-g++
+DOCDEST=$(CURDIR)/debian/tmp/usr/share/doc/libqscintilla-doc/html
+HEADERDEST=$(CURDIR)/debian/tmp/usr/include/qscintilla
+LIBSDEST=$(CURDIR)/debian/tmp/usr/lib
+TRANSDEST=$(CURDIR)/debian/tmp/$(QTDIR)/translations
+PLUGINDEST=$(CURDIR)/debian/tmp/usr/lib/qt3/plugins/designer
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	cd qt; qmake "DESTDIR=$(CURDIR)/tmplib"
+	cd designer; qmake
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+
+	install -d $(CURDIR)/tmplib
+	$(MAKE) -C qt
+	$(MAKE) -C designer
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	[ ! -f qt/Makefile ] || $(MAKE) -C qt clean
+	[ ! -f designer/Makefile ] || $(MAKE) -C designer clean
+	-find -name 'Makefile' -exec rm {} \;
+	-rm -rf tmplib
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	install -d $(HEADERDEST)/private
+	install -d $(DOCDEST)
+	install -d $(TRANSDEST)
+	install -d $(LIBSDEST)
+	install -d $(PLUGINDEST)
+	for i in qt/qextscintilla*.h; do install -m 644 $$i $(HEADERDEST); done
+	for i in include/*.h; do install -m 644 $$i $(HEADERDEST)/private; done
+	for i in doc/html/*; do install -m 644 $$i $(DOCDEST); done
+	for i in qt/*.qm; do install -m 644 $$i $(TRANSDEST); done
+	mv designer/*.so $(PLUGINDEST)
+	for i in tmplib/*; do mv $$i $(LIBSDEST); done
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_install -i --sourcedir=$(CURDIR)/debian/tmp
+	dh_installdocs -i
+	dh_installchangelogs -i ChangeLog
+	dh_link -i
+	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: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_install -a --sourcedir=$(CURDIR)/debian/tmp
+	dh_installdocs -a
+	dh_installchangelogs -a ChangeLog
+	dh_link -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a -V
+	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 install configure
--- qscintilla-1.7.1.orig/debian/copyright
+++ qscintilla-1.7.1/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by Ricardo Javier Cardenes Medina <rcardenes@debian.org> on
+Sun, 24 Nov 2002 05:09:21 +0000.
+
+It was downloaded from http://www.riverbankcomputing.co.uk
+
+Upstream Authors:
+
+  Scintilla:  Neil Hodgson <neilh@scintilla.org>
+  QScintilla: Phil Thompson <phil@riverbankcomputing.co.uk>
+
+Copyright:
+
+ Copyright 2005 by Riverbank Computing Limited <info@riverbankcomputing.co.uk>
+
+QScintilla is released under GPL version 2, or (at your option) any later
+version. You can read the full version of this license in your system at
+
+  /usr/share/common-licenses/GPL-2
+
+Scintilla comes with this license:
+
+ Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
+
+ All Rights Reserved
+
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation.
+
+ NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+ OR PERFORMANCE OF THIS SOFTWARE."
--- qscintilla-1.7.1.orig/debian/dirs
+++ qscintilla-1.7.1/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- qscintilla-1.7.1.orig/debian/control
+++ qscintilla-1.7.1/debian/control
@@ -0,0 +1,42 @@
+Source: qscintilla
+Section: libs
+Priority: optional
+Maintainer: Ricardo Javier Cardenes Medina <rcardenes@debian.org>
+Uploaders: Torsten Marek <shlomme@debian.org>
+Build-Depends: debhelper (>> 5.0.0), libqt3-mt-dev (>= 3:3.3.4-4), qt3-dev-tools (>= 3:3.3.4-4)
+Standards-Version: 3.7.2
+
+Package: libqscintilla7
+Section: libs
+Architecture: any
+Replaces: libqscintilla6
+Depends: ${shlibs:Depends}
+Description: Qt source code editing component based on Scintilla
+ Scintilla is a free source code editing component. It has features found
+ in standard editing components, as well as features especially useful
+ when editing and debugging source code.
+ .
+ QScintilla is a port or Scintilla to the Qt GUI toolkit.
+
+Package: libqscintilla-dev
+Section: libdevel
+Architecture: all
+Depends: libqscintilla7 (>= ${source:Version})
+Description: Qt source code editing component - development files
+ Scintilla is a free source code editing component. It has features found
+ in standard editing components, as well as features especially useful
+ when editing and debugging source code.
+ .
+ QScintilla is a port of Scintilla to the Qt GUI toolkit. These are the
+ development files (headers and static libs).
+
+Package: libqscintilla-doc
+Section: doc
+Architecture: all
+Suggests: libqscintilla-dev
+Description: Qt source code editing component - documentation
+ Scintilla is a free source code editing component. It has features found
+ in standard editing components, as well as features especially useful
+ when editing and debugging source code.
+ .
+ This package contain HTML files describing QScintilla classes.
--- qscintilla-1.7.1.orig/debian/libqscintilla7.install
+++ qscintilla-1.7.1/debian/libqscintilla7.install
@@ -0,0 +1,3 @@
+usr/lib/*.so.*
+usr/lib/qt3/plugins/designer/*.so
+usr/share/qt3/translations/*.qm
--- qscintilla-1.7.1.orig/debian/libqscintilla-dev.install
+++ qscintilla-1.7.1/debian/libqscintilla-dev.install
@@ -0,0 +1,2 @@
+usr/include
+usr/lib/*.so
--- qscintilla-1.7.1.orig/debian/compat
+++ qscintilla-1.7.1/debian/compat
@@ -0,0 +1 @@
+5
--- qscintilla-1.7.1.orig/debian/changelog
+++ qscintilla-1.7.1/debian/changelog
@@ -0,0 +1,196 @@
+qscintilla (1.7.1-2) unstable; urgency=low
+
+  * Make QScintilla binNMU-safe (Closes: #406041)
+
+ -- Torsten Marek <shlomme@debian.org>  Tue, 07 Aug 2007 23:59:33 +0200
+
+qscintilla (1.7.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Torsten Marek <shlomme@debian.org>  Mon, 07 May 2007 21:07:07 +0200
+
+qscintilla (1.7-1) experimental; urgency=low
+
+  * New upstream release
+  * Bumped the soname
+  * Raise debhelper compatibility level to 5
+  * Updated standards version to 3.7.2
+  * Changed my email address to debian.org address
+
+ -- Torsten Marek <shlomme@debian.org>  Wed,  6 Dec 2006 20:16:40 +0100
+
+qscintilla (1.6-2) unstable; urgency=low
+
+  * Conflicts with libqscintilla5 (Closes: #327334)
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun, 25 Sep 2005 00:43:33 +0100
+
+qscintilla (1.6-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated standards version to 3.6.2
+  * Bumped the soname, the package is libqscintilla6 now
+  * g++ ABI transition (Closes: #325973)
+
+ -- Torsten Marek <shlomme@gmx.net>  Thu,  1 Sep 2005 00:40:47 +0200
+
+qscintilla (1.5.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Bumped the soname, the package is libqscintilla5 now
+  * translations are now installed, too
+  * added the Qt designer plugin
+  * added myself to Uploaders: field
+
+ -- Torsten Marek <shlomme@gmx.net>  Sun,  6 Mar 2005 23:27:36 +0100
+
+qscintilla (1.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Bumped the soname, so there's libqscintilla3 no more.
+    It's libqscintilla4 now.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sat, 19 Jun 2004 03:30:48 +0100
+
+qscintilla (1.2-6) unstable; urgency=low
+
+  * Removed the translation file, because it clashes with the
+    next version (libqscintilla4) while I decide how I fix
+    that.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sat, 19 Jun 2004 03:14:21 +0100
+
+qscintilla (1.2-5) unstable; urgency=low
+
+  * Ensured that the build process installs the libs on a proper
+    place, and then move it to the package.
+    Closes: Bug#248776
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Wed, 16 Jun 2004 18:07:32 +0100
+
+qscintilla (1.2-4) unstable; urgency=low
+
+  * Dropped "ChangeLog" from "docs". dh_installchangelogs will place 
+    (and name) it the right way.
+    Closes: Bug#217161
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Fri, 29 Aug 2003 17:00:57 +0100
+
+qscintilla (1.2-3) unstable; urgency=low
+
+  * The "dumbest Debian Developer ever" release. Of course, I uploaded
+    only the .debs of 1.2-2, so the builder will REJECT them because
+    there are no source package at all (1.2-1 got REJECTed because I
+    asked for it).
+    Now, _this_ upload includes full sources.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Fri, 22 Aug 2003 03:10:05 +0100
+
+qscintilla (1.2-2) unstable; urgency=low
+
+  * Changed package name to libqscintilla3. The soname has been changed.
+    I (again) uploaded and then found the change. Shame on me.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Tue, 19 Aug 2003 15:14:10 +0100
+
+qscintilla (1.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Mon, 18 Aug 2003 23:17:40 +0100
+
+qscintilla (1.1-2) unstable; urgency=low
+
+  * Added to include/private some headers needed at QScintilla's
+    build time. It seems that some programs use them even when
+    QScintilla's install instructions doesn't mention them.
+    Closes: Bug#203177
+  * Added German translation
+  * Changed package name to libqscintilla2. The soname changed
+    and I didn't notice :(
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Mon, 28 Jul 2003 16:12:48 +0100
+
+qscintilla (1.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Wed,  2 Jul 2003 14:32:31 +0100
+
+qscintilla (1.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Changed major number of lib version. We can strip the 'c102' from
+    libqscintillaX name, because the soname has changed.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun, 27 Apr 2003 21:22:43 +0100
+
+qscintilla (0.3-5) unstable; urgency=low
+
+  * Changed libqscintilla-dev's section to libdevel
+  * .so file was at libqscintillac102. Now it's at libqscintilla-dev
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun, 27 Apr 2003 22:15:18 +0100
+
+qscintilla (0.3-4) unstable; urgency=low
+
+  * Bad Build-Depends: content. Removed libqt3-dev which conflicts with
+    libqt3-mt-dev (funny, only triggered on a couple of archs).
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun,  6 Apr 2003 16:14:37 +0100
+
+qscintilla (0.3-3) unstable; urgency=low
+
+  * Compiled with G++ 3.2
+  * Changed libqscintilla0 to libqscintilla0c102 as mandated by
+    the transition to G++ 3.2
+  * 0.3-2 were not uploaded: Closes: Bug#178926
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun,  2 Feb 2003 05:05:16 +0000
+
+qscintilla (0.3-2) unstable; urgency=low
+
+  * Updated the debian/rules so it compile flawlessly with Qt 3.1.1
+    (added QMAKESPEC environment variable)
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Thu, 23 Jan 2003 00:29:44 +0000
+
+qscintilla (0.3-1) unstable; urgency=low
+
+  * New upstream snapshot
+  * Now generating libqscintilla-doc
+  * First official release. Closes: Bug#170613
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Thu, 12 Dec 2002 04:01:12 +0000
+
+qscintilla (0.1+20021207-1) unstable; urgency=low
+
+  * New upstream snapshot
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun,  8 Dec 2002 05:02:15 +0000
+
+qscintilla (0.1+20021201-1) unstable; urgency=low
+
+  * New upstream snapshot
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Mon,  2 Dec 2002 01:15:34 +0000
+
+qscintilla (0.1+20021126-1) unstable; urgency=low
+
+  * New upstream snapshot
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Wed, 27 Nov 2002 01:25:12 +0000
+
+qscintilla (0.1+20021122-2) unstable; urgency=low
+
+  * Libraries not being included in the package. Fixed.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Mon, 25 Nov 2002 23:39:33 +0000
+
+qscintilla (0.1+20021122-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Ricardo Javier Cardenes Medina <rcardenes@debian.org>  Sun, 24 Nov 2002 05:09:21 +0000
+
--- qscintilla-1.7.1.orig/debian/docs
+++ qscintilla-1.7.1/debian/docs
@@ -0,0 +1 @@
+NEWS
--- qscintilla-1.7.1.orig/debian/libqscintilla-doc.install
+++ qscintilla-1.7.1/debian/libqscintilla-doc.install
@@ -0,0 +1 @@
+usr/share/doc/libqscintilla-doc
