[nik4] 02/10: Add initial Debian packaging.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun May 29 17:35:03 UTC 2016


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

sebastic pushed a commit to branch master
in repository nik4.

commit ec1af433a163e68dfca8c19670c85c8e87760c75
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Feb 19 00:12:46 2016 +0100

    Add initial Debian packaging.
---
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 35 +++++++++++++++++++++++++++++++++++
 debian/copyright         | 28 ++++++++++++++++++++++++++++
 debian/gbp.conf          | 16 ++++++++++++++++
 debian/get-orig-source   | 19 +++++++++++++++++++
 debian/rules             | 10 ++++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata |  6 ++++++
 debian/watch             |  8 ++++++++
 10 files changed, 129 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..723213f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+nik4 (0.0~20150516-3415338-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #813197)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 19 Feb 2016 00:09:10 +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..66d7148
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: nik4
+Section: utils
+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),
+               dh-python,
+               python-all-dev,
+               python-mapnik
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/nik4.git/
+Vcs-Git: https://anonscm.debian.org/git/pkg-grass/nik4.git
+Homepage: https://github.com/Zverik/Nik4
+
+Package: nik4
+Architecture: any
+Depends: python,
+         ${python:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: Mapnik to image export
+ Nik4 is a mapnik-to-image exporting script using the Mapnik Python
+ bindings.
+ .
+ Nik4 takes great care to preserve values you feed it. If you say you
+ need a 800x600 image, it won't take a pixel less or more. It won't
+ shrink a bounding box or distort lines when specifying so called "scale
+ factor". When you need a 300 dpi image, you tell it --ppi 300 and can be
+ sure you will get what you intended.
+ .
+ Also it can use real-world units, that is, millimeters (and prefers to).
+ Specify dimensions for printing, choose bounding box and ppi scale - and
+ the result won't disappoint. Options are intuitive and plenty, and you
+ will be amazed how much tasks became simpler with Nik4.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8200c37
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Nik4
+Upstream-Contact: Ilya Zverev (https://github.com/Zverik/nik4/issues)
+Source: https://github.com/Zverik/nik4
+
+Files: *
+Copyright: Ilya Zverev
+License: WTFPL
+
+Files: debian/*
+Copyright: 2016, Bas Couwenberg <sebastic at debian.org>
+License: WTFPL
+
+License: WTFPL
+  WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+                     Version 2, December 2004
+ .
+  Copyright (C) 2004 Sam Hocevar <sam at hocevar.net>
+ .
+  Everyone is permitted to copy and distribute verbatim or modified
+  copies of this license document, and changing it is allowed as long
+  as the name is changed.
+ .
+             DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ .
+   0. You just DO WHAT THE FUCK YOU WANT TO.
+
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..28aab19
--- /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/Zverik/Nik4.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..20b34ed
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+%:
+	dh $@ --buildsystem=pybuild --with python2 --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..d48e2b9
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/Zverik/nik4/issues
+Bug-Submit: https://github.com/Zverik/nik4/issues/new
+Name: Nik4
+Repository: https://github.com/Zverik/nik4.git
+Repository-Browse: https://github.com/Zverik/nik4
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b03ddf9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# Upstream has no tagged releases yet.
+#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|nik4)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/nik4-$1.$2/ \
+#https://github.com/Zverik/nik4/releases \
+#(?:.*?/)?(?:rel|v|nik4)?[\-\_]?(\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/nik4.git



More information about the Pkg-grass-devel mailing list