[med-svn] [odil] 06/06: Add odil package
Julien Lamy
lamy-guest at moszumanska.debian.org
Wed Apr 13 16:12:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamy-guest pushed a commit to branch master
in repository odil.
commit cc95685961bd97f60685e9ff5d0566917b35e47d
Author: Julien Lamy <lamy at unistra.fr>
Date: Wed Apr 13 16:19:43 2016 +0200
Add odil package
---
debian/control | 20 ++++++++++++++++----
debian/odil.1 | 27 +++++++++++++++++++++++++++
debian/odil.install | 2 ++
debian/odil.postinst | 15 +++++++++++++++
debian/odil.prerm | 6 ++++++
debian/patches/cli-import-path.patch | 12 ++++++++++++
debian/patches/series | 1 +
7 files changed, 79 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index 01a1473..139ff18 100644
--- a/debian/control
+++ b/debian/control
@@ -35,7 +35,7 @@ Depends: ${shlibs:Depends},
Provides: libdcmtkpp0
Conflicts: libdcmtkpp0
Replaces: libdcmtkpp0
-Description: Odil is a C++11 library for the DICOM standard
+Description: C++11 library for the DICOM standard
Odil leverages C++ constructs to provide a user-friendly API of the
different parts of the DICOM standard. Included in Odil are exception-based
error handling, generic access to datasets elements, standard JSON and XML
@@ -55,7 +55,7 @@ Depends: libodil0 (= ${binary:Version}),
Provides: libodil-dev, libdcmtkpp-dev
Conflicts: libodil-dev, libdcmtkpp-dev
Replaces: libdcmtkpp-dev
-Description: Odil is a C++11 library for the DICOM standard (development files)
+Description: C++11 library for the DICOM standard (development files)
Odil leverages C++ constructs to provide a user-friendly API of the
different parts of the DICOM standard. Included in Odil are exception-based
error handling, generic access to datasets elements, standard JSON and XML
@@ -72,7 +72,7 @@ Depends: libjs-jquery,
Provides: libdcmtkpp0-doc
Conflicts: libdcmtkpp0-doc
Replaces: libdcmtkpp0-doc
-Description: Odil is a C++11 library for the DICOM standard (documentation)
+Description: C++11 library for the DICOM standard (documentation)
Odil leverages C++ constructs to provide a user-friendly API of the
different parts of the DICOM standard. Included in Odil are exception-based
error handling, generic access to datasets elements, standard JSON and XML
@@ -88,7 +88,7 @@ Depends: libodil0 (= ${binary:Version}),
${shlibs:Depends},
${python:Depends},
${misc:Depends}
-Description: Odil is a C++11 library for the DICOM standard (Python wrappers)
+Description: C++11 library for the DICOM standard (Python wrappers)
Odil leverages C++ constructs to provide a user-friendly API of the
different parts of the DICOM standard. Included in Odil are exception-based
error handling, generic access to datasets elements, standard JSON and XML
@@ -96,3 +96,15 @@ Description: Odil is a C++11 library for the DICOM standard (Python wrappers)
and servers for the various DICOM protocols.
.
This package contains the Python wrappers.
+
+Package: odil
+Architecture: all
+Depends: python-odil, python, ${misc:Depends}
+Description: C++11 library for the DICOM standard (application)
+ Odil leverages C++ constructs to provide a user-friendly API of the
+ different parts of the DICOM standard. Included in Odil are exception-based
+ error handling, generic access to datasets elements, standard JSON and XML
+ representation of datasets, and generic implementation of messages, clients
+ and servers for the various DICOM protocols.
+ .
+ This package contains the command-line application.
diff --git a/debian/odil.1 b/debian/odil.1
new file mode 100644
index 0000000..d0bb132
--- /dev/null
+++ b/debian/odil.1
@@ -0,0 +1,27 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.44.1.
+.TH ODIL "1" "April 2016" "odil 0.5.0" "User Commands"
+.SH NAME
+odil \- DICOM utility
+.SH DESCRIPTION
+usage: odil [\-h] {print,transcode,echo,find} ...
+.SS "positional arguments:"
+.IP
+{print,transcode,echo,find}
+.IP
+Sub\-commands help
+.TP
+print
+Print the contents of data sets
+.TP
+transcode
+Change the transfer syntax or the format
+.TP
+echo
+Ping a remote DICOM server (C\-ECHO)
+.TP
+find
+DICOM query (C\-FIND)
+.SS "optional arguments:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
diff --git a/debian/odil.install b/debian/odil.install
new file mode 100644
index 0000000..9604edb
--- /dev/null
+++ b/debian/odil.install
@@ -0,0 +1,2 @@
+applications/*py usr/share/odil/
+applications/odil usr/bin
diff --git a/debian/odil.postinst b/debian/odil.postinst
new file mode 100644
index 0000000..84f293d
--- /dev/null
+++ b/debian/odil.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+DIR="/usr/share/odil/"
+
+case "$1" in
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
+ python -c 'import sys, compileall ; exit_status = int(not compileall.main()); sys.exit(exit_status)' -q $DIR
+ ;;
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
diff --git a/debian/odil.prerm b/debian/odil.prerm
new file mode 100644
index 0000000..acfa16c
--- /dev/null
+++ b/debian/odil.prerm
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+set -e
+
+dpkg --listfiles odil | awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | xargs rm -f >&2
+
diff --git a/debian/patches/cli-import-path.patch b/debian/patches/cli-import-path.patch
new file mode 100644
index 0000000..cee0fb5
--- /dev/null
+++ b/debian/patches/cli-import-path.patch
@@ -0,0 +1,12 @@
+Subject: Fix the import path of CLI application
+--- a/applications/odil 2016-04-08 18:25:31.155664219 +0200
++++ b/applications/odil 2016-04-13 15:01:28.493605992 +0200
+@@ -4,6 +4,8 @@
+ import logging
+ import sys
+
++sys.path.insert(0, "/usr/share/odil")
++
+ import echo
+ import find
+ import print_
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..eddd26d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cli-import-path.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/odil.git
More information about the debian-med-commit
mailing list