[med-svn] [malt] 02/02: Inject very rudimentary, not working yet packaging

Andreas Tille tille at debian.org
Tue Oct 11 18:35:33 UTC 2016


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

tille pushed a commit to branch master
in repository malt.

commit 6ad8ea20ad0ea2374749e4ea70e46408b1e5a4d6
Author: Andreas Tille <tille at debian.org>
Date:   Tue Oct 11 20:34:11 2016 +0200

    Inject very rudimentary, not working yet packaging
---
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 16 ++++++++++++++++
 debian/copyright         | 27 +++++++++++++++++++++++++++
 debian/doc-base          | 20 ++++++++++++++++++++
 debian/get-orig-source   | 25 +++++++++++++++++++++++++
 debian/rules             | 26 ++++++++++++++++++++++++++
 debian/source/format     |  1 +
 debian/upstream/metadata | 12 ++++++++++++
 debian/watch             |  3 +++
 10 files changed, 136 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..388f866
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+malt (0.0+20160916-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org>  Tue, 11 Oct 2016 20:08:16 +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..564009a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: malt
+Section: science
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/malt.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/malt.git
+Homepage: https://github.com/danielhuson/malt
+
+Package: malt
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: MEGAN alignment tool
+ MALT - MEGAN alignment tool
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f62c8ec
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: MALT
+Upstream-Contact: Daniel Huson <daniel.huson at uni-tuebingen.de>
+Source: https://github.com/danielhuson/malt
+Files-Excluded: */jars/*
+
+Files: *
+Copyright: 20xx-20yy <upstream>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2016 Andreas Tille <tille at debian.org>
+License: GPL-3+
+
+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.
+ .
+ On a Debian system the GNU GPL license version 3 is distributed in
+ /usr/share/common-licenses/GPL-3.
diff --git a/debian/doc-base b/debian/doc-base
new file mode 100644
index 0000000..5e7e1d4
--- /dev/null
+++ b/debian/doc-base
@@ -0,0 +1,20 @@
+Document: <pkg>
+Title: <title for this doc>
+Author: <author of this doc>
+Abstract: <if you have no better clue the short and
+ long description from debian/control might fit here as well>
+Section: Science/{Biology,Medicine} # see /usr/share/doc/doc-base/doc-base.txt.gz "2.3.3. The `section' field"
+
+# pick one of the below options
+Format: Text
+Files: /usr/share/doc/<pkg>/<pkg>.txt.gz
+
+Format: html
+Index: /usr/share/doc/<pkg>/html/index.html
+Files: /usr/share/doc/<pkg>/html/*
+
+Format: pdf
+Files: /usr/share/doc/<pkg>/<pkg>.pdf.gz
+
+Format: postscript
+Files: /usr/share/doc/<pkg>/<pkg>.ps.gz
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..e957b84
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+COMPRESS=xz
+
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
+
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+git clone --quiet https://github.com/danielhuson/malt
+cd $NAME
+VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
+# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
+git restore-mtime || true
+cd ..
+TARDIR=${NAME}-${VERSION}
+mv ${NAME} ${TARDIR}
+rm -rf ${TARDIR}/.git
+rm -f ${TARDIR}/jars/*
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1ef14d9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+export LC_ALL=C.UTF-8
+
+# some helpful variables - uncomment them if needed
+# shamelessly stolen from http://jmtd.net/log/awk/
+#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
+#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
+#GIT_TAG        := $(subst ~,_,$(VERSION))
+
+# alternatively to manually set those variables, you can
+#  include /usr/share/dpkg/default.mk
+# and use what is set there.
+
+# for hardening you might like to uncomment this:
+# export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+	dh $@
+
+#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..d8b5812
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,12 @@
+Reference:
+  Author: 
+  Title: 
+  Journal: 
+  Year: 
+  Volume: 
+  Number: 
+  Pages: 
+  DOI: 
+  PMID:
+  URL: 
+  eprint: 
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b170352
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+https://github.com/danielhuson/malt/releases .*/archive/.*(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/malt.git



More information about the debian-med-commit mailing list