--- k3dsurf-0.6.2.4.orig/debian/manpages
+++ k3dsurf-0.6.2.4/debian/manpages
@@ -0,0 +1 @@
+debian/k3dsurf.1
--- k3dsurf-0.6.2.4.orig/debian/k3dsurf.desktop
+++ k3dsurf-0.6.2.4/debian/k3dsurf.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=K3DSurf
+Type=Application
+StartupNotify=true
+Comment=tool for mathematical surfaces
+Exec=/usr/bin/k3dsurf
+Icon=/usr/share/pixmaps/k3dsurf.xpm
+Terminal=false
+Categories=Qt;KDE;Education;Math;
--- k3dsurf-0.6.2.4.orig/debian/rules
+++ k3dsurf-0.6.2.4/debian/rules
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	qmake-qt3
+	touch configure-stamp
+
+debian/k3dsurf.xpm: icon/catenoid_mini_32x32.png
+	convert $< $@
+
+build: build-stamp debian/k3dsurf.xpm
+
+build-stamp: configure
+	dh_testdir
+	$(MAKE) LFLAGS="-Wl,-z,defs -Wl,--as-needed"
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f Makefile
+	rm -f debian/k3dsurf.xpm
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	install -D -m 755 bin/k3dsurf $(CURDIR)/debian/k3dsurf/usr/bin/k3dsurf
+	install -D -m 644 debian/k3dsurf.xpm $(CURDIR)/debian/k3dsurf/usr/share/pixmaps/k3dsurf.xpm
+	install -D -m 644 debian/k3dsurf.desktop $(CURDIR)/debian/k3dsurf/usr/share/applications/k3dsurf.desktop
+
+
+binary-indep: build install
+# We have nothing to do by default.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installmenu
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- k3dsurf-0.6.2.4.orig/debian/k3dsurf.1
+++ k3dsurf-0.6.2.4/debian/k3dsurf.1
@@ -0,0 +1,18 @@
+.TH k3dsurf 1 "December 26, 2005" k3dsurf 1
+.SH NAME
+k3dsurf \- tool for mathematical surfaces
+.SH SYNOPSIS
+.B k3dsurf
+.SH DESCRIPTION
+This manual page documents briefly the
+.B k3dsurf
+program
+.PP
+\fBk3dsurf\fP is a program to visualize and manipulate Multidimensional
+surfaces by using Mathematical equations. It's also a "Modeler" for
+POV-Ray in the area of parametric surfaces.
+.SH AUTHOR
+k3dsurf was written by Abderrahman Taha <taha_ab@yahoo.fr>.
+.PP
+This manual page was written by Steffen Joeris <steffen.joeris@skolelinux.de>,
+for the Debian project (but may be used by others).
--- k3dsurf-0.6.2.4.orig/debian/watch
+++ k3dsurf-0.6.2.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/k3dsurf/k3dsurf-([0-9.]+)\.tar\.gz
--- k3dsurf-0.6.2.4.orig/debian/menu
+++ k3dsurf-0.6.2.4/debian/menu
@@ -0,0 +1,6 @@
+?package(k3dsurf):needs="X11"\
+ section="Applications/Science/Mathematics"\
+ title="K3DSurf"\
+ command="/usr/bin/k3dsurf"\
+ hints="KDE"\
+ icon="/usr/share/pixmaps/k3dsurf.xpm"
--- k3dsurf-0.6.2.4.orig/debian/copyright
+++ k3dsurf-0.6.2.4/debian/copyright
@@ -0,0 +1,27 @@
+This package was debianized by Andreas Mueller <amu@debian.org> on
+Mon, 26 Dec 2005 17:13:36 +0100.
+
+It was downloaded from http://kde-apps.org/content/show.php?content=25049
+
+Copyright Holder: Copyright © 2005 Abderrahman Taha (taha_ab@yahoo.fr)
+
+		  Additional copyright notice for src/fparser/fparser.txt
+		  Copyright  2003 Juha Nieminen, Joel Yliluoma
+
+		  The files src/fparser/fparser.h and src/fparser/fparser.cpp
+		  follow the copyright instruction explained in src/fparser/fparser.txt
+
+
+License:
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License, version 2
+as published by the Free Software Foundation.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANDABILITY of FITNESS FOR A PARTICULAR PURPOSE.
+See the GNU General Public License for details.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in /usr/share/common-licenses/GPL-2.
--- k3dsurf-0.6.2.4.orig/debian/compat
+++ k3dsurf-0.6.2.4/debian/compat
@@ -0,0 +1 @@
+5
--- k3dsurf-0.6.2.4.orig/debian/control
+++ k3dsurf-0.6.2.4/debian/control
@@ -0,0 +1,17 @@
+Source: k3dsurf
+Section: math
+Priority: optional
+Maintainer: Cyril Brulebois <kibi@debian.org>
+Build-Depends: debhelper (>= 5), libqt3-mt-dev, imagemagick
+Standards-Version: 3.8.3
+Homepage: http://k3dsurf.sourceforge.net/
+Vcs-Git: git://git.debian.org/git/collab-maint/k3dsurf.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/k3dsurf.git;a=summary
+
+Package: k3dsurf
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: tool for mathematical surfaces
+ K3DSurf is a program to visualize and manipulate multidimensional
+ surfaces by using mathematical equations. It's also a modeler for
+ POV-Ray in the area of parametric surfaces.
--- k3dsurf-0.6.2.4.orig/debian/changelog
+++ k3dsurf-0.6.2.4/debian/changelog
@@ -0,0 +1,101 @@
+k3dsurf (0.6.2.4-1) unstable; urgency=low
+
+  * New upstream release (Closes: #547344):
+     - Fix crashes on startup for some users.
+     - Thanks to Scott Howard (from Ubuntu) for mentioning it.
+  * debian/control:
+     - Update mail address.
+     - Switch section from “kde” to “math”.
+  * Drop the only patch (merged upstream), and quilt entirely.
+  * Bump Standards-Version from 3.7.3 to 3.8.3 (no changes needed).
+  * debian/rules:
+     - Call qmake-qt3 rather than qmake to make the build more robust
+       (the qt4 version could be installed and the alternative set to
+       that one).
+
+ -- Cyril Brulebois <kibi@debian.org>  Tue, 27 Oct 2009 20:40:13 +0100
+
+k3dsurf (0.6.2-3) unstable; urgency=low
+
+  * Brown paper bag bug: Use “configure” and not “configure-stamp” in the
+    dependencies of the “build-stamp” target, so that the patch gets
+    actually applied, which finally fixes the FTBFS bug with gcc-4.3
+    (Closes: #454843).
+  * Add a watch file.
+
+ -- Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>  Sun, 02 Mar 2008 15:46:02 +0100
+
+k3dsurf (0.6.2-2) unstable; urgency=low
+
+  * Add Vcs-Git and Vcs-Browser since the packaging is now hosted on
+    git.debian.org.
+  * Rework a bit the long description.
+  * Add back the patch to fix FTBFS with newer gcc (it was probably dropped
+    due to a misuse of debuild options), using quilt (Closes: #454843):
+     - Add debian/patches/10_gcc4.3_includes
+  * Drop trailing spaces in debian/rules at the same time.
+  * Bump Standards-Version from 3.7.2 to 3.7.3 (no change needed).
+  * Pass “LFLAGS="-Wl,-z,defs -Wl,--as-needed"” to the “$(MAKE)” call:
+     - The latter avoids extra linking.
+     - The former ensures there's no undefined reference in the temporary
+       objects, although there is none at the moment.
+
+ -- Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>  Wed, 26 Dec 2007 16:22:49 +0100
+
+k3dsurf (0.6.2-1) unstable; urgency=low
+
+  * New upstream release (Closes: #430410).
+  * New maintainer (Closes: #446446).
+  * Move the homepage from the description to the new source field.
+  * Remove 10-gcc.dpatch since it is no longer needed (the code implying the
+    missing include has been commented out).
+  * Remove the dpatch dependency in debian/control and patch handling in
+    debian/rules accordingly.
+  * Achieve the menu transition: Move the menu section from “Apps/Math” to
+    “Applications/Science/Mathematics”. Adjust the capitalization of the title
+    to match upstream's.
+  * Desktop file:
+     - Remove “Encoding” field, per lintian.
+     - Add “Name=K3DSurf”, also per lintian.
+  * No longer ignore “make distclean” errors, per lintian again.
+
+ -- Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>  Sat, 13 Oct 2007 10:57:18 +0200
+
+k3dsurf (0.6.1-2) unstable; urgency=low
+
+  * Include patch (10-gcc.dpatch) for FTBFS with newer gcc version
+    (Closes: #417269) Thanks to Martin Michlmayr for testing and patch
+  * Add build-depends against dpatch
+  * Change my maintainer address
+
+ -- Steffen Joeris <white@debian.org>  Tue, 03 Apr 2007 20:23:33 +1000
+
+k3dsurf (0.6.1-1) unstable; urgency=medium
+
+  * New upstream release
+   - Fixes important segfault with example files and some other
+     annoying bugs and is therefore targeted etch
+
+ -- Steffen Joeris <steffen.joeris@skolelinux.de>  Sat,  9 Dec 2006 19:30:41 +0100
+
+k3dsurf (0.6.0-1) unstable; urgency=low
+
+  * New upstream release
+   - Includes OpenGL support
+  * Remove obsolete debian/docs
+
+ -- Steffen Joeris <steffen.joeris@skolelinux.de>  Tue, 28 Nov 2006 19:44:41 +0100
+
+k3dsurf (0.5.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump standards version
+  * Change to debhelper level 5
+
+ -- Steffen Joeris <steffen.joeris@skolelinux.de>  Sun, 13 Aug 2006 12:29:44 +1000
+
+k3dsurf (0.5.4-1) unstable; urgency=low
+
+  * Initial release (Closes: #345715)
+
+ -- Steffen Joeris <steffen.joeris@skolelinux.de>  Mon, 26 Dec 2005 17:13:36 +0100
