[med-svn] [r-cran-rniftilib] 09/11: New upstream version in SVN

Andreas Tille tille at debian.org
Sat Jan 23 07:53:56 UTC 2016


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

tille pushed a commit to branch master
in repository r-cran-rniftilib.

commit 8f9862db4a41ebe4dc389a036b8b21cf09b99c63
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jan 23 08:53:01 2016 +0100

    New upstream version in SVN
---
 debian/changelog       |  7 +++++++
 debian/get-orig-source | 34 ++++++++++++++++++++++++++++++++++
 debian/rules           |  3 +--
 debian/watch           |  6 ++++--
 4 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9ceb995..839edf7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+r-cran-rniftilib (0.0-35.r79-1) UNRELEASED; urgency=medium
+
+  * New upstream version in SVN
+  * Moved to Git
+
+ -- Andreas Tille <tille at debian.org>  Sat, 23 Jan 2016 08:50:58 +0100
+
 r-cran-rniftilib (0.0-32-1) unstable; urgency=low
 
   * Initial release (closes: #717715)
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..d7398c6
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,34 @@
+#!/bin/sh
+# if you need to repack for whatever reason you can
+# use this script via uscan or directly
+#
+# FIXME: currently the code is not conform to Debian Policy
+#        http://www.debian.org/doc/debian-policy/ch-source.html
+#        "get-orig-source (optional)"
+#        This target may be invoked in any directory, ...
+# --> currently it is assumed the script is called in the
+#     source directory featuring the debian/ dir
+
+COMPRESS=xz
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+
+rpkgname=Rniftilib
+SVNURI="svn://svn.r-forge.r-project.org/svnroot/rniftilib/pkg/$rpkgname"
+revision=`LANG=C svn info ${SVNURI} | grep "^Last Changed Rev:" | sed 's/Last Changed Rev: *//'`
+echo $revision
+
+mkdir -p ../tarballs
+cd ../tarballs
+# svn export conserves time stamps of the files, checkout does not
+LC_ALL=C svn -q export ${SVNURI} || true
+
+VERSION=`grep ^Version $rpkgname/DESCRIPTION | sed "s/^Version: *//"`.r${revision}
+TARDIR=${NAME}-${VERSION}
+
+mv $rpkgname $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
index f1e58a0..198b51e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,5 +9,4 @@
 include /usr/share/R/debian/r-cran.mk
 
 get-orig-source:
-	mkdir -p ../tarballs
-	uscan --verbose --force-download --destdir=../tarballs
+	. debian/get-orig-source
diff --git a/debian/watch b/debian/watch
index ad73784..57f313b 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,4 @@
-version=3
-http://cran.r-project.org/src/contrib/Rniftilib_([\d.-]*)\.tar\.gz
+# Rniftilib is not maintained at CRAN and does not have a download tarball at rforge
+
+#version=3
+#http://cran.r-project.org/src/contrib/Rniftilib_([\d.-]*)\.tar\.gz

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



More information about the debian-med-commit mailing list