[med-svn] [pixelmed-codec] 01/08: Inject pixelmed-codec which is an offspring of pixelmed and needed to build the latest version of it

Andreas Tille tille at debian.org
Thu Sep 14 16:48:55 UTC 2017


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

tille pushed a commit to branch master
in repository pixelmed-codec.

commit 3ab5d63921ecb622ba137a367778ccca4a7315c5
Author: Andreas Tille <tille at debian.org>
Date:   Thu Oct 8 10:58:27 2015 +0000

    Inject pixelmed-codec which is an offspring of pixelmed and needed to build the latest version of it
---
 debian/changelog                    |  5 +++++
 debian/compat                       |  1 +
 debian/control                      | 29 ++++++++++++++++++++++++++
 debian/copyright                    | 41 +++++++++++++++++++++++++++++++++++++
 debian/libpixelmed-codec-java.jlibs |  1 +
 debian/patches/debian_jars.patch    | 40 ++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  2 ++
 debian/patches/set_java_home.patch  | 15 ++++++++++++++
 debian/rules                        | 13 ++++++++++++
 debian/source/format                |  1 +
 debian/source/options               |  2 ++
 debian/watch                        |  2 ++
 12 files changed, 152 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4786e03
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pixelmed-codec (20141206-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #???)
+
+ -- Andreas Tille <tille at debian.org>  Thu, 08 Oct 2015 10:39:14 +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..df7aa68
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: pixelmed-codec
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: graphics
+Priority: optional
+Build-Depends: debhelper (>= 9)
+Build-Depends-Indep: default-jdk,
+                     javahelper,
+                     junit4,
+                     libhsqldb-java
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/pixelmed-codec/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/pixelmed-codec/trunk/
+Homepage: http://www.pixelmed.com
+
+Package: libpixelmed-codec-java
+Architecture: all
+Section: java
+Depends: ${java:Depends},
+         ${misc:Depends}
+Description: some imaging codices for pixelmed DICOM image and ECG viewer
+ Pixelmed is a stand-alone DICOM toolkit that implements code for reading
+ and creating DICOM data, DICOM network and file support, a database of
+ DICOM objects, support for display of directories, images, reports and
+ spectra, and DICOM object validation.
+ .
+ This package contains some file format codecs used by pixelmed but
+ provided as a separate tarball.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5d07dbc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,41 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PixelMed Java DICOM Toolkit
+Upstream-Contact: pixelmed_dicom at yahoogroups.com
+Source: http://www.dclunie.com/pixelmed/software/codec/
+
+Files: *
+Copyright: 2014, David A. Clunie DBA PixelMed Publishing. All rights reserved.
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2015, Andreas Tille <tille at debian.org>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without modification, are
+ permitted provided that the following conditions are met:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this list of
+    conditions and the following disclaimers.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of
+    conditions and the following disclaimers in the documentation and/or other materials
+    provided with the distribution.
+ .
+ 3. Neither the name of PixelMed Publishing nor the names of its contributors may
+    be used to endorse or promote products derived from this software.
+ .
+ This software is provided by the copyright holders and contributors "as is" and any
+ express or implied warranties, including, but not limited to, the implied warranties
+ of merchantability and fitness for a particular purpose are disclaimed. In no event
+ shall the copyright owner or contributors be liable for any direct, indirect, incidental,
+ special, exemplary, or consequential damages (including, but not limited to, procurement
+ of substitute goods or services; loss of use, data or profits; or business interruption)
+ however caused and on any theory of liability, whether in contract, strict liability, or
+ tort (including negligence or otherwise) arising in any way out of the use of this software,
+ even if advised of the possibility of such damage.
+ .
+ This software has neither been tested nor approved for clinical use or for incorporation in
+ a medical device. It is the redistributor's or user's responsibility to comply with any
+ applicable local, state, national or international regulations.
+
diff --git a/debian/libpixelmed-codec-java.jlibs b/debian/libpixelmed-codec-java.jlibs
new file mode 100644
index 0000000..2554543
--- /dev/null
+++ b/debian/libpixelmed-codec-java.jlibs
@@ -0,0 +1 @@
+pixelmed_codec.jar
diff --git a/debian/patches/debian_jars.patch b/debian/patches/debian_jars.patch
new file mode 100644
index 0000000..de2488b
--- /dev/null
+++ b/debian/patches/debian_jars.patch
@@ -0,0 +1,40 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 08 Oct 2015 10:39:14 +0200
+Description: Set explicit PATH to Debian jars
+ Might be only needed to generate javadoc
+
+--- a/Makefile.common.mk
++++ b/Makefile.common.mk
+@@ -2,7 +2,7 @@
+ # Note that PATHTOROOT must have been specified prior to including this file
+ #
+ 
+-JUNITJAR = ${PATHTOROOT}/lib/junit/junit-4.8.1.jar
++JUNITJAR = /usr/share/java/junit4.jar
+ 
+ PATHTOTESTFILESFROMROOT = ./testpaths
+ 
+--- a/Makefile
++++ b/Makefile
+@@ -31,7 +31,7 @@ SOURCERELEASEFILES = \
+ 	${SUBDIRS}
+ 
+ DEPENDENCYRELEASEFILESWITHOUTREADME = \
+-	lib/junit/junit-4.8.1.jar \
++	/usr/share/java/junit4.jar \
+ 	LICENSES
+ 
+ DEPENDENCYRELEASEFILES = \
+@@ -148,11 +148,7 @@ doxygenrelease: .exclude.list #clean jav
+ javadoc:
+ 	rm -rf docs/javadoc
+ 	javadoc \
+-		-classpath .:lib/additional/excalibur-bzip2-1.0.jar:lib/additional/hsqldb.jar:lib/additional/vecmath1.2-1.14.jar:lib/additional/commons-codec-1.3.jar:lib/additional/commons-net-ftp-2.0.jar:lib/additional/jmdns.jar:lib/additional/jpedalSTD.jar:lib/junit/junit-4.8.1.jar \
+-		-link http://download.oracle.com/javase/1.5.0/docs/api/ \
+-		-link http://jpedal.org/javadoc/ \
+-		-link http://www.hsqldb.org/doc/src/ \
+-		-link http://javasourcecode.org/html/open-source/junit/junit-4.8.1/ \
++		-classpath .:lib/additional/excalibur-bzip2-1.0.jar:/usr/share/java/hsqldb.jar:lib/additional/vecmath1.2-1.14.jar:lib/additional/commons-codec-1.3.jar:lib/additional/commons-net-ftp-2.0.jar:lib/additional/jmdns.jar:lib/additional/jpedalSTD.jar:/usr/share/java/junit4.jar \
+ 		-protected -d docs/javadoc \
+ 		-encoding "UTF8" \
+ 		${SUBPACKAGES}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bded595
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+set_java_home.patch
+# debian_jars.patch
diff --git a/debian/patches/set_java_home.patch b/debian/patches/set_java_home.patch
new file mode 100644
index 0000000..67f12b3
--- /dev/null
+++ b/debian/patches/set_java_home.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 08 Oct 2015 10:39:14 +0200
+Description: Work around OSX specific way to set JAVA_HOME
+
+--- a/Makefile.common.mk
++++ b/Makefile.common.mk
+@@ -17,7 +17,7 @@ JAVACTARGETOPTIONS=-target ${JAVAVERSION
+ JAVACOPTIONS = -O ${JAVACTARGETOPTIONS} -encoding "UTF8" -Xlint:deprecation
+ 
+ .java.class:
+-	export JAVAVERSIONTARGETJARFILE=`/usr/libexec/java_home -v ${JAVAVERSIONTARGET} | tail -1`/jre/lib/rt.jar; javac ${JAVACOPTIONS} \
++	export JAVAVERSIONTARGETJARFILE=${JAVA_HOME}/jre/lib/rt.jar; javac ${JAVACOPTIONS} \
+ 		-classpath ${PATHTOROOT} \
+ 		-sourcepath ${PATHTOROOT} $<
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c044063
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+
+VERSION = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d- | cut -f2 -d~)
+
+%:
+	dh $@ --with javahelper
+
+#override_dh_auto_build:
+#	$(MAKE) all
+#	$(MAKE) javadoc
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/source/options b/debian/source/options
new file mode 100644
index 0000000..22a4de9
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = xz
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e814f9d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.dclunie.com/pixelmed/software/codec/([b\d]+)_current/pixelmedjavacodec_sourcerelease.([\d]+).tar.bz2

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



More information about the debian-med-commit mailing list