[med-svn] [python-lefse] 02/02: Add initial packaging

Andreas Tille tille at debian.org
Tue Jul 26 14:00:44 UTC 2016


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

tille pushed a commit to branch master
in repository python-lefse.

commit 04be72aefbc869639b7debef01bc1ba267527e22
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jul 26 15:59:32 2016 +0200

    Add initial packaging
---
 debian/changelog       |  5 +++++
 debian/compat          |  1 +
 debian/control         | 19 +++++++++++++++++++
 debian/copyright       | 45 +++++++++++++++++++++++++++++++++++++++++++++
 debian/get-orig-source | 27 +++++++++++++++++++++++++++
 debian/rules           |  8 ++++++++
 debian/source/format   |  1 +
 debian/watch           |  3 +++
 8 files changed, 109 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b7583ee
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-lefse (1.0+20151228-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org>  Mon, 25 Jul 2016 14:09:29 +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..e35bbf2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: python-lefse
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               python-all,
+               dh-python,
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-lefse.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/python-lefse.git
+Homepage: https://bitbucket.org/nsegata/lefse
+
+Package: python-lefse
+Architecture: all
+Depends: ${python:Depends},
+         ${misc:Depends},
+Description: this python module is needed for metabit
+ A proper long description needs to be sorted out with upstream
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..51bb897
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,45 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: LEfSe
+Upstream-Contact:  Nicola Segata <nicola.segata at unitn.it>
+Source: https://bitbucket.org/nsegata/lefse/downloads
+
+Files: *
+Copyright: 2014-2016 Nicola Segata <nicola.segata at unitn.it>
+License: to_be_clarified
+
+Files: format_input.py
+Copyright: 2014 George Weingart - george.weingart at gmail.com
+License: to_be_clarified
+
+Files: lefsebiom/AbundanceTable.py
+       lefsebiom/ConstantsBreadCrumbs.py
+       lefsebiom/ValidateData.py
+Copyright: 2012 Timothy Tickle
+License: expat
+
+Files: lefsebiom/CClade.py
+Copyright: 2012 Curtis Huttenhower
+License: expat
+
+Files: debian/*
+Copyright: 2016 Andreas Tille <tille at debian.org>
+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/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..afe6121
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+COMPRESS=xz
+
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+ORIGNAME=`echo $NAME | sed 's/^python-//'`
+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 *
+if [ ! -x /usr/bin/hg ] ; then
+  echo "sudo apt-get install mercurial"
+  exit 1
+fi
+hg clone --quiet https://bitbucket.org/nsegata/lefse
+cd $ORIGNAME
+VERSION=${MVERSION}+`date -d @$(hg log --template '{date}' -l 1) +%Y%m%d`
+cd ..
+TARDIR=${NAME}-${VERSION}
+mv ${ORIGNAME} ${TARDIR}
+rm -rf ${TARDIR}/.hg*
+
+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..10f28a4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+export PYBUILD_NAME=lefse
+
+%:
+	dh $@  --with python2 --buildsystem=pybuild
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/watch b/debian/watch
new file mode 100644
index 0000000..e91af9a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+# version=3
+# upstream has not proper versioning
+

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



More information about the debian-med-commit mailing list