--- spatialindex-1.4.0.orig/debian/rules +++ spatialindex-1.4.0/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + +include /usr/share/dpatch/dpatch.make + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ + CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" \ + CC=g++ # a dirty hack to force using of g++ at libtool linking time + +build: build-stamp +build-stamp: config.status patch-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install --list-missing + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- spatialindex-1.4.0.orig/debian/changelog +++ spatialindex-1.4.0/debian/changelog @@ -0,0 +1,22 @@ +spatialindex (1.4.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS with GCC 4.4", apply patch from Ubuntu, thanks to Alessio + Treglia (closes: #534600). + + -- gregor herrmann Fri, 25 Dec 2009 22:48:13 +0100 + +spatialindex (1.4.0-1) unstable; urgency=low + + * New upstream release. + * Partch gcc43 removed, because merged upstream. + * Policy bumped to 3.8.3, without changes. + + -- Francesco Paolo Lovergine Sat, 12 Sep 2009 10:43:52 +0200 + +spatialindex (1.3.2-1) unstable; urgency=low + + * Initial release. + (closes: #530845) + + -- Francesco Paolo Lovergine Wed, 27 May 2009 20:29:47 +0200 --- spatialindex-1.4.0.orig/debian/libspatialindex-dev.install +++ spatialindex-1.4.0/debian/libspatialindex-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/*.la --- spatialindex-1.4.0.orig/debian/watch +++ spatialindex-1.4.0/debian/watch @@ -0,0 +1,3 @@ +# Compulsory line, this is a version 3 file +version=3 +http://trac.gispython.org/spatialindex/wiki/Releases .*spatialindex-(.*)\.tar\.gz.* --- spatialindex-1.4.0.orig/debian/libspatialindex1.dirs +++ spatialindex-1.4.0/debian/libspatialindex1.dirs @@ -0,0 +1 @@ +usr/lib --- spatialindex-1.4.0.orig/debian/control +++ spatialindex-1.4.0/debian/control @@ -0,0 +1,35 @@ +Source: spatialindex +Priority: extra +Maintainer: Debian GIS Project +Uploaders: Francesco Paolo Lovergine +Build-Depends: dpatch, debhelper (>= 7), autotools-dev +Standards-Version: 3.8.3 +Section: science +Homepage: http://trac.gispython.org/spatialindex +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/spatialindex/trunk +Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/spatialindex/trunk + +Package: libspatialindex-dev +Section: libdevel +Architecture: any +Depends: libspatialindex1 (= ${binary:Version}) +Description: A general framework for developing spatial indices + Spatialindex is a C++ library that provides a framework for + developing spatial indices. Currently it defines generic interfaces, + provides simple main memory and disk based storage managers and a + robust implementation of an R*-tree, an MVR-tree and a TPR-tree. + . + This package contains the SpatialIndex shared library. + +Package: libspatialindex1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A general framework for developing spatial indices - development files + Spatialindex is a C++ library that provides a framework for + developing spatial indices. Currently it defines generic interfaces, + provides simple main memory and disk based storage managers and a + robust implementation of an R*-tree, an MVR-tree and a TPR-tree. + . + This package contains the development files to build third + parties programs. --- spatialindex-1.4.0.orig/debian/copyright +++ spatialindex-1.4.0/debian/copyright @@ -0,0 +1,57 @@ +This package was debianized by Francesco Paolo Lovergine on +Wed, 27 May 2009 20:29:47 +0200. + +It was downloaded from http://trac.gispython.org/spatialindex + +Upstream Authors: + + Marios Hadjieleftheriou + Howard Butler + +Copyright: + + Copyright (C) 2002-2004 Navel Ltd. + Copyright (c) 1993 Martin Birgmeier. + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser 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 systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + +The Debian packaging is: + + Copyright (C) 2009 Francesco Paolo Lovergine + +and is licensed under the GPL version 3, +see `/usr/share/common-licenses/GPL-3'. + +------------------------------------------------------------------------------ +The file srand48.cc is copyrighted by Martin Birgmeier with the following +license: + +/* +* Copyright (c) 1993 Martin Birgmeier +* All rights reserved. +* +* You may redistribute unmodified or modified versions of this source +* code provided that the above copyright notice and this and the +* following conditions are retained. +* +* This software is provided ``as is'', and comes with no warranties +* of any kind. I shall in no event be liable for anything that happens +* to anyone/anything when using this software. +*/ --- spatialindex-1.4.0.orig/debian/compat +++ spatialindex-1.4.0/debian/compat @@ -0,0 +1 @@ +7 --- spatialindex-1.4.0.orig/debian/libspatialindex-dev.dirs +++ spatialindex-1.4.0/debian/libspatialindex-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- spatialindex-1.4.0.orig/debian/docs +++ spatialindex-1.4.0/debian/docs @@ -0,0 +1,2 @@ +NEWS +README --- spatialindex-1.4.0.orig/debian/libspatialindex1.install +++ spatialindex-1.4.0/debian/libspatialindex1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- spatialindex-1.4.0.orig/debian/patches/gcc44.dpatch +++ spatialindex-1.4.0/debian/patches/gcc44.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## gcc44.dpatch by Alessio Treglia +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add missing #include to prevent FTBFS with GCC 4.4. + +@DPATCH@ +diff -urNad spatialindex-1.3.2~/regressiontest/mvrtree/Exhaustive.cc spatialindex-1.3.2/regressiontest/mvrtree/Exhaustive.cc +--- spatialindex-1.3.2~/regressiontest/mvrtree/Exhaustive.cc 2009-06-25 18:54:50.241100353 +0200 ++++ spatialindex-1.3.2/regressiontest/mvrtree/Exhaustive.cc 2009-06-25 18:55:31.961101773 +0200 +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + using namespace std; + +diff -urNad spatialindex-1.3.2~/regressiontest/rtree/Exhaustive.cc spatialindex-1.3.2/regressiontest/rtree/Exhaustive.cc +--- spatialindex-1.3.2~/regressiontest/rtree/Exhaustive.cc 2009-06-25 18:54:50.241100353 +0200 ++++ spatialindex-1.3.2/regressiontest/rtree/Exhaustive.cc 2009-06-25 18:55:23.985100661 +0200 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + using namespace std; + --- spatialindex-1.4.0.orig/debian/patches/00list +++ spatialindex-1.4.0/debian/patches/00list @@ -0,0 +1,2 @@ +# no patches +gcc44