This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository mapnik-clipper.
commit 6b3fa0f2413add84ae01bebebac4e3dd28a3be19 Author: Bas Couwenberg <sebas...@xs4all.nl> Date: Sat Sep 12 14:04:38 2015 +0200 Initial Debian packaging. --- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 21 +++++++++++++++++ debian/copyright | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/gbp.conf | 16 +++++++++++++ debian/get-orig-source | 51 ++++++++++++++++++++++++++++++++++++++++ debian/install | 2 ++ debian/rules | 21 +++++++++++++++++ debian/source/format | 1 + debian/upstream/metadata | 6 +++++ debian/watch | 8 +++++++ 11 files changed, 193 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f9996c3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mapnik-clipper (0.0~20150707-33c9329+ds-1) UNRELEASED; urgency=medium + + * Initial release (Closes: #nnnnnn) + + -- Bas Couwenberg <sebas...@debian.org> Fri, 11 Sep 2015 23:50:44 +0200 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..a31adc1 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: mapnik-clipper +Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org> +Uploaders: Bas Couwenberg <sebas...@debian.org> +Section: science +Priority: optional +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.6 +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/mapnik-clipper.git/ +Vcs-Git: git://anonscm.debian.org/pkg-grass/mapnik-clipper.git +Homepage: https://github.com/mapnik/clipper + +Package: libmapnik-clipper-dev +Architecture: all +Section: libdevel +Depends: ${misc:Depends} +Description: Mapnik clipper library + The Mapnik clipper library performs clipping and offsetting for Mapnik + geometries. + . + Mapnik is a C++/Python toolkit for developing GIS applications. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f039407 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,61 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Clipper +Upstream-Contact: https://github.com/mapnik/clipper/issues +Source: https://github.com/mapnik/clipper +Files-Excluded: cpp/*/*.exe + C*/*/*/bin/*/*.dll + C*/*/*/bin/*/*.exe + Delphi/*/*.exe + Documentation/clipper.chm + +Files: * +Copyright: 2010-2015, Angus Johnson +License: BSL-1.0 + +Files: debian/* +Copyright: 2015, Bas Couwenberg <sebas...@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..5441174 --- /dev/null +++ b/debian/get-orig-source @@ -0,0 +1,51 @@ +#!/bin/bash + +set -e + +REMOTE=upstream +BRANCH=${REMOTE}/r493-mapnik + +if [ $(git remote show ${REMOTE} | wc -l) -eq 0 ]; then + git remote add ${REMOTE} https://github.com/mapnik/clipper.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} + +# Exclude pre-built Windows binaries from upstream tarball + +DEBIANDIR=$(readlink -f $(dirname $0)) +PACKAGEDIR=$(readlink -f $(dirname ${DEBIANDIR})) +PARENTDIR=$(readlink -f $(dirname ${PACKAGEDIR})) + +TMPDIR=$(mktemp -d) + +TARDIR=${PACKAGE}-${VERSION} + +tar -xaf ../${PACKAGE}_${VERSION}.orig.tar.gz -C ${TMPDIR} + +cd ${TMPDIR} + +find ${TARDIR} -name "*.chm" -delete +find ${TARDIR} -name "*.dll" -delete +find ${TARDIR} -name "*.exe" -delete + +TARFILE="${PACKAGE}_${VERSION}+ds.orig.tar.gz" + +GZIP="--best --no-name" XZ_OPT="-6v" tar --owner=root --group=root --mode=a+rX -caf ${TARFILE} "${TARDIR}" + +mv ${TARFILE} ${PARENTDIR} + +rm -rf ${TARDIR} +cd - +rm -rf ${TMPDIR} + +exit 0 diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..b946b20 --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +cpp/clipper.cpp usr/src/mapnik-clipper +cpp/clipper.hpp usr/include/mapnik-clipper diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c25ab5f --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +# DH_VERBOSE := 1 + +%: + dh $@ \ + --sourcedirectory=cpp \ + --parallel + +override_dh_auto_configure: + # Not needed + +override_dh_auto_build: + ./cpp/fix_members.sh + +override_dh_install: + dh_install --list-missing + +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..f948581 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +--- +Bug-Database: https://github.com/mapnik/clipper/issues +Bug-Submit: https://github.com/mapnik/clipper/issues/new +Name: Clipper +Repository: https://github.com/mapnik/clipper.git +Repository-Browse: https://github.com/mapnik/clipper diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2246ba2 --- /dev/null +++ b/debian/watch @@ -0,0 +1,8 @@ +version=3 +opts=\ +dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\ +uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\ +filenamemangle=s/(?:.*?)?(?:rel|v|clipper)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/clipper-$1.$2/,\ +repacksuffix=+ds \ +https://github.com/mapnik/clipper/releases \ +(?:.*?/)?(?:rel|v|clipper)?[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapnik-clipper.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel