[libosmium] 02/02: Initial Debian packaging.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Mar 6 17:08:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository libosmium.

commit fdc0e872443cf83be6cb64bfa3427c728d30677b
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Mar 6 14:35:52 2015 +0100

    Initial Debian packaging.
---
 debian/changelog         |  5 ++++
 debian/compat            |  1 +
 debian/control           | 32 ++++++++++++++++++++++++
 debian/copyright         | 63 ++++++++++++++++++++++++++++++++++++++++++++++++
 debian/gbp.conf          | 16 ++++++++++++
 debian/get-orig-source   | 19 +++++++++++++++
 debian/rules             | 10 ++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata |  7 ++++++
 9 files changed, 154 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..52ddcdc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libosmium (0.0~20150303-f074d94-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #779923)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 06 Mar 2015 13:50:11 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ae23f28
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: libosmium
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/libosmium.git/
+Vcs-Git: git://anonscm.debian.org/pkg-grass/libosmium.git
+Homepage: http://osmcode.org/libosmium/
+
+Package: libosmium-dev
+Architecture: any
+Section: libdevel
+Depends: ${misc:Depends}
+Suggests: osmium,
+          osmium-contrib,
+          node-osmium,
+          pyosmium
+Description: Fast and flexible C++ library for working with OpenStreetMap data
+ The Osmium library has extensive support for all types of OSM entities: nodes,
+ ways, relations, and changesets. It allows reading from and writing to OSM
+ files in XML and PBF formats, including change files and full history files.
+ Osmium can store OSM data in memory and on disk in various formats and using
+ various indexes. Its easy to use handler interface allows you to quickly write
+ data filtering and conversion functions. Osmium can create WKT, WKB, OGR, GEOS
+ and GeoJSON geometries for easy conversion into many GIS formats and it can
+ assemble multipolygons from ways and relations.
+ .
+ Osmium is a header-only library, so there is nothing to compile to build it.
+ Just include the header files you need.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f741462
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,63 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libosmium
+Upstream-Contact: Osmium Developers <dev at openstreetmap.org>
+Source: https://github.com/osmcode/libosmium
+
+Files: *
+Copyright: 2013-2015, Jochen Topf <jochen at topf.org>
+                2012, Two Blue Cubes Ltd.
+                2004, John Maddock
+License: BSL-1.0
+
+Files: examples/osmium_convert.cpp
+Copyright: disclaimed
+License: public-domain
+ The code in this example file is released into the Public Domain.
+
+Files: debian/*
+Copyright: © 2015, Bas Couwenberg <sebastic at debian.org>
+License: GPL-2+
+
+License: BSL-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: GPL-2+
+ 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 2 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, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..0088e5c
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+REMOTE=upstream
+BRANCH=${REMOTE}/master
+
+if [ $(git remote show ${REMOTE} | wc -l) -eq 0 ]; then
+	git remote add ${REMOTE} https://github.com/osmcode/libosmium.git
+fi
+
+git fetch ${REMOTE} --no-tags
+
+PACKAGE=$(dpkg-parsechangelog | grep ^Source: | awk '{print $2}')
+
+COMMIT=$(git log -n1 --format=format:%h ${BRANCH})
+DATE=$(date +%Y%m%d --date="@$(git log -n1 --format=format:%ct ${BRANCH})")
+
+VERSION="0.0~${DATE}-${COMMIT}"
+
+git archive --format=tar.gz --prefix=${PACKAGE}-${VERSION}/ -o ../${PACKAGE}_${VERSION}.orig.tar.gz ${BRANCH}
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6f059c0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+%:
+	dh $@ --parallel
+
+get-orig-source:
+	. debian/get-orig-source
+
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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..e780e66
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,7 @@
+---
+Bug-Database: https://github.com/osmcode/libosmium/issues
+Bug-Submit: https://github.com/osmcode/libosmium/issues/new
+Contact: Osmium Developers <dev at openstreetmap.org>
+Name: libosmium
+Repository: https://github.com/osmcode/libosmium.git
+Repository-Browse: https://github.com/osmcode/libosmium

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/libosmium.git



More information about the Pkg-grass-devel mailing list