debian/0000755000000000000000000000000012261472441007171 5ustar debian/source/0000755000000000000000000000000012261472441010471 5ustar debian/source/format0000644000000000000000000000001412261472441011677 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000261612261472441011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pyspatialite Upstream-Contact: Lokkju Brennr Source: http://pyspatialite.googlecode.com/ Files: * Copyright: © 2004-2007, Lokkju Brennr © 2004-2010, Gerhard Häring License: zlib Files: src/microprotocols.c src/microprotocols.h Copyright: 2003-2004, Federico Di Gregorio License: zlib Files: debian/* Copyright: © 2012, David Paleino License: zlib License: zlib This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. debian/rules0000755000000000000000000000047412261472441010256 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PS := $(CURDIR)/debian/python-pyspatialite %: dh $@ \ --with python2 override_dh_auto_install: dh_auto_install rm -rf $(PS)/usr/pyspatialite-doc/ rm -rf $(PS)/usr/lib/python*/*-packages/pyspatialite/test/ debian/patches/0000755000000000000000000000000012261472441010620 5ustar debian/patches/series0000644000000000000000000000002312261472441012030 0ustar 00-fix_build.patch debian/patches/00-fix_build.patch0000644000000000000000000000501512261472441014024 0ustar From: David Paleino Subject: don't embed spatialite files, use system-wide one Origin: vendor Forwarded: no --- setup.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) --- pyspatialite.orig/setup.py +++ pyspatialite/setup.py @@ -44,7 +44,7 @@ sources = ["src/module.c", "src/connecti include_dirs = [] library_dirs = [] -libraries = ['geos','geos_c','proj'] +libraries = ['geos_c','proj','spatialite'] runtime_library_dirs = [] extra_objects = [] define_macros = [] @@ -113,24 +113,27 @@ def get_amalgamation(): class MyBuildExt(build_ext): def build_extension(self, ext): - get_amalgamation() + #get_amalgamation() # sometimes iconv is built in, sometimes it isn't if not self.compiler.has_function("iconv"): ext.libraries.append("iconv") #Default locations for Mac - ext.include_dirs.append("/Library/Frameworks/GEOS.framework/unix/include/") - ext.include_dirs.append("/Library/Frameworks/PROJ.framework/unix/include/") - ext.library_dirs.append("/Library/Frameworks/GEOS.framework/unix/lib") - ext.library_dirs.append("/Library/Frameworks/PROJ.framework/unix/lib") + #ext.include_dirs.append("/Library/Frameworks/GEOS.framework/unix/include/") + #ext.include_dirs.append("/Library/Frameworks/PROJ.framework/unix/include/") + #ext.library_dirs.append("/Library/Frameworks/GEOS.framework/unix/lib") + #ext.library_dirs.append("/Library/Frameworks/PROJ.framework/unix/lib") + ext.include_dirs.append("/usr/include") + ext.library_dirs.append("/usr/lib") ext.define_macros.append(("SQLITE_ENABLE_FTS3", "1")) # build with fulltext search enabled ext.define_macros.append(("SQLITE_ENABLE_RTREE", "1")) # build with fulltext search enabled ext.define_macros.append(("SQLITE_ENABLE_COLUMN_METADATA", "1")) # build with fulltext search enabled ext.define_macros.append(("OMIT_FREEXL","1")) # build without FreeXL - ext.sources.append(os.path.join(AMALGAMATION_ROOT, "sqlite3.c")) - ext.sources.append(os.path.join(AMALGAMATION_ROOT, "spatialite.c")) - ext.include_dirs.append(AMALGAMATION_ROOT) + #ext.sources.append(os.path.join(AMALGAMATION_ROOT, "sqlite3.c")) + #ext.sources.append(os.path.join(AMALGAMATION_ROOT, "spatialite.c")) + #ext.include_dirs.append(AMALGAMATION_ROOT) + ext.include_dirs.append("/usr/include/spatialite") build_ext.build_extension(self, ext) debian/watch0000644000000000000000000000041212261472441010217 0ustar version=3 opts=dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \ http://pypi.python.org/packages/source/p/pyspatialite/ (?:|.*/)pyspatialite[_\-](\d+\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) debian/changelog0000644000000000000000000000203312261472441011041 0ustar pyspatialite (3.0.1-4) 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:12:50 +0100 pyspatialite (3.0.1-3) experimental; urgency=low [ David Paleino ] * Updated debian/watch. [ Bas Couwenberg ] * Use canonical URLs in Vcs-* fields. * Update copyright file. * Bump dephelper compatibility to 9. * Bump Standards-Version to 3.9.4, no changes. * Add lintian override for no-fortify-functions false positive. * Add lintian override for no-upstream-changelog. * Change priority to optional. -- Bas Couwenberg Tue, 26 Nov 2013 17:01:29 +0100 pyspatialite (3.0.1-2) unstable; urgency=low * Add Gerhard Häring to copyright holders. -- David Paleino Tue, 17 Apr 2012 23:27:46 +0200 pyspatialite (3.0.1-1) unstable; urgency=low * Initial release (Closes: #623805) -- David Paleino Sun, 15 Apr 2012 10:59:59 +0200 debian/python-pyspatialite.lintian-overrides0000644000000000000000000000072712261472441016606 0ustar # Build uses -D_FORTIFY_SOURCE=2, but hardening-check reports: # Fortify Source functions: no, only unprotected functions found! # unprotected: strcpy # unprotected: memcpy python-pyspatialite: hardening-no-fortify-functions usr/lib/python2.7/dist-packages/pyspatialite/_spatialite.so # Upstream provides no changelog, but has changes available in its VCS: # https://code.google.com/p/pyspatialite/source/list python-pyspatialite: no-upstream-changelog debian/compat0000644000000000000000000000000212261472441010367 0ustar 9 debian/control0000644000000000000000000000201112261472441010566 0ustar Source: pyspatialite Maintainer: Debian GIS Project Uploaders: David Paleino , Bas Couwenberg Section: python Priority: optional Build-Depends: debhelper (>= 9), libspatialite-dev (>= 4.1.1~), libgeos-dev, libproj-dev, python-all-dev (>= 2.6.6-3~) Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/pyspatialite.git Vcs-Git: git://anonscm.debian.org/pkg-grass/pyspatialite.git Homepage: http://pyspatialite.googlecode.com/ Package: python-pyspatialite Architecture: any Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends} Description: Python interface to Spatialite pyspatialite is an interface to the SQLite 3.x embedded relational database engine with spatialite extensions. . It is almost fully compliant with the Python database API version 2.0 and also exposes the unique features of SQLite and spatialite.