[mapbox-wagyu] 02/02: Initial Debian packaging.

Bas Couwenberg sebastic at debian.org
Sat Jun 10 20:50:59 UTC 2017


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

sebastic pushed a commit to branch master
in repository mapbox-wagyu.

commit 13813ebd1949cf3b4e026d93ad23916db0286730
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jun 9 10:36:01 2017 +0200

    Initial Debian packaging.
---
 debian/changelog                  |  5 +++
 debian/compat                     |  1 +
 debian/control                    | 29 ++++++++++++++++
 debian/copyright                  | 72 +++++++++++++++++++++++++++++++++++++++
 debian/docs                       |  2 ++
 debian/gbp.conf                   | 16 +++++++++
 debian/install                    |  1 +
 debian/patches/no-mason.patch     | 28 +++++++++++++++
 debian/patches/no-test-data.patch | 18 ++++++++++
 debian/patches/series             |  2 ++
 debian/rules                      | 13 +++++++
 debian/source/format              |  1 +
 debian/upstream/metadata          |  6 ++++
 debian/watch                      |  7 ++++
 14 files changed, 201 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..12764e5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mapbox-wagyu (0.4.2-1) unstable; urgency=medium
+
+  * Initial release (Closes: #864571)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 09 Jun 2017 09:15:26 +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..9832424
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: mapbox-wagyu
+Section: libdevel
+Priority: optional
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at debian.org>
+Build-Depends: debhelper (>= 9),
+               libboost-dev,
+               libmapbox-geometry-dev,
+               rapidjson-dev
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/mapbox-wagyu.git/
+Vcs-Git: https://anonscm.debian.org/git/pkg-grass/mapbox-wagyu.git
+Homepage: https://github.com/mapbox/wagyu
+
+Package: libmapbox-wagyu-dev
+Architecture: all
+Depends: libmapbox-geometry-dev,
+         ${misc:Depends}
+Description: Wagyu Geometry Processing Library
+ Wagyu is a general library for the following basic geometric operations:
+ .
+  - Union
+  - Intersection
+  - Difference
+  - XOR
+ .
+ The output geometry from each of these operations is guaranteed to be
+ valid and simple as per the OGC.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d726c23
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,72 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Wagyu Geometry Processing Library
+Upstream-Contact: Mapbox (https://github.com/mapbox/wagyu/issues)
+Source: https://github.com/mapbox/wagyu
+
+Files: *
+Copyright: 2016, Mapbox
+      2010-2015, Angus Johnson
+Comment: Parts of the code in the Wagyu Library are derived from the
+ version of the Clipper Library by Angus Johnson listed below.
+ .
+ Author    :  Angus Johnson
+ Version   :  6.4.0
+ Date      :  2 July 2015
+ Website   :  http://www.angusj.com
+ .
+ Copyright for portions of the derived code in the Wagyu library are held
+ by Angus Johnson, 2010-2015. All other copyright for the Wagyu Library
+ are held by Mapbox, 2016. This code is published in accordance with, and
+ retains the same license as the Clipper Library by Angus Johnson.
+License: BSL-1.0
+
+Files: tests/catch.hpp
+Copyright: 2012, Two Blue Cubes Ltd.
+License: BSL-1.0
+
+Files: debian/*
+Copyright: 2016, Bas Couwenberg <sebastic at debian.org>
+License: BSL-1.0 or GPL-3+
+
+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-3+
+ 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 <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..7bf21f2
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.md
+docs/
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/install b/debian/install
new file mode 100644
index 0000000..ab093ac
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+include/ usr/
diff --git a/debian/patches/no-mason.patch b/debian/patches/no-mason.patch
new file mode 100644
index 0000000..8a83f70
--- /dev/null
+++ b/debian/patches/no-mason.patch
@@ -0,0 +1,28 @@
+Description: Disable mason, dependencies are packaged.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@ GEOMETRY_VERSION=0.9.0
+ 
+ CC := $(CC)
+ CXX := $(CXX)
+-CXXFLAGS := $(CXXFLAGS) -Iinclude -isystem mason_packages/headers/boost/$(BOOST_VERSION)/include -isystem mason_packages/headers/rapidjson/$(RAPIDJSON_VERSION)/include -isystem mason_packages/headers/geometry/$(GEOMETRY_VERSION)/include -std=c++11
++CXXFLAGS := $(CXXFLAGS) -Iinclude -std=c++11
+ RELEASE_FLAGS := -O3 -DNDEBUG
+ WARNING_FLAGS := -Wall -Wextra -Weffc++ -Werror -Wsign-compare -Wfloat-equal -Wshadow -Wconversion
+ DEBUG_FLAGS := -g -O0 -DDEBUG -fno-inline-functions -fno-omit-frame-pointer
+@@ -25,10 +25,10 @@ mason_packages/headers/geometry/$(GEOMET
+ 
+ deps: mason_packages/headers/boost/$(BOOST_VERSION)/include mason_packages/headers/rapidjson/$(RAPIDJSON_VERSION)/include mason_packages/headers/geometry/$(GEOMETRY_VERSION)/include
+ 
+-build-test: tests/* include/mapbox/geometry/* deps Makefile
++build-test: tests/* include/mapbox/geometry/* Makefile
+ 	$(CXX) $(RELEASE_FLAGS) tests/test.cpp tests/unit/*.cpp $(WARNING_FLAGS) $(CXXFLAGS) -isystem ./tests -o test
+ 
+-build-debug: tests/* include/mapbox/geometry/* deps Makefile
++build-debug: tests/* include/mapbox/geometry/* Makefile
+ 	$(CXX) $(DEBUG_FLAGS) tests/test.cpp tests/unit/*.cpp $(WARNING_FLAGS) $(CXXFLAGS) -isystem ./tests -o test
+ 
+ build-fixture-tester-r:
diff --git a/debian/patches/no-test-data.patch b/debian/patches/no-test-data.patch
new file mode 100644
index 0000000..5d9305d
--- /dev/null
+++ b/debian/patches/no-test-data.patch
@@ -0,0 +1,18 @@
+Description: Skip tests for missing test data.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/tests/run-geometry-tests.sh
++++ b/tests/run-geometry-tests.sh
+@@ -13,6 +13,11 @@ elif [ ! -e "$TESTER" ]; then
+     exit 1
+ fi
+ 
++if [ ! -e "./tests/geometry-test-data/input-polyjson" ]; then
++    echo "No test data available, skipping tests."
++    exit 0
++fi
++
+ 
+ mkdir -p ./tests/output-polyjson
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a7be845
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+no-mason.patch
+no-test-data.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..af7e736
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+	dh $@ --parallel
+
+override_dh_auto_build:
+	# Nothing to build for header-only library
+
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..bec0059
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/mapbox/wagyu/issues
+Bug-Submit: https://github.com/mapbox/wagyu/issues/new
+Name: Wagyu Geometry Processing Library
+Repository: https://github.com/mapbox/wagyu.git
+Repository-Browse: https://github.com/mapbox/wagyu
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5e8c855
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
+filenamemangle=s/(?:.*?)?(?:rel|v|wagyu)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/wagyu-$1.$2/ \
+https://github.com/mapbox/wagyu/releases \
+(?:.*?/)?(?:rel|v|wagyu)?[\-\_]?(\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/mapbox-wagyu.git



More information about the Pkg-grass-devel mailing list