The following commit has been merged in the master branch: commit 3d3a362bd26acb6b96d64f0005b9a69bc4f8898a Author: David Paleino <da...@debian.org> Date: Sat Apr 23 09:31:14 2011 +0200
First debianization diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7b5348b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pyspatialite (2.6.1-1) UNRELEASED; urgency=low + + * Initial release (Closes: #623805) + + -- David Paleino <da...@debian.org> Sat, 23 Apr 2011 09:09:33 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d0174ba --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: pyspatialite +Section: science +Priority: extra +Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org> +Uploaders: David Paleino <da...@debian.org> +Build-Depends: debhelper (>= 8~) + , libspatialite-dev + , libgeos-dev + , libproj-dev +Standards-Version: 3.9.2 +Homepage: http://pyspatialite.googlecode.com/ +Vcs-Git: git://git.debian.org/pkg-grass/pyspatialite.git +Vcs-Browser: http://git.debian.org/?p=pkg-grass/pyspatialite.git;a=summary + +Package: python-pyspatialite +Architecture: all +Depends: ${python:Depends} + , ${misc: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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b6d7804 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: pyspatialite +Source: http://pyspatialite.googlecode.com/ + +Files: * +Copyright: © Lokkju Brennr <lok...@lokkju.com> +License: zlib +X-Comment: http://code.google.com/p/pyspatialite/issues/detail?id=3 + +Files: debian/* +Copyright: © 2011, David Paleino <da...@debian.org> +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. diff --git a/debian/patches/00-fix_build.patch b/debian/patches/00-fix_build.patch new file mode 100644 index 0000000..bcd0d7f --- /dev/null +++ b/debian/patches/00-fix_build.patch @@ -0,0 +1,30 @@ +From: David Paleino <da...@debian.org> +Subject: don't embed spatialite files, use system-wide one +Origin: vendor +Forwarded: no + +--- + setup.py | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +--- pyspatialite.orig/setup.py ++++ pyspatialite/setup.py +@@ -113,13 +113,14 @@ def get_amalgamation(): + class MyBuildExt(build_ext): + + def build_extension(self, ext): +- get_amalgamation() ++ #get_amalgamation() + 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.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) + + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b75ec23 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +00-fix_build.patch diff --git a/debian/pyspatialite.doc-base.EX b/debian/pyspatialite.doc-base.EX new file mode 100644 index 0000000..4b9cca6 --- /dev/null +++ b/debian/pyspatialite.doc-base.EX @@ -0,0 +1,20 @@ +Document: pyspatialite +Title: Debian pyspatialite Manual +Author: <insert document author here> +Abstract: This manual describes what pyspatialite is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/pyspatialite/pyspatialite.sgml.gz + +Format: postscript +Files: /usr/share/doc/pyspatialite/pyspatialite.ps.gz + +Format: text +Files: /usr/share/doc/pyspatialite/pyspatialite.text.gz + +Format: HTML +Index: /usr/share/doc/pyspatialite/html/index.html +Files: /usr/share/doc/pyspatialite/html/*.html diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..218df65 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..578d43d --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://code.google.com/p/pyspatialite/downloads/list \ +http://pyspatialite.googlecode.com/files/pyspatialite-(\d+.*)\.tar.gz -- Python interface to Spatialite _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel