[med-svn] r9519 - trunk/packages/gdcm/trunk/debian

Mathieu Malaterre malat-guest at alioth.debian.org
Wed Feb 1 13:35:58 UTC 2012


Author: malat-guest
Date: 2012-02-01 13:35:58 +0000 (Wed, 01 Feb 2012)
New Revision: 9519

Added:
   trunk/packages/gdcm/trunk/debian/control.in
Modified:
   trunk/packages/gdcm/trunk/debian/control
   trunk/packages/gdcm/trunk/debian/rules
Log:
KISS for mono arch

Modified: trunk/packages/gdcm/trunk/debian/control
===================================================================
--- trunk/packages/gdcm/trunk/debian/control	2012-02-01 13:15:51 UTC (rev 9518)
+++ trunk/packages/gdcm/trunk/debian/control	2012-02-01 13:35:58 UTC (rev 9519)
@@ -11,10 +11,10 @@
  swig, cmake, libvtk5-dev, libcharls-dev,
  libopenjpeg-dev, graphviz, default-jdk,
  libpoppler-dev, libssl-dev, python-vtk, gccxml,
- libactiviz.net-cil [!alpha !mips !mipsel !m68k !hppa !s390 !s390x],
- mummy [!alpha !mips !mipsel !m68k !hppa !s390 !s390x],
- cli-common-dev (>= 0.8~) [!alpha !mips !mipsel !m68k !hppa !s390 !s390x],
- mono-devel (>= 2.10.5) [!alpha !mips !mipsel !m68k !hppa !s390 !s390x]
+ libactiviz.net-cil [amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc ppc64 s390x sparc],
+ mummy [amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc ppc64 s390x sparc],
+ cli-common-dev (>= 0.8~) [amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc ppc64 s390x sparc],
+ mono-devel (>= 2.10.5) [amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc ppc64 s390x sparc]
 Standards-Version: 3.9.2
 X-Python-Version: 2.7
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/gdcm/trunk/

Added: trunk/packages/gdcm/trunk/debian/control.in
===================================================================
--- trunk/packages/gdcm/trunk/debian/control.in	                        (rev 0)
+++ trunk/packages/gdcm/trunk/debian/control.in	2012-02-01 13:35:58 UTC (rev 9519)
@@ -0,0 +1,186 @@
+Source: gdcm
+Section: libs
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+DM-Upload-Allowed: yes
+Uploaders: Mathieu Malaterre <mathieu.malaterre at gmail.com>,
+ Andreas Tille <tille at debian.org>,
+ Steve M. Robbins <smr at debian.org>
+Build-Depends: debhelper (>= 8), python-all-dev, libvtk-java, pvrg-jpeg,
+ uuid-dev, libz-dev, libexpat-dev, doxygen-latex, ghostscript,
+ swig, cmake, libvtk5-dev, libcharls-dev,
+ libopenjpeg-dev, graphviz, default-jdk,
+ libpoppler-dev, libssl-dev, python-vtk, gccxml,
+ libactiviz.net-cil [@DEB_MONO_ARCHS@],
+ mummy [@DEB_MONO_ARCHS@],
+ cli-common-dev (>= 0.8~) [@DEB_MONO_ARCHS@],
+ mono-devel (>= 2.10.5) [@DEB_MONO_ARCHS@]
+Standards-Version: 3.9.2
+X-Python-Version: 2.7
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/gdcm/trunk/
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/gdcm/trunk/
+Homepage: http://gdcm.sourceforge.net/
+
+Package: libgdcm2.2
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Grassroots DICOM runtime libraries
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated. It also
+ comes with DICOM Part 3,6 & 7 of the standard as XML files.
+ .
+ This package contains the libraries needed to run GDCM applications.
+
+Package: libgdcm-tools
+Architecture: any
+Section: utils
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: pvrg-jpeg
+Suggests: dcmtk, dicom3tools
+Description: Grassroots DICOM tools and utilities
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Install this package for the gdcmanon, gdcmconv, gdcmdiff, gdcmdump,
+ gdcmgendir, gdcmimg, gdcminfo, gdcmpdf, gdcmraw, gdcmscanner, gdcmscu, gdcmtar
+ programs.
+
+Package: libgdcm2-dev
+Section: libdevel
+Architecture: any
+Depends: libgdcm2.2 (= ${binary:Version}), ${misc:Depends}
+Description: Grassroots DICOM development libraries and headers
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Headers and static libraries for libgdcm. These are not needed to use
+ GDCM, but are needed to build plugins or programs that link against
+ libgdcm.
+
+Package: libgdcm2.2-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: libgdcm2.2 (= ${binary:Version}), ${misc:Depends}
+Description: Grassroots DICOM runtime libraries, debug version
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Debug symbols for libgdcm that will allow useful tracebacks and
+ debugging on end user machines.
+
+Package: libgdcm-cil
+Section: cli-mono
+Architecture: @DEB_MONO_ARCHS@
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}
+Description: Grassroots DICOM CLI bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ CLI bindings to the GDCM DICOM library. It allows developers to use
+ GDCM from C# environment.
+
+Package: libgdcm-java
+Section: java
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${java:Depends}
+Suggests: java-virtual-machine
+Description: Grassroots DICOM Java bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Java bindings to the GDCM DICOM library. It allows developers to use
+ GDCM from Java environment.
+
+Package: python-gdcm
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, libgdcm2.2 (= ${binary:Version})
+Provides: ${python:Provides}
+Description: Grassroots DICOM Python bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Python bindings to the GDCM DICOM library.
+
+Package: libvtkgdcm2.2
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, 
+Description: Grassroots DICOM VTK runtime libraries
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Libvtkgdcm is a library that quickly allow programmer to use GDCM
+ from a VTK environment.
+
+Package: libvtkgdcm2-dev
+Section: libdevel
+Architecture: any
+Depends: libvtkgdcm2.2 (= ${binary:Version}), libgdcm2-dev, ${misc:Depends}
+Description: Grassroots DICOM VTK development libraries and headers
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Headers and static libraries for libvtkgdcm. These are not needed to
+ use GDCM, but are needed to build plugins or programs that link
+ against libvtkgdcm.
+
+Package: libvtkgdcm-cil
+Section: cli-mono
+Architecture: @DEB_MONO_ARCHS@
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}, libgdcm2.2 (= ${binary:Version})
+Suggests: libgdcm-cil
+Description: Grassroots DICOM VTK CLI bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ VTK CLI bindings to the GDCM DICOM library.
+
+Package: libvtkgdcm-java
+Section: java
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${java:Depends}, libgdcm2.2 (= ${binary:Version})
+Suggests: libgdcm-java
+Description: Grassroots DICOM VTK Java bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ VTK Java bindings to the GDCM DICOM library.
+
+Package: python-vtkgdcm
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, libvtkgdcm2.2 (= ${binary:Version})
+Provides: ${python:Provides}
+Suggests: python-gdcm
+Description: Grassroots DICOM VTK/Python bindings
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ VTK/Python bindings to the GDCM DICOM library.
+
+Package: libvtkgdcm-tools
+Architecture: any
+Section: utils
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: libgdcm-tools
+Description: Grassroots DICOM VTK tools and utilities
+ Grassroots DiCoM is a C++ library for DICOM medical files. It is
+ automatically wrapped to python/C#/Java (using swig). It supports
+ RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.
+ .
+ Libvtkgdcm-tools provides a number of command line debugging and utility
+ tool. Install this package for the gdcmviewer, gdcm2pnm and gdcm2vtk
+ programs.

