[libmtj-java] 01/23: Inject libmtj-java as the last final precondition for beast; this packaging is NOT finished and doese NOT work in the current state

Andreas Tille tille at debian.org
Tue Sep 2 10:00:49 UTC 2014


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

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

commit 8ec55402e6721628eec2ad4e02f993d07c7acdcd
Author: Andreas Tille <tille at debian.org>
Date:   Wed Mar 7 08:51:38 2012 +0000

    Inject libmtj-java as the last final precondition for beast; this packaging is NOT finished and doese NOT work in the current state
---
 debian/changelog         |  5 +++++
 debian/compat            |  1 +
 debian/control           | 17 +++++++++++++++++
 debian/get-orig-source   | 32 ++++++++++++++++++++++++++++++++
 debian/libmtj-java.jlibs |  1 +
 debian/rules             |  9 +++++++++
 debian/source/format     |  1 +
 debian/watch             |  5 +++++
 8 files changed, 71 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..794009f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mtj (0.9.14-1) unstable; urgency=low
+
+  * Initial release (Closes: #??????)
+
+ -- Andreas Tille <tille at debian.org>  Sat, 21 Jan 2012 15:15:57 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1f3e235
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,17 @@
+Source: mtj
+Section: java
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+DM-Upload-Allowed: yes
+Uploaders: Andreas Tille <tille at debian.org>
+Build-Depends: debhelper (>= 8), javahelper (>=0.25), openjdk-6-jdk, ant
+Standards-Version: 3.9.3
+Homepage: http://code.google.com/p/matrix-toolkits-java/
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/libmtj-java/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/libmtj-java/trunk/
+
+Package: libmtj-java
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${java:Depends}
+Recommends: ${java:Recommends}
+Description: 
\ No newline at end of file
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..6c5b391
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,32 @@
+#!/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}
+cd ${UARCHIVEDIR}
+
+# Remove unneeded binaries
+rm -rf lib/junit
+
+cd ..
+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/libmtj-java.jlibs b/debian/libmtj-java.jlibs
new file mode 100644
index 0000000..616230e
--- /dev/null
+++ b/debian/libmtj-java.jlibs
@@ -0,0 +1 @@
+lib/mtj.jar
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..457aec1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+JAVA_HOME=/usr/lib/jvm/default-java
+
+%:
+	dh $@ --with javahelper
+
+get-orig-source:
+	uscan --verbose --force-download
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..7be910d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+# http://googlecode.debian.net/p/matrix-toolkits-java/mtj-([.\d]+)\.zip
+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

-- 
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