[mgrs] 02/02: Initial Debian packaging.

Bas Couwenberg sebastic at xs4all.nl
Sat Jan 3 00:51:42 UTC 2015


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

sebastic-guest pushed a commit to branch master
in repository mgrs.

commit 9cfbdd6adaa624cf57cca618b225547b0f3eb2f5
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jan 3 00:29:08 2015 +0100

    Initial Debian packaging.
---
 debian/changelog          |  5 +++++
 debian/compat             |  1 +
 debian/control            | 51 +++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright          | 37 ++++++++++++++++++++++++++++++++++
 debian/gbp.conf           | 16 +++++++++++++++
 debian/get-orig-source    | 19 ++++++++++++++++++
 debian/libjs-mgrs.install |  2 ++
 debian/node-mgrs.install  |  2 ++
 debian/rules              | 19 ++++++++++++++++++
 debian/source/format      |  1 +
 debian/tests/control      |  2 ++
 debian/tests/require      |  3 +++
 debian/upstream/metadata  |  6 ++++++
 13 files changed, 164 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dd4cc04
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mgrs (0.0~20131209-80d5465-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #774458)
+
+ -- Bas Couwenberg <sebastic at xs4all.nl>  Fri, 02 Jan 2015 23:56:12 +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..96ad77a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,51 @@
+Source: mgrs
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at xs4all.nl>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-buildinfo,
+               nodejs,
+               node-uglify
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/mgrs.git/
+Vcs-Git: git://anonscm.debian.org/pkg-grass/mgrs.git
+Homepage: https://github.com/proj4js/mgrs
+XS-Testsuite: autopkgtest
+
+Package: libjs-mgrs
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: Javascript for converting between WGS84 lat/lng and MGRS coordinates
+ mgrs is a utility for converting between WGS84 lat/lng and MGRS coordinates,
+ spunoff from proj4js.
+ .
+ It has 3 methods:
+ .
+  * forward, takes an array of [lon,lat] and optional accuracy and returns an
+    mgrs string
+  * inverse, takes an mgrs string and returns a bbox
+  * toPoint, takes an mgrs string, returns an array of '[lon,lat]'
+ .
+ This package contains the mgrs.js javascript file.
+
+Package: node-mgrs
+Architecture: all
+Depends: ${misc:Depends},
+         nodejs
+Description: Utility for converting between WGS84 lat/lng and MGRS coordinates
+ mgrs is a utility for converting between WGS84 lat/lng and MGRS coordinates,
+ spunoff from proj4js.
+ .
+ It has 3 methods:
+ .
+  * forward, takes an array of [lon,lat] and optional accuracy and returns an
+    mgrs string
+  * inverse, takes an mgrs string and returns a bbox
+  * toPoint, takes an mgrs string, returns an array of '[lon,lat]'
+ .
+ This package contains the mgrs module for Node.js.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7d1e89a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mgrs
+Upstream-Contact: https://github.com/proj4js/mgrs/issues
+Source: https://github.com/proj4js/mgrs
+
+Files: *
+Copyright: 2012, Mike Adair,
+           2012, Richard Greenwood,
+           2012, Didier Richard,
+           2012, Stephen Irons,
+           2012, Olivier Terral,
+           2012, Calvin Metcalf
+License: Expat
+
+Files: debian/*
+Copyright: 2015, Bas Couwenberg <sebastic at xs4all.nl>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ 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 AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
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..ea50247
--- /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/proj4js/mgrs.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/libjs-mgrs.install b/debian/libjs-mgrs.install
new file mode 100644
index 0000000..fdb8598
--- /dev/null
+++ b/debian/libjs-mgrs.install
@@ -0,0 +1,2 @@
+mgrs.js     usr/share/javascript/foo/
+mgrs.min.js usr/share/javascript/foo/
diff --git a/debian/node-mgrs.install b/debian/node-mgrs.install
new file mode 100644
index 0000000..d2c4ccf
--- /dev/null
+++ b/debian/node-mgrs.install
@@ -0,0 +1,2 @@
+mgrs.js      usr/lib/nodejs/
+package.json usr/lib/nodejs/mgrs/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e4c0778
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+%:
+	dh $@
+
+override_dh_clean:
+	dh_clean mgrs.min.js
+
+override_dh_auto_build:
+	dh_auto_build
+
+	# Minify Javascript
+	uglifyjs -o mgrs.min.js mgrs.js
+
+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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d4eb64c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-mgrs
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..5fc11a1
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('mgrs');"
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..6fc021e
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/proj4js/mgrs/issues
+Bug-Submit: https://github.com/proj4js/mgrs/issues/new
+Name: mgrs
+Repository: https://github.com/proj4js/mgrs.git
+Repository-Browse: https://github.com/proj4js/mgrs

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



More information about the Pkg-grass-devel mailing list