[med-svn] [Git][med-team/orthanc-gdcm][master] 4 commits: building 1.0-1

Sebastien Jodogne gitlab at salsa.debian.org
Thu May 28 14:32:22 BST 2020



Sebastien Jodogne pushed to branch master at Debian Med / orthanc-gdcm


Commits:
361f9f79 by jodogne-guest at 2020-05-28T14:33:00+02:00
building 1.0-1

- - - - -
4c72e501 by jodogne-guest at 2020-05-28T14:37:26+02:00
fix d/rules

- - - - -
7549812b by jodogne-guest at 2020-05-28T14:55:20+02:00
missing build-dependency on unzip

- - - - -
62d1e0f1 by jodogne-guest at 2020-05-28T14:58:10+02:00
missing build-dependency on uuid-dev

- - - - -


13 changed files:

- + debian/README.Debian
- + debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz
- + debian/compat
- + debian/configuration/gdcm.json
- debian/control
- + debian/copyright
- + debian/install
- + debian/postinst
- + debian/postrm
- + debian/rules
- + debian/source/format
- + debian/source/include-binaries
- + debian/upstream/metadata


Changes:

=====================================
debian/README.Debian
=====================================
@@ -0,0 +1,9 @@
+This is a plugin to Orthanc, the lightweight, RESTful Vendor Neutral
+Archive for medical imaging. The plugin extends Orthanc with a
+transcoder/decoder of DICOM images that is built on the GDCM library,
+whereas the built-in transcoder/decoder of Orthanc uses DCMTK.
+
+Homepage: https://book.orthanc-server.com/plugins/gdcm.html
+
+The configuration file of the plugin can be found at the following
+location: /etc/orthanc/gdcm.json


=====================================
debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz
=====================================
Binary files /dev/null and b/debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz differ


=====================================
debian/compat
=====================================
@@ -0,0 +1 @@
+10


=====================================
debian/configuration/gdcm.json
=====================================
@@ -0,0 +1,21 @@
+{
+  /**
+   * The following options control the configuration of the GDCM
+   * plugin for transcoding/decoding DICOM images.
+   **/
+  "Gdcm" : {
+    "Enable" : true,   // Whether GDCM support is enabled
+
+    // Restrict the transfer syntaxes that are considered by GDCM
+    /**  
+      "RestrictTransferSyntaxes" : [
+      "1.2.840.10008.1.2.4.90",   // JPEG 2000 Image Compression (Lossless Only)
+      "1.2.840.10008.1.2.4.91",   // JPEG 2000 Image Compression
+      "1.2.840.10008.1.2.4.92",   // JPEG 2000 Part 2 Multicomponent Image Compression (Lossless Only)
+      "1.2.840.10008.1.2.4.93"    // JPEG 2000 Part 2 Multicomponent Image Compression
+      ],
+    **/
+
+    "Throttling" : 4   // Maximum number of threads that can simultaneously call GDCM
+  }
+}


=====================================
debian/control
=====================================
@@ -8,7 +8,9 @@ Build-Depends: cmake,
                libboost-all-dev,
                libgdcm-dev,
                libjsoncpp-dev,
-               orthanc-dev (>= 1.7.0)
+               orthanc-dev (>= 1.7.0),
+               unzip,
+               uuid-dev
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/med-team/orthanc-gdcm
 Vcs-Git: https://salsa.debian.org/med-team/orthanc-gdcm.git
@@ -19,9 +21,12 @@ Architecture: any
 Depends: ${misc:Depends},
          ${shlibs:Depends},
          orthanc (>= 1.7.0)
-Description: Transcoder/decoder of DICOM images for Orthanc using GDCM
+Description: DICOM transcoder/decoder for Orthanc using GDCM (notably for JPEG2k)
  This package installs a plugin for Orthanc, the lightweight, RESTful
  Vendor Neutral Archive for medical imaging. The plugin extends
  Orthanc with a transcoder/decoder of DICOM images that is built on
  the GDCM library, whereas the built-in transcoder/decoder of Orthanc
  uses DCMTK.
+ .
+ This plugin is notably necessary for Orthanc to be able to
+ transcode and decode JPEG2k transfer syntaxes.


