[libmtj-java] 03/06: Upstream moved to Github - adapt d/watch and remove get-orig-source

Andreas Tille tille at debian.org
Fri May 20 19:28:37 UTC 2016


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

tille pushed a commit to branch master
in repository libmtj-java.

commit 623ac0f2ae9b2990b1d1a4c047a5cde827bea596
Author: Andreas Tille <tille at debian.org>
Date:   Fri May 20 21:17:59 2016 +0200

    Upstream moved to Github - adapt d/watch and remove get-orig-source
---
 debian/changelog       |  1 +
 debian/control         |  2 +-
 debian/get-orig-source | 37 -------------------------------------
 debian/rules           |  3 ---
 debian/watch           |  5 +----
 5 files changed, 3 insertions(+), 45 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 268c987..8ecba1c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mtj (0.9.14+dfsg-3) UNRELEASED; urgency=medium
 
   * Upload to main
   * Packaging moved from Debian Med SVN to Debian Java Git
+  * Upstream moved to Github - adapt d/watch and remove get-orig-source
 
  -- Andreas Tille <tille at debian.org>  Fri, 20 May 2016 21:10:39 +0200
 
diff --git a/debian/control b/debian/control
index 22922e7..108f9a8 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9),
 Standards-Version: 3.9.4
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libmtj-java.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-java/libmtj-java.git
-Homepage: http://code.google.com/p/matrix-toolkits-java/
+Homepage: https://github.com/fommil/matrix-toolkits-java/
 
 Package: libmtj-java
 Architecture: all
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index 6f63632..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-# get source for libmtj-java and remove unneeded jars and binaries
-
-set -e
-NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-
-if ! echo $@ | grep -q upstream-version ; then
-    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
-else
-    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
-    if echo "$VERSION" | grep -q "upstream-version" ; then
-        echo "Unable to parse version number"
-        exit
-    fi
-fi
-
-# unmangle version
-UARCHIVEDIR=${NAME}-${VERSION}
-UPSTREAMARCHIVE=${UARCHIVEDIR}.zip
-
-mkdir -p ../tarballs
-cd ../tarballs
-mv ../${UPSTREAMARCHIVE} .
-unzip -q ${UPSTREAMARCHIVE}
-
-# Remove all *.jar files
-# rm -rf ${UARCHIVEDIR}/lib/*
-find ${UARCHIVEDIR} -name "*.jar" -delete
-find ${UARCHIVEDIR} -type d -empty -delete
-
-# Build process deletes javadoc first and rebuilds it afterwards
-# So it is reasonable to save space in the upstream tarball once
-# we are rebuilding it anyway
-rm -rf ${UARCHIVEDIR}/javadoc
-
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$NAME"_"$VERSION"~dfsg.orig.tar.gz "${UARCHIVEDIR}"
-rm -rf ${UARCHIVEDIR}
diff --git a/debian/rules b/debian/rules
index d52d2e5..b5cba41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,3 @@ JAVA_HOME=/usr/lib/jvm/default-java
 
 override_dh_auto_build:
 	dh_auto_build -- -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5
-
-get-orig-source:
-	uscan --verbose --force-download
diff --git a/debian/watch b/debian/watch
index b7451b0..632dd59 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,5 +1,2 @@
 version=3
-opts=dversionmangle=s/\+dfsg// \
- http://code.google.com/p/matrix-toolkits-java/downloads/list?can=1 \
-  .*/mtj-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))|zip) \
-  debian debian/get-orig-source
+https://github.com/fommil/matrix-toolkits-java/releases .*/archive/mtj-(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libmtj-java.git



More information about the pkg-java-commits mailing list