Modified: trunk/packages/gdcm/trunk/debian/rules
===================================================================
--- trunk/packages/gdcm/trunk/debian/rules	2012-02-01 13:15:51 UTC (rev 9518)
+++ trunk/packages/gdcm/trunk/debian/rules	2012-02-01 13:35:58 UTC (rev 9519)
@@ -10,12 +10,13 @@
 # to please dpkg-shlibdeps and java private libs in /usr/lib/jni
 LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):/usr/lib/jni
 
+# required for DEB_MONO_ARCHS (debian/control.in)
+-include /usr/share/mono/mono-archs.make
+
 # Mono is not available for all Debian architectures.
 ifeq ($(shell dh_listpackages | grep -q cil && echo yes),yes)
 WITH_CLI = --with cli
 DEB_WRAP_CSHARP = 1
-# required for DEB_MONO_ARCHS
--include /usr/share/mono/mono-archs.make
 # dpkg-shlibdeps needs to know where is libKitware.mummy.Runtime.Unmanaged.so
 LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):/usr/lib/cli/Kitware.mummy.Runtime-1.0
 else
@@ -81,11 +82,8 @@
 #build-arch:
 #	$(MAKE)
 
-mono_archs=$(DEB_MONO_ARCHS)
-gdcm_archs="$(shell grep -2 libvtkgdcm-cil debian/control | grep Architecture | cut -d: -f2 | tr " " "\n" | sort -g)"
-mono_sorted="$(shell echo ' $(mono_archs)' | tr ' ' '\n' | sort -g)"
-check-mono-archs:
-	if [ $(gdcm_archs) != $(mono_sorted) ]; then echo "Incompatible arch, should be $(mono_archs)"; exit 1; fi
+debian/control: debian/control.in
+	sed -e "s/@DEB_MONO_ARCHS@/$(DEB_MONO_ARCHS)/g" $< > $@
 
 get-orig-source:
 	uscan --verbose --force-download




More information about the debian-med-commit mailing list