Info2: << Package: gdcm Version: 2.4.1 Revision: 3 Type: maj (2.4) Maintainer: Alexander Hansen Homepage: http://gdcm.sourceforge.net/wiki/index.php/Main_Page Description: Grassroots DICOM library DescDetail: << Whenever medical data, especially medical image data, is generated in a clinical environment, that data must be stored such that it can be retrieved by the same hospital either immediately, or after several years to determine the effectiveness of a course of treatment and to allow comparisons of multiple images for the same patient. Digital Imaging and Communications in Medicine (DICOM) is a standard that governs this capability by specifying handling, storing, printing, and transmitting information in medical imaging. Grassroots DICOM (GDCM) is an implementation of the DICOM standard designed to be open source so that researchers may access clinical data directly. GDCM includes a file format definition and a network communications protocol, both of which should be extended to provide a full set of tools for a researcher or small medical imaging vendor to interface with an existing medical database. GDCM is an open source implementation of the DICOM standard. It offers some compatibility with ACR-NEMA 1.0 & 2.0 files (raw files). << License: BSD BuildDepends: cmake, expat1, libopenjpeg1, swig, system-java-dev, system-openssl-dev Depends: %N-libsocketxx12-shlibs (= %v-%r), %N%type_pkg[maj]-shlibs (= %v-%r) Source: mirror:sourceforge:%n/%n%%202.x/GDCM%%20%v/%n-%v.tar.bz2 Source-MD5: 1120f9a5ebcef7df6933ca83545f514d PatchScript: perl -pi -e 's/(-source 1.5)/-target 1.5 \1/' `find . -name CMakeLists.txt` CompileScript: << #!/bin/sh -ev mkdir ../gdcmbin cd ../gdcmbin cmake VERBOSE=1 \ -DOPENJPEG_INCLUDE_DIR=%p/include/ \ -DOPENJPEG_LIBRARY=%p/lib/libopenjpeg/libopenjpeg.dylib \ -DCMAKE_PREFIX_PATH=%p \ -DCMAKE_INSTALL_PREFIX:PATH=%i \ -DCMAKE_INSTALL_NAME_DIR=%p/lib \ -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \ -DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \ -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \ -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \ -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \ -DGDCM_USE_SYSTEM_UUID:BOOL=ON \ -DGDCM_WRAP_JAVA:BOOL=ON \ -DGDCM_BUILD_APPLICATIONS:BOOL=ON \ %b make << InstallScript: << #!/bin/sh -ev cd ../gdcmbin make install << DescPackaging: << Docs use TeX for generation, so we aren't building them in this package. Python bindings don't work yet. Examples use Qt for their build, so we'll pull those into their own package at some point. << SplitOff: << Package: %N%type_pkg[maj]-shlibs Files: lib/lib%N*.*.dylib Depends: expat1-shlibs, libopenjpeg1-shlibs Shlibs: << %p/lib/libgdcmCommon.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmDICT.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmDSED.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmIOD.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmMEXD.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmMSFF.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmcharls.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmjpeg12.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmjpeg16.2.4.dylib 2.4.0 %n (>=2.4.0-1) %p/lib/libgdcmjpeg8.2.4.dylib 2.4.0 %n (>=2.4.0-1) << << SplitOff2: << Package: %N-libsocketxx12-shlibs Files: lib/libsocketxx.*.dylib Replaces: %N-shlibs Shlibs: << %p/lib/libsocketxx.1.2.dylib 1.2.0 gdcm-shlibs (>=2.2.0-1) << DescPackaging: << Since this didn't get a libversion bump along with everything else, and doesn't depend on the other libs, we'll allow it to Replace the lib from the older gdcm-shlibs. << << SplitOff3: << Package: %N%type_pkg[maj]-dev BuildDependsOnly: true Conflicts: %N-dev Replaces: %N-dev Depends: %N%type_pkg[maj]-shlibs (=%v-%r), %N-libsocketxx12-shlibs (=%v-%r), %N (=%v-%r) Files: << lib/*.dylib lib/%N-%type_raw[maj]/*.cmake include << << SplitOff4: << Package: %N-java Depends: system-java, %N%type_pkg[maj]-shlibs (=%v-%r) Files: lib/gdcm.jar lib/libgdcmjni.jnilib << <<