debian/0000755000000000000000000000000012261472672007177 5ustar debian/source/0000755000000000000000000000000012261472354010474 5ustar debian/source/format0000644000000000000000000000001412261472354011702 0ustar 3.0 (quilt) debian/spatialite-bin.manpages0000644000000000000000000000054112261472354013616 0ustar debian/man/exif_loader.1 debian/man/shp_doctor.1 debian/man/spatialite.1 debian/man/spatialite_convert.1 debian/man/spatialite_dxf.1 debian/man/spatialite_gml.1 debian/man/spatialite_network.1 debian/man/spatialite_osm_filter.1 debian/man/spatialite_osm_map.1 debian/man/spatialite_osm_net.1 debian/man/spatialite_osm_raw.1 debian/man/spatialite_tool.1 debian/dirs0000644000000000000000000000000412261472354010052 0ustar usr debian/copyright0000644000000000000000000000507012261472354011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: spatialite-tools Upstream-Contact: Alessandro Furieri Source: https://www.gaia-gis.it/fossil/spatialite-tools/ Files: * Copyright: © 2008-2013, Alessandro Furieri License: GPL-3.0+ Files: ltmain.sh Copyright: 1996-2001, 2003-2010, Free Software Foundation, Inc. License: GPL-2.0+ with Libtool exception Files: debian/* Copyright: © 2009-2012, Francesco Paolo Lovergine © 2012, David Paleino License: GPL-3.0+ License: GPL-2.0+ with Libtool exception GNU Libtool 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; either version 2 of the License, or (at your option) any later version. . As a special exception to the GNU General Public License, if you distribute this file as part of a program or library that is built using GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program. . GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy can be downloaded from http://www.gnu.org/licenses/gpl.html, or obtained by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-3.0+ This program 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, either version 3 of the License, or (at your option) any later version. . This program 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. debian/spatialite-bin.lintian-overrides0000644000000000000000000000021712261472354015461 0ustar # Changes available only in the upstream VCS: # https://www.gaia-gis.it/fossil/spatialite-tools/timeline spatialite-bin: no-upstream-changelog debian/rules0000755000000000000000000000175212261472354010261 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS FULL_VERSION := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1) VERSION := $(shell echo $(FULL_VERSION) | sed -e "s/~beta[[:digit:]]\+/-BETA/") LC_VERSION := $(shell echo $(VERSION) | tr A-Z a-z) MANPAGES := $(wildcard debian/man/*.*.xml) DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) %: dh $@ --with autoreconf versions: @echo "Spatialite full version: $(FULL_VERSION)" @echo "Spatialite version: $(LC_VERSION)" override_dh_clean: dh_clean -$(RM) -f $(CURDIR)/debian/man/*.1 override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure) override_dh_auto_build: # Create man page from DocBook XML for x in $(MANPAGES) ; do \ docbook2x-man $$x ; \ mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \ done dh_auto_build debian/man/0000755000000000000000000000000012261472354007747 5ustar debian/man/spatialite_osm_map.1.xml0000644000000000000000000000630012261472354014501 0ustar spatialite_osm_map 1 spatialite_osm_map load OSM-XML maps into a SpatiaLite DB spatialite_osm_map pathname pathname num DESCRIPTION spatialite_osm_map is a tool for loading OSM-XML maps into a SpatiaLite DB. OPTIONS show help message pathname pathname the OSM-XML file path both OSM-XML (*.osm) and OSM-ProtoBuf (*.osm.pbf) are indifferently supported. pathname pathname the SpatiaLite DB path num num DB cache size (how many pages) using IN-MEMORY database suppress R*Tree generation unsafe (but faster) mode debian/man/spatialite_convert.1.xml0000644000000000000000000000357112261472354014535 0ustar spatialite_convert 1 spatialite_convert converting between versions spatialite_convert pathname num DESCRIPTION spatialite_convert is a tool converting a DB between different versions of SpatiaLite. OPTIONS print help message pathname pathname the SpatiaLite DB path num num target Version (2, 3, 4) debian/man/spatialite_gml.1.xml0000644000000000000000000000535612261472354013637 0ustar spatialite_gml 1 spatialite_gml load GML into a SpatiaLite DB spatialite_gml pathname pathname name DESCRIPTION spatialite_gml is a tool for loading GML into a SpatiaLite DB. OPTIONS show help message pathname pathname the GML-XML file path pathname pathname the SpatiaLite DB path name name the DB table name using IN-MEMORY database suppress R*Tree generation debian/man/spatialite_osm_net.1.xml0000644000000000000000000001204512261472354014515 0ustar spatialite_osm_net 1 spatialite_osm_net load OSM-XML roads into a SpatiaLite DB spatialite_osm_net pathname pathname table_name num path path DESCRIPTION spatialite_osm_net is a tool for loading OSM-XML roads into a SpatiaLite DB. OPTIONS show help message pathname pathname the OSM-XML file path both OSM-XML (*.osm) and OSM-ProtoBuf (*.osm.pbf) are indifferently supported. pathname pathname the SpatiaLite DB path table_name table_name the db table to be feeded num num DB cache size (how many pages) using IN-MEMORY database suppress R*Tree generation unsafe (but faster) mode double arcs extract roads (default) extract railways path path creates a default template-file path path using a template-file debian/man/spatialite_tool.1.xml0000644000000000000000000001412512261472354014027 0ustar spatialite_tool 1 spatialite_tool CLI tool for Shapefile import/export spatialite_tool pathname pathname pathname table_name col_name charset_name SRID POINT LINESTRING POLYGON MULTIPOINT DESCRIPTION spatialite_tool is an utility CLI tool for Shapefile import / export. OPTIONS show help message import (CSV/TXT, DBF or SHP) exporting some shapefile pathname pathname the full DBF path pathname pathname the shapefile path (NO SUFFIX) pathname pathname the SpatiaLite DB path table_name table_name the db geotable col_name col_name the Geometry column charset_name charset_name a charset name SRID SRID the SRID [POINT | LINESTRING | POLYGON | MULTIPOINT] the geometry type coerce to 2D geoms (x,y) apply geometry compression EXAMPLE spatialite_tool −i −dbf abc.dbf −d db.sqlite −t tbl −c CP1252 spatialite_tool −i −shp abc −d db.sqlite −t tbl −c CP1252 [−s 4326] [−g geom] spatialite_tool −i −shp abc −d db.sqlite −t tbl −c CP1252 [−s 4326] [−2] [−k] spatialite_tool −e −shp abc −d db.sqlite −t tbl −g geom −c CP1252 [−−type POINT] debian/man/spatialite_osm_filter.1.xml0000644000000000000000000000627212261472354015221 0ustar spatialite_osm_filter 1 spatialite_osm_filter loading OSM-XML maps into a SpatiaLite DB spatialite_osm_filter pathname pathname pathname num DESCRIPTION spatialite_osm_filter is a tool for loading OSM-XML maps into a SpatiaLite DB. OPTIONS show help message pathname pathname the OSM-XML (output) file path pathname pathname path of text file [WKT mask] pathname pathname the SpatiaLite DB path num num DB cache size (how many pages) using IN-MEMORY database unsafe (but faster) mode debian/man/spatialite_network.1.xml0000644000000000000000000001545312261472354014550 0ustar spatialite_network 1 spatialite_network analysis/validation tool for topological networks spatialite_network pathname table_name col_name col_name col_name col_name col_name col_name col_name table_name DESCRIPTION spatialite_network is an analysis / validation tool for topological networks OPTIONS show help message pathname pathname the SpatiaLite db path table_name table_name the db table to be validated col_name col_name the column for FromNode col_name col_name the column for ToNode col_name col_name the column for Geometry col_name col_name the column for Cost if omitted, GLength(g) will be used by default support the A* algorithm (default) no support for the A* algorithm col_name col_name the column for RoadName assume bidirectional arcs (default) don't assume bidirectional arcs if *bidirectional* each arc connecting FromNode to ToNode is implicitly connecting ToNode to FromNode as well; in this case you can select the following further options: & col_name OneWay To->From column name col_name OneWay From->To column name both columns are expected to contain BOOLEAN values [1-0]; 1 means that the arc connection in the given direction is valid, otherwise 0 means a forbidden connection table_name table_name create a permanent NETWORK-DATA table drop and recreate table_name if it exists debian/man/exif_loader.1.xml0000644000000000000000000000657012261472354013121 0ustar exif_loader 1 exif_loader upload JPEG/EXIF photos into a DB exif_loader pathname dir_path file_name DESCRIPTION exif_loader is a tool for uploading JPEG/EXIF photos into a DB, preserving full Exif metadata and building Geometry from GPS tags (if present). OPTIONS print help message pathname pathname the SpatiaLite db path dir_path dir_path the DIR path containing EXIF files file_name file_name a single EXIF file don't limit to GPS only EXIF tags (default) only load GPS EXIF tags also load EXIF meta data (default) don't load any EXIF meta data debian/man/spatialite.1.xml0000644000000000000000000001133712261472354012774 0ustar spatialite 1 spatialite CLI backend for SpatiaLite spatialite OPTIONS FILENAME SQL DESCRIPTION spatialite is a CLI backend for SpatiaLite. OPTIONS stop after hitting an error force batch I/O set output mode to 'column' command run command before reading stdin set output mode to 'csv' print commands before execution filename read/process named file turn headers on or off show help message set output mode to HTML force interactive I/O set output mode to 'line' set output mode to 'list' enable the multiplexor VFS (if support built in) 'text' set text string for NULL values 'x' set output field separator (|) print memory stats before each finalize show SQLite version NAME use NAME as the default VFS enable tracing of all VFS calls (if support built in) debian/man/spatialite_dxf.1.xml0000644000000000000000000001447412261472354013642 0ustar spatialite_dxf 1 spatialite_dxf an utility for DXF import spatialite_dxf pathname pathname num layer_prefix layer_name DESCRIPTION spatialite_dxf is an utility CLI tool for DXF import. OPTIONS print help message pathname pathname the SpatiaLite DB path pathname pathname the input DXF path num num an explicit SRID value layer_prefix layer_prefix prefix for DB layer names layer_name layer_name will import a single DXF layer will import all layers (default) respecting individual DXF layers merging layers altogether by type distinct|mixed are mutually exclusive; by default: distinct 2D/3D based on input geometries unconditionally force 2D unconditionally force 3D auto|2d|3d are mutually exclusive; by default: auto support linked polygon rings support unlinked polygon rings linked|unlinked are mutually exclusive; by default: none appends to already exixting tables using IN-MEMORY database unsafe (but faster) mode debian/man/spatialite_osm_raw.1.xml0000644000000000000000000000565312261472354014527 0ustar spatialite_osm_raw 1 spatialite_osm_raw load "raw" OSM maps into a SpatiaLite DB spatialite_osm_raw pathname pathname num DESCRIPTION spatialite_osm_raw is a tool for loading "raw" OSM maps into a SpatiaLite DB. OPTIONS show help message pathname pathname the OSM-XML file path both OSM-XML (*.osm) and OSM-ProtoBuf (*.osm.pbf) are indifferently supported. pathname pathname the SpatiaLite DB path num num DB cache size (how many pages) using IN-MEMORY database unsafe (but faster) mode debian/man/shp_doctor.1.xml0000644000000000000000000000533412261472354013001 0ustar shp_doctor 1 shp_doctor analysis/sanitizing tool for SHAPEFILES shp_doctor pathname DESCRIPTION shp_doctor is an analysis/sanitizing tool for SHAPEFILES. OPTIONS print help message pathname pathname the SHP path (no suffix) or the full DBF path (−dbf) perform analysis (default) ignore entities' shape−type ignore coord consistency ignore the SHX file bare DBF check debian/patches/0000755000000000000000000000000012261472354010623 5ustar debian/patches/00-systemlibs.patch0000644000000000000000000001113012261472354014253 0ustar From: Francesco Paolo Lovergine Subject: use system-wide libraries Origin: vendor Forwarded: no --- libspatialite/Makefile.am | 14 ++++++-------- libspatialite/headers/Makefile.am | 2 -- spatialite-tools/Makefile.am | 14 +++++--------- spatialite-tools/exif_loader.c | 2 +- spatialite-tools/shapefiles.c | 2 +- spatialite-tools/shell.c | 2 +- spatialite-tools/shp_doctor.c | 2 +- spatialite-tools/spatialite_network.c | 2 +- spatialite-tools/spatialite_osm.c | 2 +- spatialite-tools/spatialite_tool.c | 2 +- 10 files changed, 18 insertions(+), 26 deletions(-) --- spatialite.orig/libspatialite/headers/Makefile.am +++ spatialite/libspatialite/headers/Makefile.am @@ -4,6 +4,4 @@ nobase_include_HEADERS = \ spatialite/gaiaexif.h \ spatialite/gaiaaux.h \ spatialite/gaiageo.h \ - spatialite/sqlite3.h \ - spatialite/sqlite3ext.h \ spatialite/spatialite.h --- spatialite.orig/libspatialite/Makefile.am +++ spatialite/libspatialite/Makefile.am @@ -7,8 +7,7 @@ INCLUDES += @PROJ_INCLUDE@ @GEOS_INCLUDE lib_LTLIBRARIES = libspatialite.la -libspatialite_la_SOURCES = spatialite.c \ - sqlite3.c +libspatialite_la_SOURCES = spatialite.c if MINGW libspatialite_la_LDFLAGS = -version-info 2:4:0 -no-undefined @@ -26,16 +25,15 @@ libspatialite_la_LIBADD = \ @PROJ_LIB_LA@ \ -liconv -lm -lstdc++ -lpthread -ldl else -libspatialite_la_LDFLAGS = -version-info 2:4:0 -libspatialite_la_LIBADD = \ - @GEOS_LIB_CLA@ \ - @GEOS_LIB_LA@ \ - @PROJ_LIB_LA@ \ +# Fixed SONAME to avoid not proper bumping. +libspatialite_la_LDFLAGS = -lsqlite3 -version-info 3:0:1 +libspatialite_la_LIBADD = -lsqlite3 \ + -lgeos_c -lgeos -lproj \ -lm -lstdc++ -lpthread -ldl endif endif -AUTOMAKE_OPTIONS = dist-zip +AUTOMAKE_OPTIONS = dist-zip foreign EXTRA_DIST = makefile.vc nmake.opt libspatialite.def --- spatialite.orig/spatialite-tools/exif_loader.c +++ spatialite/spatialite-tools/exif_loader.c @@ -40,7 +40,7 @@ #include #endif -#include +#include #include #include #include --- spatialite.orig/spatialite-tools/Makefile.am +++ spatialite/spatialite-tools/Makefile.am @@ -45,21 +45,17 @@ LDADD = @SPATIALITE_LIB@ \ @PROJ_LIB@ \ -lm -liconv -lstdc++ -lpthread -ldl else -spatialite_LDADD = @SPATIALITE_LIB@ \ - @GEOS_LIB_C@ \ - @GEOS_LIB@ \ - @PROJ_LIB@ \ +spatialite_LDADD = @SPATIALITE_LIB@ -lsqlite3 \ + -lgeos_c -lgeos -lproj \ -lm -lstdc++ -lpthread -ldl \ @READLINE_LIBS@ -LDADD = @SPATIALITE_LIB@ \ - @GEOS_LIB_C@ \ - @GEOS_LIB@ \ - @PROJ_LIB@ \ +LDADD = @SPATIALITE_LIB@ -lsqlite3 \ + -lgeos_c -lgeos -lproj \ -lm -lstdc++ -lpthread -ldl endif endif EXTRA_DIST = makefile.vc nmake.opt -AUTOMAKE_OPTIONS = dist-zip +AUTOMAKE_OPTIONS = dist-zip foreign --- spatialite.orig/spatialite-tools/shapefiles.c +++ spatialite/spatialite-tools/shapefiles.c @@ -47,7 +47,7 @@ the terms of any one of the MPL, the GPL #include #include -#include +#include #include #include #include --- spatialite.orig/spatialite-tools/shell.c +++ spatialite/spatialite-tools/shell.c @@ -38,7 +38,7 @@ /* Sandro Furieri 30 May 2008 / #include "sqlite3.h" */ -#include +#include #include #ifdef __MINGW32__ #define LIBICONV_STATIC --- spatialite.orig/spatialite-tools/shp_doctor.c +++ spatialite/spatialite-tools/shp_doctor.c @@ -30,7 +30,7 @@ #include #include -#include +#include #include #define ARG_NONE 0 --- spatialite.orig/spatialite-tools/spatialite_network.c +++ spatialite/spatialite-tools/spatialite_network.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include --- spatialite.orig/spatialite-tools/spatialite_osm.c +++ spatialite/spatialite-tools/spatialite_osm.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include --- spatialite.orig/spatialite-tools/spatialite_tool.c +++ spatialite/spatialite-tools/spatialite_tool.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include debian/patches/08-indifferently-typo.patch0000644000000000000000000000312212261472354015722 0ustar Description: Fix 'indifferenctly' typo, replace with 'indifferently'. Author: Bas Couwenberg Last-Update: 2013-09-30 --- a/spatialite_osm_map.c +++ b/spatialite_osm_map.c @@ -2548,7 +2548,7 @@ do_help () fprintf (stderr, " both OSM-XML (*.osm) and OSM-ProtoBuf\n"); fprintf (stderr, - " (*.osm.pbf) are indifferenctly supported.\n\n"); + " (*.osm.pbf) are indifferently supported.\n\n"); fprintf (stderr, "-d or --db-path pathname the SpatiaLite DB path\n\n"); fprintf (stderr, "you can specify the following options as well\n"); --- a/spatialite_osm_net.c +++ b/spatialite_osm_net.c @@ -2255,7 +2255,7 @@ do_help () fprintf (stderr, " both OSM-XML (*.osm) and OSM-ProtoBuf\n"); fprintf (stderr, - " (*.osm.pbf) are indifferenctly supported.\n\n"); + " (*.osm.pbf) are indifferently supported.\n\n"); fprintf (stderr, "-d or --db-path pathname the SpatiaLite DB path\n"); fprintf (stderr, --- a/spatialite_osm_raw.c +++ b/spatialite_osm_raw.c @@ -947,7 +947,7 @@ do_help () fprintf (stderr, " both OSM-XML (*.osm) and OSM-ProtoBuf\n"); fprintf (stderr, - " (*.osm.pbf) are indifferenctly supported.\n\n"); + " (*.osm.pbf) are indifferently supported.\n\n"); fprintf (stderr, "-d or --db-path pathname the SpatiaLite DB path\n\n"); fprintf (stderr, "you can specify the following options as well\n"); debian/patches/03-fix_typos.patch0000644000000000000000000000773512261472354014124 0ustar From: David Paleino Subject: fix typos in source code Origin: vendor Forwarded: no --- shell.c | 2 +- spatialite_convert.c | 2 +- spatialite_gml.c | 2 +- spatialite_osm_map.c | 4 ++-- spatialite_osm_net.c | 10 +++++----- spatialite_osm_raw.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) --- a/spatialite_gml.c +++ b/spatialite_gml.c @@ -1936,7 +1936,7 @@ main (int argc, char *argv[]) ret = sqlite3_backup_finish (backup); sqlite3_close (handle); handle = disk_db_handle; - printf ("\tIN_MEMORY database succesfully exported\n"); + printf ("\tIN_MEMORY database successfully exported\n"); } sqlite3_close (handle); --- a/spatialite_osm_map.c +++ b/spatialite_osm_map.c @@ -1980,7 +1980,7 @@ db_vacuum (sqlite3 * db_handle) sqlite3_free (sql_err); return; } - printf ("\tAll done: OSM map was succesfully loaded\n"); + printf ("\tAll done: OSM map was successfully loaded\n"); } static void @@ -2825,7 +2825,7 @@ main (int argc, char *argv[]) ret = sqlite3_backup_finish (backup); sqlite3_close (handle); handle = disk_db_handle; - printf ("\tIN_MEMORY database succesfully exported\n"); + printf ("\tIN_MEMORY database successfully exported\n"); } /* VACUUMing */ --- a/spatialite_osm_net.c +++ b/spatialite_osm_net.c @@ -1330,7 +1330,7 @@ create_qualified_nodes (struct aux_param fprintf (stderr, "COMMIT TRANSACTION error: %s\n", sql_err); sqlite3_free (sql_err); } - printf ("\tHelper table '%s_nodes' succesfully created\n", table); + printf ("\tHelper table '%s_nodes' successfully created\n", table); return 1; error: if (query_stmt != NULL) @@ -1759,7 +1759,7 @@ db_vacuum (sqlite3 * handle) sqlite3_free (sql_err); return; } - printf ("\tAll done: OSM graph was succesfully loaded\n"); + printf ("\tAll done: OSM graph was successfully loaded\n"); } static int @@ -2481,7 +2481,7 @@ main (int argc, char *argv[]) error = 1; } if (print_template (template_path, railways)) - printf ("template-file \"%s\" succesfully created\n\n", + printf ("template-file \"%s\" successfully created\n\n", template_path); return 0; } @@ -2518,7 +2518,7 @@ main (int argc, char *argv[]) error = 1; } if (parse_template (¶ms, template_path)) - printf ("template-file \"%s\" succesfully acquired\n\n", + printf ("template-file \"%s\" successfully acquired\n\n", template_path); else return -1; @@ -2740,7 +2740,7 @@ main (int argc, char *argv[]) ret = sqlite3_backup_finish (backup); sqlite3_close (handle); handle = disk_handle; - printf ("\tIN_MEMORY database succesfully exported\n"); + printf ("\tIN_MEMORY database successfully exported\n"); } /* VACUUMing */ db_vacuum (handle); --- a/spatialite_osm_raw.c +++ b/spatialite_osm_raw.c @@ -1219,7 +1219,7 @@ main (int argc, char *argv[]) ret = sqlite3_backup_finish (backup); sqlite3_close (handle); handle = disk_db_handle; - printf ("\tIN_MEMORY database succesfully exported\n"); + printf ("\tIN_MEMORY database successfully exported\n"); } /* closing the DB connection */ --- a/shell.c +++ b/shell.c @@ -2787,7 +2787,7 @@ stop_dxf: { int cnt1 = sqlite3_total_changes(p->db); if (cnt1 > cnt0) - fprintf(stderr, "SpatialTable \"%s\" succesfully removed\n", azArg[1]); + fprintf(stderr, "SpatialTable \"%s\" successfully removed\n", azArg[1]); else fprintf(stderr, "SpatialTable \"%s\" seems not to exist\n", azArg[1]); } --- a/spatialite_convert.c +++ b/spatialite_convert.c @@ -7018,7 +7018,7 @@ main (int argc, char *argv[]) sqlite3_free (sql_err); goto stop; } - printf ("\tDB-file succesfully converted !!!\n\n"); + printf ("\tDB-file successfully converted !!!\n\n"); goto end; /* closing the DB */ debian/patches/00-add_automake_foreign.patch0000644000000000000000000000127512261472354016215 0ustar From: Francesco Paolo Lovergine Subject: add 'foreign' to AUTOMAKE_OPTIONS Origin: vendor Forwarded: no --- Makefile.am | 2 +- Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Makefile.am +++ b/Makefile.am @@ -63,5 +63,5 @@ EXTRA_DIST = makefile.vc nmake.opt \ Makefile-static-Linux \ Makefile-static-MacOsX -AUTOMAKE_OPTIONS = dist-zip +AUTOMAKE_OPTIONS = dist-zip foreign --- a/Makefile.in +++ b/Makefile.in @@ -362,7 +362,7 @@ EXTRA_DIST = makefile.vc nmake.opt \ Makefile-static-Linux \ Makefile-static-MacOsX -AUTOMAKE_OPTIONS = dist-zip +AUTOMAKE_OPTIONS = dist-zip foreign all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am debian/patches/06-link-sqlite3.patch0000644000000000000000000000225612261472354014413 0ustar Description: Link to sqlite3 library. Author: Bas Couwenberg Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713644 Last-Update: 2013-09-30 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,8 @@ AC_CHECK_HEADERS(stddef.h,, [AC_MSG_ERRO AC_CHECK_HEADERS(stdint.h,, [AC_MSG_ERROR([cannot find stdint.h, bailing out])]) AC_CHECK_HEADERS(sys/time.h,, [AC_MSG_ERROR([cannot find sys/time.h, bailing out])]) AC_CHECK_HEADERS(unistd.h,, [AC_MSG_ERROR([cannot find unistd.h, bailing out])]) +AC_CHECK_HEADERS(sqlite3.h,, [AC_MSG_ERROR([cannot find sqlite3.h, bailing out])]) +AC_CHECK_HEADERS(sqlite3ext.h,, [AC_MSG_ERROR([cannot find sqlite3ext.h, bailing out])]) # Checks for programs. AC_PROG_CXX @@ -92,6 +94,9 @@ AC_FUNC_STAT AC_FUNC_STRFTIME AC_CHECK_FUNCS([memset sqrt strcasecmp strerror strncasecmp strstr fdatasync ftruncate getcwd gettimeofday localtime_r memmove strerror]) +# Checks for installed libraries +AC_CHECK_LIB(sqlite3,sqlite3_prepare_v2,,AC_MSG_ERROR(['libsqlite3' is required but it doesn't seem to be installed on this system.]),-lm) + AC_CONFIG_FILES([Makefile]) #----------------------------------------------------------------------- debian/patches/07-succesfully-typo.patch0000644000000000000000000000157412261472354015431 0ustar Description: Fix 'succesfully typo, replace with 'successfully'. Author: Bas Couwenberg Last-Update: 2013-09-30 --- a/shell.c +++ b/shell.c @@ -2670,7 +2670,7 @@ static int do_meta_command(char *zLine, } else fprintf (stderr, "Unable to parse: %s\n", dxf_path); - fprintf(stderr, "\n*** DXF file succesfully loaded\n"); + fprintf(stderr, "\n*** DXF file successfully loaded\n"); stop_dxf: /* destroying the DXF parser */ gaiaDestroyDxfParser (dxf); --- a/spatialite_dxf.c +++ b/spatialite_dxf.c @@ -528,7 +528,7 @@ main (int argc, char *argv[]) ret = sqlite3_backup_finish (backup); sqlite3_close (handle); handle = disk_handle; - printf ("\tIN_MEMORY database succesfully exported\n"); + printf ("\tIN_MEMORY database successfully exported\n"); } /* memory cleanup */ debian/patches/09-default-typo.patch0000644000000000000000000000126612261472354014514 0ustar Description: Fix 'defualt' typo, replace with 'default'. Author: Bas Couwenberg Last-Update: 2013-09-30 --- a/spatialite_network.c +++ b/spatialite_network.c @@ -1853,7 +1853,7 @@ do_help () fprintf (stderr, " if omitted, GLength(g)\n"); fprintf (stderr, - " will be used by defualt\n\n"); + " will be used by default\n\n"); fprintf (stderr, "you can specify the following options as well:\n"); fprintf (stderr, "----------------------------------------------\n"); fprintf (stderr, "--a-star-supported *default*\n"); debian/patches/01-fix_local_build.patch0000644000000000000000000001317212261472354015205 0ustar From: David Paleino Subject: fix local build issues Origin: vendor Forwarded: not-needed --- spatialite-tools/Makefile.am | 7 ++-- spatialite-tools/Makefile.in | 7 ++-- spatialite-tools/configure | 71 +----------------------------------------- spatialite-tools/configure.ac | 3 + 4 files changed, 14 insertions(+), 74 deletions(-) Index: spatialite-tools/Makefile.am =================================================================== --- spatialite.orig/Makefile.am 2012-02-22 11:15:13.000000000 +0100 +++ spatialite/Makefile.am 2012-02-22 11:15:13.000000000 +0100 @@ -2,7 +2,10 @@ AM_CFLAGS = -D_LARGE_FILE=1 -D_FILE_OFFSET_BITS=64 \ -D_LARGEFILE_SOURCE=1 @LIBSPATIALITE_CFLAGS@ \ - @LIBFREEXL_CFLAGS@ + @LIBFREEXL_CFLAGS@ \ + -L../libspatialite/src/.libs/ \ + -I../libspatialite/src/headers/ + bin_PROGRAMS = spatialite \ spatialite_tool \ @@ -39,7 +42,8 @@ -lexpat spatialite_LDADD = @LIBSPATIALITE_LIBS@ \ @LIBFREEXL_LIBS@ \ - @READLINE_LIBS@ + @READLINE_LIBS@ \ + -lfreexl LDADD = @LIBSPATIALITE_LIBS@ \ @LIBFREEXL_LIBS@ Index: spatialite-tools/Makefile.in =================================================================== --- spatialite.orig/Makefile.in 2012-02-22 11:15:13.000000000 +0100 +++ spatialite/Makefile.in 2012-02-22 11:15:13.000000000 +0100 @@ -257,7 +257,9 @@ ACLOCAL_AMFLAGS = -I m4 AM_CFLAGS = -D_LARGE_FILE=1 -D_FILE_OFFSET_BITS=64 \ -D_LARGEFILE_SOURCE=1 @LIBSPATIALITE_CFLAGS@ \ - @LIBFREEXL_CFLAGS@ + @LIBFREEXL_CFLAGS@ \ + -L../libspatialite/src/.libs/ \ + -I../libspatialite/src/headers/ INCLUDES = @CFLAGS@ spatialite_SOURCES = shell.c @@ -287,7 +289,8 @@ @READLINE_LIBS@ LDADD = @LIBSPATIALITE_LIBS@ \ - @LIBFREEXL_LIBS@ + @LIBFREEXL_LIBS@ \ + -lfreexl EXTRA_DIST = makefile.vc nmake.opt \ Makefile-static-MinGW \ Index: spatialite-tools/configure.ac =================================================================== --- spatialite.orig/configure.ac 2012-02-22 11:10:56.000000000 +0100 +++ spatialite/configure.ac 2012-02-22 11:15:13.000000000 +0100 @@ -74,9 +74,11 @@ AC_CHECK_LIB(proj,pj_init_plus,,AC_MSG_ERROR(['libproj' is required but it doesn't seem to be installed on this system.]),-lm) AC_CHECK_LIB(geos_c,GEOSTopologyPreserveSimplify,,AC_MSG_ERROR(['libgeos_c' is required but it doesn't seem to be installed on this system.]),-lm -lgeos) -PKG_CHECK_MODULES([LIBSPATIALITE], [spatialite], , AC_MSG_ERROR(['libspatialite' is required but it doesn't seem to be installed on this system.])) +LIBSPATIALITE_CFLAGS= +LIBSPATIALITE_LIBS="-lspatialite -lsqlite3" AC_SUBST(LIBSPATIALITE_CFLAGS) AC_SUBST(LIBSPATIALITE_LIBS) + PKG_CHECK_MODULES([LIBFREEXL], [freexl], , AC_MSG_ERROR(['libfreexl' is required but it doesn't seem to be installed on this system.])) AC_SUBST(LIBFREEXL_CFLAGS) AC_SUBST(LIBFREEXL_LIBS) Index: spatialite/spatialite-tools/configure =================================================================== --- spatialite.orig/configure 2012-02-22 11:14:40.000000000 +0100 +++ spatialite/configure 2012-02-22 11:17:05.000000000 +0100 @@ -17316,77 +17316,6 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPATIALITE" >&5 -$as_echo_n "checking for LIBSPATIALITE... " >&6; } - -if test -n "$LIBSPATIALITE_CFLAGS"; then - pkg_cv_LIBSPATIALITE_CFLAGS="$LIBSPATIALITE_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spatialite\""; } >&5 - ($PKG_CONFIG --exists --print-errors "spatialite") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBSPATIALITE_CFLAGS=`$PKG_CONFIG --cflags "spatialite" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$LIBSPATIALITE_LIBS"; then - pkg_cv_LIBSPATIALITE_LIBS="$LIBSPATIALITE_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spatialite\""; } >&5 - ($PKG_CONFIG --exists --print-errors "spatialite") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBSPATIALITE_LIBS=`$PKG_CONFIG --libs "spatialite" 2>/dev/null` -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - LIBSPATIALITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "spatialite" 2>&1` - else - LIBSPATIALITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "spatialite" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBSPATIALITE_PKG_ERRORS" >&5 - - as_fn_error $? "'libspatialite' is required but it doesn't seem to be installed on this system." "$LINENO" 5 -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - as_fn_error $? "'libspatialite' is required but it doesn't seem to be installed on this system." "$LINENO" 5 -else - LIBSPATIALITE_CFLAGS=$pkg_cv_LIBSPATIALITE_CFLAGS - LIBSPATIALITE_LIBS=$pkg_cv_LIBSPATIALITE_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -fi - - - -pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFREEXL" >&5 $as_echo_n "checking for LIBFREEXL... " >&6; } debian/patches/05-dont_relink.patch0000644000000000000000000000261712261472354014404 0ustar From: Francesco Paolo Lovergine Subject: avoid (superfluous) relinking against the C++ geos library Origin: vendor --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- spatialite-tools.orig/configure +++ spatialite-tools/configure @@ -17153,7 +17153,7 @@ if ${ac_cv_lib_geos_c_GEOSTopologyPreser $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lgeos_c -lm -lgeos $LIBS" +LIBS="-lgeos_c $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ --- spatialite-tools.orig/configure.ac +++ spatialite-tools/configure.ac @@ -72,7 +72,7 @@ AC_SUBST(READLINE_LIBS) AC_CHECK_LIB(expat,XML_ParserCreate,,AC_MSG_ERROR(['expat' is required but it doesn't seem to be installed on this system.])) AC_CHECK_LIB(proj,pj_init_plus,,AC_MSG_ERROR(['libproj' is required but it doesn't seem to be installed on this system.]),-lm) -AC_CHECK_LIB(geos_c,GEOSTopologyPreserveSimplify,,AC_MSG_ERROR(['libgeos_c' is required but it doesn't seem to be installed on this system.]),-lm -lgeos) +AC_CHECK_LIB(geos_c,GEOSTopologyPreserveSimplify,,AC_MSG_ERROR(['libgeos_c' is required but it doesn't seem to be installed on this system.]),) PKG_CHECK_MODULES([LIBSPATIALITE], [spatialite], , AC_MSG_ERROR(['libspatialite' is required but it doesn't seem to be installed on this system.])) AC_SUBST(LIBSPATIALITE_CFLAGS) debian/patches/series0000644000000000000000000000025112261472354012036 0ustar 00-add_automake_foreign.patch 03-fix_typos.patch #05-dont_relink.patch 06-link-sqlite3.patch 07-succesfully-typo.patch 08-indifferently-typo.patch 09-default-typo.patch debian/watch0000644000000000000000000000053612261472354010231 0ustar # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 opts=dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \ http://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/ (?:|.*/)spatialite-tools(?:[_\-]v?|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) debian/changelog0000644000000000000000000000510312261472354011045 0ustar spatialite-tools (4.1.1-2) experimental; urgency=low * Bump Standards-Version to 3.9.5, no changes required. * Require at least libspatialite version 4.1.1. -- Bas Couwenberg Sat, 14 Dec 2013 17:04:24 +0100 spatialite-tools (4.1.1-1) experimental; urgency=low * New upstream version. * Add myself to Uploaders. * Update watch file. * Use dh-autoreconf to run autoreconf during build. * Use canonical URLs for Vcs-* fields. * Update Homepage URL. * Update copyright file. * Properly link sqlite3. (closes: #713644) * Pass all hardening flags to configure. * Add lintian override for no upstream changelog, link to timeline. * Add patch to fix 'successfully' typo. * Add patch to fix 'indifferently' typo. * Add patch to fix 'default' typo. * Add man page for specialite tools: - exif_loader - shp_doctor - spatialite - spatialite_convert - spatialite_dxf - spatialite_gml - spatialite_network - spatialite_osm_filter - spatialite_osm_map - spatialite_osm_net - spatialite_osm_raw - spatialite_tool (closes: #703344) * Bump dephelper compatibility to 9. * Change priority to optional. -- Bas Couwenberg Mon, 30 Sep 2013 02:35:52 +0200 spatialite-tools (4.1.0-1) UNRELEASED; urgency=low * New upstream version -- Jerome Villeneuve Larouche Fri, 23 Aug 2013 11:03:13 -0400 spatialite-tools (4.0.0-1) experimental; urgency=low * New upstream version * Bump requirement of libspatialite to >= 4.0.0 * Added hardening instructions to debian/rules -- David Paleino Sat, 01 Dec 2012 21:18:10 +0100 spatialite-tools (3.1.0b-1) unstable; urgency=low * New upstream version * Patches adapted to new source * Standards-Version bump to 3.9.4, no changes needed * Updated debian/copyright * Added Build-Depends on libreadosm-dev -- David Paleino Thu, 04 Oct 2012 00:13:01 +0200 spatialite-tools (3.0.0-2) unstable; urgency=low * Fixed debian/watch to properly mangle upstream versioning scheme * Added DEP-3 header to 05-dont_relink.patch -- David Paleino Sat, 14 Apr 2012 11:55:00 +0200 spatialite-tools (3.0.0-1) unstable; urgency=low * Initial release. * Spatialite-tools used to be distributed with spatialite source, this is now different and this package is thought to be built apart. * Added the same 05-dont_relink.patch new patch used in spatialite to avoid relinking. -- Francesco Paolo Lovergine Wed, 29 Feb 2012 13:00:58 +0100 debian/compat0000644000000000000000000000000212261472354010372 0ustar 9 debian/control0000644000000000000000000000277612261472354010613 0ustar Source: spatialite-tools Maintainer: Debian GIS Project Uploaders: Francesco Paolo Lovergine , David Paleino , Bas Couwenberg Section: science Priority: optional Build-Depends: debhelper (>= 9), autotools-dev, dh-autoreconf, libspatialite-dev (>= 4.1.1~), libsqlite3-dev, libreadline-dev, pkg-config, libexpat1-dev, libfreexl-dev, libgeos-dev (>= 3.3.0), libproj-dev, libreadosm-dev, zlib1g-dev, docbook2x, docbook-xsl, docbook-xml, xsltproc Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/spatialite-tools.git Vcs-Git: git://anonscm.debian.org/pkg-grass/spatialite-tools.git Homepage: https://www.gaia-gis.it/fossil/spatialite-tools/ Package: spatialite-bin Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Geospatial extension for SQLite - tools The SpatiaLite extension enables SQLite to support spatial (geometry) data in a way conformant to OpenGis specifications, with both WKT and WKB formats. . Spatialite also includes Virtualshape and Virtualtext to enable accessing shapefiles and csv/text files as virtual tables. . This package contains tools useful to manage SQLite databases.