=====================================
debian/copyright
=====================================
@@ -0,0 +1,63 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: OrthancGdcm
+Upstream-Contact: Sebastien Jodogne <s.jodogne at gmail.com>
+Source: https://hg.orthanc-server.com/orthanc-gdcm/
+
+Files: *
+Copyright: 2012-2016 Sebastien Jodogne <s.jodogne at gmail.com>, University Hospital of Liege (Belgium), and 2017-2020 Osimis S.A. (Belgium)
+License: GPL-3+
+
+Files: debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz
+Copyright: 2012-2016 Sebastien Jodogne <s.jodogne at gmail.com>, University Hospital of Liege (Belgium), and 2017-2020 Osimis S.A. (Belgium)
+License: GPL-3+ with OpenSSL exception
+
+
+License: GPL-3+ with OpenSSL exception
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or (at
+ your option) any later version.
+ .
+ In addition, as a special exception, the copyright holders of this
+ program give permission to link the code of its release with the
+ OpenSSL project's "OpenSSL" library (or with modified versions of it
+ that use the same license as the "OpenSSL" library), and distribute
+ the linked executables. You must obey the GNU General Public License
+ in all respects for all of the code used other than "OpenSSL". If you
+ modify file(s) with this exception, you may extend this exception to
+ your version of the file(s), but you are not obligated to do so. If
+ you do not wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source files
+ in the program, then also delete it here.
+ .
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this package; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or (at
+ your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this package; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.


=====================================
debian/install
=====================================
@@ -0,0 +1 @@
+debian/configuration/gdcm.json etc/orthanc


=====================================
debian/postinst
=====================================
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+    configure)
+        # Configure the permissions of the configuration file
+	chown orthanc:orthanc /etc/orthanc/gdcm.json
+	chmod 0664 /etc/orthanc/gdcm.json
+
+	# Restart the Orthanc service
+	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
+	if [ -x /etc/init.d/orthanc ]; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+     		invoke-rc.d orthanc restart
+     	    else
+     		/etc/init.d/orthanc restart
+     	    fi
+     	fi
+	;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
+esac
+
+#DEBHELPER#


=====================================
debian/postrm
=====================================
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+    purge|remove|upgrade)
+	# Restart the Orthanc service
+	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
+	if [ -x /etc/init.d/orthanc ]; then
+	    if which invoke-rc.d >/dev/null 2>&1; then
+     		invoke-rc.d orthanc restart
+     	    else
+     		/etc/init.d/orthanc restart
+     	    fi
+     	fi
+	;;
+
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
+esac
+
+#DEBHELPER#


=====================================
debian/rules
=====================================
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+export UPSTREAM_VERSION := $(shell echo "$(DEB_VERSION)" | cut -d '-' -f 1)
+export TARGET := libOrthancGdcm.so
+
+export DEB_BUILD_MAINT_OPTIONS := hardening=+all
+
+# Disable assert() checking from upstream project, for best performance
+# https://lists.debian.org/debian-med/2018/04/msg00132.html
+export DEB_CFLAGS_MAINT_APPEND=-DNDEBUG
+export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG
+
+%:
+	dh $@ --builddirectory=Build
+
+CMAKE_EXTRA_FLAGS += \
+	-DCMAKE_SKIP_RPATH:BOOL=ON \
+	-DSTATIC_BUILD:BOOL=OFF \
+        -DCMAKE_BUILD_TYPE=None  # The build type must be set to None, see #711515
+
+override_dh_auto_configure:
+        # Put 3rd party packages where the cmake build system expects them
+	mkdir -p ThirdPartyDownloads
+	( cd ThirdPartyDownloads; cp ../debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz . )
+
+        # Launch the original CMake script
+	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
+
+override_dh_clean:
+	rm -rf ThirdPartyDownloads
+	dh_clean
+
+override_dh_auto_install:
+	dh_install Build/${TARGET}.${UPSTREAM_VERSION} usr/lib/orthanc
+
+override_dh_link:
+	dh_link usr/lib/orthanc/${TARGET}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET}
+
+override_dh_installchangelogs:
+	dh_installchangelogs -k NEWS


=====================================
debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
debian/source/include-binaries
=====================================
@@ -0,0 +1 @@
+debian/ThirdPartyDownloads/Orthanc-1.7.0.tar.gz


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,9 @@
+Repository: https://hg.orthanc-server.com/orthanc-gdcm/
+Reference:
+  Author: Sebastien Jodogne
+  Title: The Orthanc Ecosystem for Medical Imaging
+  Type: article
+  Journal: J Digit Imaging
+  Year: 2018
+  DOI: 10.1007/s10278-018-0082-y
+  URL: https://doi.org/10.1007/s10278-018-0082-y



View it on GitLab: https://salsa.debian.org/med-team/orthanc-gdcm/-/compare/1d8c0f79dd2e95ca0aa1458ab5ae798cdd195e5e...62d1e0f1d2accc8069914887a271e6452949788e

-- 
View it on GitLab: https://salsa.debian.org/med-team/orthanc-gdcm/-/compare/1d8c0f79dd2e95ca0aa1458ab5ae798cdd195e5e...62d1e0f1d2accc8069914887a271e6452949788e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200528/8abb1040/attachment-0001.html>


More information about the debian-med-commit mailing list