--- thuban-1.2.2.orig/debian/changelog +++ thuban-1.2.2/debian/changelog @@ -0,0 +1,197 @@ +thuban (1.2.2-2build1) natty; urgency=low + + * Rebuild with python 2.7 as the python default. + + -- Matthias Klose Wed, 08 Dec 2010 15:11:43 +0000 + +thuban (1.2.2-2) unstable; urgency=low + + * Removed python-xmlbase build-dep and dep, because available in python >= 2.4 + * Policy updated to 3.8.4 (no changes). + * Added ${misc:Depends} dependency to thuban pkg. + * Removed Apps prefix in debian/doc-base. + + -- Francesco Paolo Lovergine Thu, 04 Feb 2010 16:00:51 +0100 + +thuban (1.2.2-1) unstable; urgency=low + + * New upstream release. + * Added Vcs-* fields to debian/control. + * Now policy bumped to 3.8.3. + * Missing dh_prep call added. + * First upload to unstable to obsolete the old release. + + -- Francesco Paolo Lovergine Wed, 21 Oct 2009 12:04:54 +0200 + +thuban (1.2.1+svn2877-1) experimental; urgency=low + + * New upstream SVN snapshot. + * Moved to wxwidget 2.8 instead of the obsolete 2.6 + * Updated patchset. + + -- Francesco Paolo Lovergine Tue, 26 May 2009 22:38:16 +0200 + +thuban (1.2.1-1) unstable; urgency=low + + [ Paul Wise ] + + * Switch to the new Homepage field + + [ Francesco Paolo Lovergine ] + + * New upstream release. Still better using wxwidget 2.6. + (closes: #352844) + * Policy bumped to 3.8.1. + * Removed Silke among Uploaders. + (closes: #519385) + * Changed build-dep: proj -> libproj-dev + * Fixed watch file. + * Added wxpython patch to select explicitly 2.6 version at run-time. + * Added gdal patch to use osgeo namespace for gdal/ogr. Still one + warning is issued anyway at run-time. + * Added recommended: python-mapscript for mapserver extension. + * Debhelper level set to 7. + * Revised against python policy: now supports only private modules + for the default python version at build-time. + (closes: #520573) + * Removed create_espg script in /usr/bin. + + -- Francesco Paolo Lovergine Tue, 31 Mar 2009 10:58:23 +0200 + +thuban (1.2.0-2) unstable; urgency=low + + [ Francesco Paolo Lovergine ] + * Added build-dep from docbook-xml. + (closes: #422471) + + [ Paul Wise ] + * Move menu item to Applications/Science/Geoscience (menu transition) + + -- Paul Wise Wed, 11 Jul 2007 10:19:35 +1000 + +thuban (1.2.0-1) unstable; urgency=low + + * New upstream release. + * Patchset updated. + * Policy bumped to 3.7.2 (no changes). + * Updated for current Python Policy by using python-support. + + -- Francesco Paolo Lovergine Sat, 7 Apr 2007 21:03:28 +0200 + +thuban (1.1.0-1) experimental; urgency=low + + * New upstream release + - Drop gdalwarp.cpp patch, no longer applies + - Drop de.po patch, no longer useful + * Build with and use wxWidgets 2.6, which supports GTK 2 + * SWIG hack to be removed when wxWidgets includes wxPython.h (#326440) + * Move bitmappath.patch into a dpatch (wasn't being applied) + * Actually install the manual page + * Use debian/compat instead of DH_COMPAT + * Remove nostrip checking, dh_strip does that + * Actually pass CFLAGS to setup.py + * Always use -Wall -g in CFLAGS + * Check for noopt and use -O0, otherwise use -O2 + * Remove extraneous whitespace and comments in debian/rules + * Revamp debian/copyright information, inc. FSF address update + * Install create_epsg.py into the package + * Build and install the English and German manuals + * Ship the NEWS file, don't ship an extra copy of the dtd + * Some minor debian/ cleanups + + -- Paul Wise Mon, 27 Mar 2006 15:41:11 +0800 + +thuban (1.0.1-1) unstable; urgency=high + + [ Francesco Paolo Lovergine ] + + * New upstream release. + (closes: #288077, #307758, #313843) + * Changed upstream to DebianGis Team. Silke and me added as uploaders. + * Urgency due to brokeness of the package in sid. + * Added home page URL to long description. + * Changed build-dep to reflect current ones in sid: + libgdal1-1.3.1-dev + python-wxgtk2.4 + wx2.4-headers + (closes: #334219) + * Added gdal-bin dependency + (closes: #328239) + * Moved to dpatch support and removed basic cdbs patchsys. + (The rules file used dh_rules directly, anyway) + Imported the two previuos patches. + * Added gdalwarp.cpp.dpatch patch (still to be merged upstream) + (closes: #298403) + * Patched po/de.po with de.po.dpatch. + (closes: #313843) + * dh_installmanpages is obsolete -> dh_installman + * Removing build-time .mo files during clean + + -- Francesco Paolo Lovergine Wed, 1 Feb 2006 20:02:40 +0100 + +thuban (1.0.0-1) unstable; urgency=low + + * New upstream release (Closes:#234975) + * added build-dep from cbds for patching thuban + * added multilanguage support + + -- Silke Reimer Wed, 28 Jan 2004 12:47:34 +0100 + +thuban (1.0rc1-1) unstable; urgency=low + + * New upstream release + * added gdal-support (Closes:#221645) + * New upstream versions solves also partly Bug#220295, i.e. listing + also shapefiles with *.SHP in open dialog. + + -- Silke Reimer Wed, 10 Sep 2003 10:19:05 +0200 + +thuban (0.9.0-1) unstable; urgency=low + + * New upstream release. + * deleted first row in Thuban/UI/[tree|main].py, containing #!-statement + since not necessary and leading to warning 'script-not-executable' + + -- Silke Reimer Wed, 10 Sep 2003 10:19:05 +0200 + +thuban (0.8.1-2) unstable; urgency=low + + * all changes where necessary to be compliant with python 2.3. The last + three changes where made to be able to run all unittests successfully. + They doesn't effect the funcionality of thuban directly. + * debian/rules: + Removed hard-coded call to python2.2 since standard python is now + python2.3., closes: #205853 + * Change in extensions/pyshapelib/dbflib_wrap.c: + After changing from python2.2 to python 2.3 PyMapping_Check doesn't work + any more. So PySequence_Check has to be used instead + * test/support.py: + little change in class definition due to change to python2.3 + * test/test_save.py: + changed call of function say_eventlist. Causes an failure for + 'if 1:' otherwise + * Thuban/Model/table.py: + change of storage of dbf-filename, otherwise there is an failure in + the unittests. + * debian/control: + - changed priority to 'extra' since proj has priority 'extra' and + according to policy a package MUST NOT depend on packages with lower + priority values + - added missing dependency on python-xmlbase, closes: #206382 + + -- Silke Reimer Wed, 20 Aug 2003 15:03:46 +0200 + +thuban (0.8.1-1) unstable; urgency=low + + * Initial Release. + * Change in setup.py: Adjusted path to proj4 from /usr/local/ to /usr/ + * setup.py: changed dir for Bitmaps since they have to placed in /usr/share + * in Thuban/UI/resource.py: changed bitmapdir (the bitmap search path) + to /usr/share/thuban/Resources/Bitmaps + * in Thuban/Model/resource.py: changed projdir (the location for the default + projections) to /usr/share/thuban/Resources/Projections + * deleted first row in version.py and Model/range.py, containing #!-statement + since not necessary and leading to warning 'script-not-executable' + + -- Silke Reimer Mon, 21 Jul 2003 15:16:39 +0200 + --- thuban-1.2.2.orig/debian/docs +++ thuban-1.2.2/debian/docs @@ -0,0 +1,4 @@ +README +NEWS +Doc/manual/thuban-manual +Doc/manual/thuban-manual-de --- thuban-1.2.2.orig/debian/copyright +++ thuban-1.2.2/debian/copyright @@ -0,0 +1,119 @@ +This package was debianized by Silke Reimer on +Tue, 26 Nov 2002 09:06:49 +0100. + +It was downloaded from ftp://intevation.de/thuban/ + +Upstream Author: Intevation GmbH + +Copyright: + + Copyright 2001, 2002, 2003, 2004, 2005 Intevation GmbH + Copyright 1997, 1998, 2000, 2001, 2003 Bernhard Herzog + +Translations: + + Copyright 2003 Bjoern Broscheit + Copyright 2004 Norbert Solymosi + Copyright 2003 Maurizio Napolitano. + Copyright 2003 Alex Shevlakov + +pyprojection: + + Copyright 2001 Meridian Environmental Technology, Inc + +gdalwarp.cpp: + + Copyright 2002 i3 - information integration and imaging Fort Collin, CO + +shapelib: + + Copyright 1999, 2001 Frank Warmerdam + +Licence: + + This package 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 or later. + + This package 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 package; 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'. + +pyprojection: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +gdalwarp.cpp: + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +shapelib: + + This software is available under the following "MIT Style" license, + or at the option of the licensee under the LGPL (see LICENSE.LGPL). This + option is discussed in more detail in shapelib.html. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. --- thuban-1.2.2.orig/debian/menu +++ thuban-1.2.2/debian/menu @@ -0,0 +1,2 @@ +?package(thuban):needs="X11" section="Applications/Science/Geoscience"\ + title="thuban" command="/usr/bin/thuban" --- thuban-1.2.2.orig/debian/thuban.1 +++ thuban-1.2.2/debian/thuban.1 @@ -0,0 +1,48 @@ +.TH THUBAN 1 "July 28, 2003" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +thuban \- interactive geographic data viewer +.SH SYNOPSIS +.B thuban +.RI [thuban-session-file] +.SH DESCRIPTION +This manual page documents briefly the +.B thuban +command. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBthuban\fP is an interactiv geographic data viewer. Thuban can read +geographic data in the shapefile format. To control the visual appearance +of a layer you have to select the layer in the session window of thuban. +Afterwards you can change the layers color with the Layer-menu. +.PP +You can load the layers table with the Layer-table-menu. Afterwards you can +query the table for feature selection. You can also load new tables with +the Table-menu and make a table join to the current layer table. +.PP +Maps can be printed or exported to the PS-format by Map/print. +.PP +All changes can be saved in a thuban session file. If a thuban session file +has been indicated on command line it will be loaded by thuban. If no +thuban session file has been given thuban starts with a new session. + +.SH SEE ALSO +http://thuban.intevation.org/ +.SH AUTHOR +Thuban was written by Intevation GmbH, \fB +.PP +This manual page was written by Silke Reimer , +for the Debian GNU/Linux system (but may be used by others). +.SH COPYRIGHT +Thuban may be copied and modified under te terms of +\s-1GNU\s0 General Public License. --- thuban-1.2.2.orig/debian/manpages +++ thuban-1.2.2/debian/manpages @@ -0,0 +1 @@ +debian/thuban.1 --- thuban-1.2.2.orig/debian/compat +++ thuban-1.2.2/debian/compat @@ -0,0 +1 @@ +7 --- thuban-1.2.2.orig/debian/doc-base +++ thuban-1.2.2/debian/doc-base @@ -0,0 +1,9 @@ +Document: thuban +Title: User's Manual for Thuban +Author: Jonathan Coles, Jan-Oliver Wagner and Frank Koormann +Abstract: Manual for users of Thuban, an interactive geographic data viewer. +Section: Viewers + +Format: HTML +Index: /usr/share/doc/thuban/thuban-manual/index.html +Files: /usr/share/doc/thuban/thuban-manual/*.html --- thuban-1.2.2.orig/debian/examples +++ thuban-1.2.2/debian/examples @@ -0,0 +1 @@ +Examples/simple_extensions --- thuban-1.2.2.orig/debian/install +++ thuban-1.2.2/debian/install @@ -0,0 +1,2 @@ +Doc/manual/images/*.png usr/share/doc/thuban/images +devtools/create_epsg.py usr/lib/thuban --- thuban-1.2.2.orig/debian/control +++ thuban-1.2.2/debian/control @@ -0,0 +1,24 @@ +Source: thuban +Section: graphics +Priority: extra +Maintainer: Debian GIS Project +Uploaders: Francesco Paolo Lovergine +Build-Depends: debhelper (>= 7), python-dev, python-wxgtk2.8, libproj-dev, + libgdal1-dev, dpatch, libwxgtk2.8-dev, docbook-utils, python-support (>= 0.6), + docbook-xml +Standards-Version: 3.8.4 +Homepage: http://thuban.intevation.org +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/thuban/trunk +Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/thuban/trunk + + +Package: thuban +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, gdal-bin, python-wxgtk2.8, python-sqlite, ${misc:Depends} +Recommends: python-psycopg, python-gdal, python-mapscript +Description: An interactive geographic data viewer + Thuban can read geographic data in the shapefile format. Main features of + thuban are the layer management and the possibility to navigate on the + map, to control the visual appearance of objects, to identify and edit + attributes by object selection and to print and export the resulting maps + for further processing. --- thuban-1.2.2.orig/debian/doc-base.de +++ thuban-1.2.2/debian/doc-base.de @@ -0,0 +1,9 @@ +Document: thuban.de +Title: German user's Manual for Thuban +Author: Jonathan Coles, Jan-Oliver Wagner and Frank Koormann +Abstract: Manual for German users of Thuban, an interactive geographic data viewer. +Section: Viewers + +Format: HTML +Index: /usr/share/doc/thuban/thuban-manual-de/index.html +Files: /usr/share/doc/thuban/thuban-manual-de/*.html --- thuban-1.2.2.orig/debian/links +++ thuban-1.2.2/debian/links @@ -0,0 +1 @@ +usr/lib/thuban/create_epsg.py usr/bin/create_epsg --- thuban-1.2.2.orig/debian/watch +++ thuban-1.2.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://wald.intevation.org/frs?group_id=6 /frs/download.php/\d+/Thuban-([\d\.]+).tar.bz2 --- thuban-1.2.2.orig/debian/dirs +++ thuban-1.2.2/debian/dirs @@ -0,0 +1 @@ +usr/share/doc/thuban/images --- thuban-1.2.2.orig/debian/rules +++ thuban-1.2.2/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PYDEF=$(shell pyversions -d) +PYDEFVER=$(shell pyversions -d -v) +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +include /usr/share/dpatch/dpatch.make + +build: patch build-stamp +build-stamp: + dh_testdir + CFLAGS="$(CFLAGS)" python setup.py build_ext --use-wx-python-swig-hack + make -C po mo + make -C Doc/manual man-html man-html-de + # Needs external data, many failures + # cd test ; python runtests.py + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + python setup.py clean + find $(CURDIR) -name "*.mo" -exec rm -f {} \; + rm -f build-stamp + rm -rf build Doc/manual/thuban-manual Doc/manual/thuban-manual-de + dh_clean + rm -f debian/pyversions + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + python setup.py install --prefix=/usr --no-compile --root=$(CURDIR)/debian/thuban + rm -f $(CURDIR)/debian/thuban/usr/bin/create_epsg + echo $(PYDEFVER) >$(CURDIR)/debian/pyversions + +binary-arch: build install + dh_testdir + dh_testroot + dh_install + dh_installdocs + dh_installexamples + dh_installmenu + dh_installman + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch +.PHONY: build clean binary-arch binary install clean-patched clean patch unpatch --- thuban-1.2.2.orig/debian/patches/gdal.dpatch +++ thuban-1.2.2/debian/patches/gdal.dpatch @@ -0,0 +1,45 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## gdal.dpatch by Francesco Paolo Lovergine +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/Extensions/ogr/ogrdialog.py trunk/Extensions/ogr/ogrdialog.py +--- trunk~/Extensions/ogr/ogrdialog.py 2009-03-31 09:54:17.000000000 +0200 ++++ trunk/Extensions/ogr/ogrdialog.py 2009-05-26 23:14:10.000000000 +0200 +@@ -14,7 +14,7 @@ + import wx + + try: +- import ogr ++ from osgeo import ogr + except ImportError: + ogr = None + +diff -urNad trunk~/Extensions/ogr/ogrshapes.py trunk/Extensions/ogr/ogrshapes.py +--- trunk~/Extensions/ogr/ogrshapes.py 2009-03-31 09:54:17.000000000 +0200 ++++ trunk/Extensions/ogr/ogrshapes.py 2009-05-26 23:14:10.000000000 +0200 +@@ -12,7 +12,7 @@ + # $Id: ogrshapes.py 2770 2007-05-22 08:54:41Z bh $ + + try: +- import ogr ++ from osgeo import ogr + except ImportError: + ogr = None + +diff -urNad trunk~/Thuban/Model/layer.py trunk/Thuban/Model/layer.py +--- trunk~/Thuban/Model/layer.py 2009-03-31 09:54:17.000000000 +0200 ++++ trunk/Thuban/Model/layer.py 2009-05-26 23:14:10.000000000 +0200 +@@ -395,8 +395,8 @@ + + + if resource.has_gdal_support(): +- import gdal +- from gdalconst import GA_ReadOnly ++ from osgeo import gdal ++ from osgeo.gdalconst import GA_ReadOnly + + class RasterLayer(BaseLayer): + --- thuban-1.2.2.orig/debian/patches/locale.dpatch +++ thuban-1.2.2/debian/patches/locale.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## locale.dpatch by Francesco Paolo Lovergine +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/Thuban/__init__.py trunk/Thuban/__init__.py +--- trunk~/Thuban/__init__.py 2009-05-26 22:37:03.000000000 +0200 ++++ trunk/Thuban/__init__.py 2009-05-26 23:05:22.000000000 +0200 +@@ -57,8 +57,14 @@ + """ + return _translation_function(s) + +-from Lib.fileutil import get_thuban_dir; +-_message_dir = os.path.join(get_thuban_dir(), "Resources", "Locale") ++#from Lib.fileutil import get_thuban_dir; ++#_message_dir = os.path.join(get_thuban_dir(), "Resources", "Locale") ++# ++# The directory where the default projections are stored has to be changed ++# for the debian package to be conformant with the FHS ++#_message_dir = os.path.join(os.path.dirname(__file__), os.pardir, "Resources", ++# "Locale") ++_message_dir = "/usr/share/thuban/Resources/Locale" + + def gettext_identity(s): + """Default gettext implementation which returns the string as is""" --- thuban-1.2.2.orig/debian/patches/wxpython.dpatch +++ thuban-1.2.2/debian/patches/wxpython.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## wxpython.dpatch by Francesco Paolo Lovergine +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad thuban~/thuban.py thuban/thuban.py +--- thuban~/thuban.py 2006-10-16 01:24:59.000000000 +0200 ++++ thuban/thuban.py 2009-03-30 16:52:18.000000000 +0200 +@@ -8,6 +8,9 @@ + # Read the file COPYING coming with Thuban for details. + + import sys, os ++import wxversion ++wxversion.select("2.8") ++ + import Thuban + + # Put the Lib dir into the path. The Lib dir contains some extra non --- thuban-1.2.2.orig/debian/patches/00list +++ thuban-1.2.2/debian/patches/00list @@ -0,0 +1,5 @@ +locale +setup.py +bitmappath +wxpython +gdal --- thuban-1.2.2.orig/debian/patches/setup.py.dpatch +++ thuban-1.2.2/debian/patches/setup.py.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## setup.py.dpatch by Francesco Paolo Lovergine +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad thuban-1.2.0~/setup.py thuban-1.2.0/setup.py +--- thuban-1.2.0~/setup.py 2007-04-06 13:36:16.000000000 +0200 ++++ thuban-1.2.0/setup.py 2007-04-06 13:37:56.000000000 +0200 +@@ -47,7 +47,7 @@ + # Unix like system. + + # Directories where Proj4 is installed +- proj4_prefix = "/usr/local/" ++ proj4_prefix = "/usr/" + proj4_incdir = os.path.join(proj4_prefix, "include") + proj4_libdir = os.path.join(proj4_prefix, "lib") + proj4_lib = "proj" +@@ -1193,7 +1193,7 @@ + # same directory. + "install_lib": "$base/lib/thuban", + "install_scripts": "$base/lib/thuban", +- "install_data": "$base/lib/thuban", ++ "install_data": "$prefix/share/thuban", + # Don't print warning messages about the lib dir not + # being on Python's path. The libraries are Thuban + # specific and are installed just for Thuban. They'll --- thuban-1.2.2.orig/debian/patches/bitmappath.dpatch +++ thuban-1.2.2/debian/patches/bitmappath.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## bitmappath.dpatch by Paul Wise +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/Thuban/Model/resource.py trunk/Thuban/Model/resource.py +--- trunk~/Thuban/Model/resource.py 2009-10-21 12:01:47.000000000 +0200 ++++ trunk/Thuban/Model/resource.py 2009-10-21 12:02:23.000000000 +0200 +@@ -27,8 +27,11 @@ + from Thuban.Model.proj import Projection, ProjFile + from xml.sax import SAXParseException + +- +-projdir = os.path.join(get_thuban_dir(), "Resources", "Projections") ++# The directory where the default projections are stored has to be changed ++# for ++# the debian package to be conformant with the FHS ++#projdir = os.path.join(get_thuban_dir(), "Resources", "Projections") ++projdir = "/usr/share/thuban/Resources/Projections" + + PROJ_EXT = ".proj" + +diff -urNad trunk~/Thuban/UI/resource.py trunk/Thuban/UI/resource.py +--- trunk~/Thuban/UI/resource.py 2009-10-21 12:01:47.000000000 +0200 ++++ trunk/Thuban/UI/resource.py 2009-10-21 12:04:47.000000000 +0200 +@@ -19,7 +19,10 @@ + import wx + + +-bitmapdir = os.path.join(get_thuban_dir(), "Resources", "Bitmaps") ++# The directory where the toolbar icons are stored has to be changed for ++# the debian package to be conformant with the FHS ++#bitmapdir = os.path.join(get_thuban_dir(), "Resources", "Bitmaps") ++bitmapdir = "/usr/share/thuban/Resources/Bitmaps" + bitmap_extensions = {wx.BITMAP_TYPE_XPM: ".xpm", + wx.BITMAP_TYPE_ANY: ""}