[med-svn] [python-pyphlan] 02/05: Add initial packaging
Andreas Tille
tille at debian.org
Fri May 27 13:05:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-pyphlan.
commit 77f884390ec3dc6fbc0d4e6ec5389964c3a45eb3
Author: Andreas Tille <tille at debian.org>
Date: Fri May 27 14:37:50 2016 +0200
Add initial packaging
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 18 ++++++++++++++++++
debian/copyright | 32 ++++++++++++++++++++++++++++++++
debian/get-orig-source | 43 +++++++++++++++++++++++++++++++++++++++++++
debian/rules | 16 ++++++++++++++++
debian/source/format | 1 +
debian/watch | 4 ++++
8 files changed, 120 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4b81ef1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-pyphlan (0.0.20151014-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org> Mon, 23 May 2016 16:09:13 +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..239c98f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: python-pyphlan
+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-pyphlan.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/python-pyphlan.git
+Homepage: https://bitbucket.org/nsegata/pyphlan
+
+Package: python-pyphlan
+Architecture: all
+Depends: ${python:Depends},
+ ${misc:Depends},
+Description: abc
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ecef5ea
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PyPhlAn
+Upstream-Contact: Nicola Segata <nicola.segata at unitn.it>
+Source: https://bitbucket.org/nsegata/pyphlan/downloads
+
+Files: *
+Copyright: 2012-2015 Nicola Segata and 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 EV ENT 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 TH E 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..1bfa22f
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,43 @@
+#!/bin/sh -e
+
+# Its obviously not reliable to do the versioning based on the date given in file
+# http://www.netlib.org/f2c/src/version.c
+#
+# This script downloads the ZIP archive and defines the Version as the time stamp
+# of the youngest file inside the archive
+
+COMPRESS=xz
+
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+OVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+
+#VERSION=`wget --quiet -O- http://www.netlib.org/f2c/src/version.c | egrep F2C_version | sed 's/^[^"]*"//' | sed 's/".*$//'`
+#echo $VERSION
+
+mkdir -p ../tarballs
+cd ../tarballs
+
+wget --quiet -N https://bitbucket.org/nsegata/pyphlan/get/tip.tar.bz2
+
+rm -rf ${NAME}* nsegata-pyphlan-*
+
+tar xaf ../tip.tar.bz2
+mv nsegata-pyphlan-* ${NAME}
+cd ${NAME}
+
+rm -f *.pyc .hg*
+VERSION=0.0.`ls -lArt --time-style=+"%Y%m%d" | tail -n 1 | cut -f7 -d" "`
+
+if [ "$OVERSION" = "$VERSION" ] ; then
+ echo "No new version of f2c available."
+ exit 0
+fi
+
+chmod a-x *
+
+cd ..
+
+TARDIR=${NAME}-${VERSION}
+mv ${NAME} ${TARDIR}
+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..478928c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+export PYBUILD_NAME=pyphlan
+export PYBUILD_SYSTEM=custom
+
+%:
+ dh $@ --with python2 --buildsystem=pybuild
+
+
+override_dh_auto_install:
+ dh_auto_install --system=custom --install-args='cp -a *.py debian/python-$(PYBUILD_NAME)/usr/lib/{interpreter}/$(PYBUILD_NAME)'
+
+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/watch b/debian/watch
new file mode 100644
index 0000000..5441438
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=uversionmangle=s/tip/0.0.1/ \
+ https://bitbucket.org/nsegata/pyphlan/downloads .*/(\d\S*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pyphlan.git
More information about the debian-med-commit
mailing list