|
|
|
@ -1,3 +1,327 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 8;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
# Enabled by default
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 33
|
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: gdcm
|
|
|
|
|
Version: 3.0.12
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Grassroots DiCoM is a C++ library to parse DICOM medical files
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://gdcm.sourceforge.net/wiki/index.php/Main_Page
|
|
|
|
|
# Use github release
|
|
|
|
|
Source0: https://github.com/malaterre/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: http://downloads.sourceforge.net/project/gdcm/gdcmData/gdcmData/gdcmData.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch1: 0001-3.0.1-Use-copyright.patch
|
|
|
|
|
# Fix for 1687233
|
|
|
|
|
Patch2: 0002-Fix-export-variables.patch
|
|
|
|
|
# Python 3.13: Replace deprecated PyEval_CallObject()
|
|
|
|
|
Patch3: https://github.com/malaterre/GDCM/pull/171.patch
|
|
|
|
|
# TALOS-2024-1924: https://bugzilla.redhat.com/show_bug.cgi?id=2277288
|
|
|
|
|
Patch4: TALOS-2024-1924.patch
|
|
|
|
|
# TALOS-2024-1935: https://bugzilla.redhat.com/show_bug.cgi?id=2277292
|
|
|
|
|
Patch5: TALOS-2024-1935.patch
|
|
|
|
|
# TALOS-2024-1944: https://bugzilla.redhat.com/show_bug.cgi?id=2277296
|
|
|
|
|
Patch6: TALOS-2024-1944.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: CharLS-devel >= 2.0
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
|
BuildRequires: dcmtk-devel
|
|
|
|
|
BuildRequires: docbook5-style-xsl
|
|
|
|
|
BuildRequires: docbook-style-xsl
|
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
|
BuildRequires: fontconfig-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: gl2ps-devel
|
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
|
BuildRequires: libtheora-devel
|
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
|
BuildRequires: mesa-libOSMesa-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pkgconfig(libopenjp2)
|
|
|
|
|
BuildRequires: poppler-devel
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
BuildRequires: json-c-devel
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
# BuildRequires: vtk-devel
|
|
|
|
|
|
|
|
|
|
# Do not generate latex
|
|
|
|
|
# BuildRequires: /usr/bin/latex
|
|
|
|
|
# BuildRequires: /usr/bin/pdflatex
|
|
|
|
|
# BuildRequires: /usr/bin/dvips
|
|
|
|
|
# BuildRequires: /usr/bin/epstopdf
|
|
|
|
|
#BuildRequires: texlive-ec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Grassroots DiCoM (GDCM) is a C++ library for DICOM medical files.
|
|
|
|
|
It supports ACR-NEMA version 1 and 2 (huffman compression is not supported),
|
|
|
|
|
RAW, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntax.
|
|
|
|
|
It comes with a super fast scanner implementation to quickly scan hundreds of
|
|
|
|
|
DICOM files. It supports SCU network operations (C-ECHO, C-FIND, C-STORE,
|
|
|
|
|
C-MOVE). PS 3.3 & 3.6 are distributed as XML files.
|
|
|
|
|
It also provides PS 3.15 certificates and password based mechanism to
|
|
|
|
|
anonymize and de-identify DICOM datasets.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Includes html documentation for gdcm
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
You should install the gdcm-doc package if you would like to
|
|
|
|
|
access upstream documentation for gdcm.
|
|
|
|
|
|
|
|
|
|
%package applications
|
|
|
|
|
Summary: Includes command line programs for GDCM
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description applications
|
|
|
|
|
You should install the gdcm-applications package if you would like to
|
|
|
|
|
use command line programs part of GDCM. Includes tools to convert,
|
|
|
|
|
anonymize, manipulate, concatenate, and view DICOM files.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries and headers for GDCM
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-applications%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
You should install the gdcm-devel package if you would like to
|
|
|
|
|
compile applications based on gdcm
|
|
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
|
Summary: CSharp, C++, Java, PHP and Python example programs for GDCM
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
|
GDCM examples
|
|
|
|
|
|
|
|
|
|
%package -n python3-gdcm
|
|
|
|
|
Summary: Python binding for GDCM
|
|
|
|
|
%{?python_provide:%python_provide python3-gdcm}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-gdcm
|
|
|
|
|
You should install the python3-gdcm package if you would like to
|
|
|
|
|
used this library with python
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n GDCM-%{version} -S git
|
|
|
|
|
# Data source
|
|
|
|
|
%setup -n GDCM-%{version} -q -T -D -a 1
|
|
|
|
|
|
|
|
|
|
# Fix cmake command
|
|
|
|
|
sed -i.backup 's/add_dependency/add_dependencies/' Utilities/doxygen/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
# Stop doxygen from producing LaTeX output
|
|
|
|
|
sed -i.backup 's/^GENERATE_LATEX.*=.*YES/GENERATE_LATEX = NO/' Utilities/doxygen/doxyfile.in
|
|
|
|
|
|
|
|
|
|
# Remove bundled utilities (we use Fedora's ones)
|
|
|
|
|
|
|
|
|
|
rm -rf Utilities/gdcmexpat
|
|
|
|
|
rm -rf Utilities/gdcmopenjpeg-v1
|
|
|
|
|
rm -rf Utilities/gdcmopenjpeg-v2
|
|
|
|
|
rm -rf Utilities/gdcmzlib
|
|
|
|
|
rm -rf Utilities/gdcmuuid
|
|
|
|
|
rm -rf Utilities/gdcmcharls
|
|
|
|
|
|
|
|
|
|
# Remove bundled utilities (we don't use them)
|
|
|
|
|
rm -rf Utilities/getopt
|
|
|
|
|
rm -rf Utilities/pvrg
|
|
|
|
|
rm -rf Utilities/rle
|
|
|
|
|
rm -rf Utilities/wxWidgets
|
|
|
|
|
|
|
|
|
|
# Needed for testing:
|
|
|
|
|
#rm -rf Utilities/gdcmmd5
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake .. \
|
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
|
-DGDCM_INSTALL_PACKAGE_DIR=%{_libdir}/cmake/%{name} \
|
|
|
|
|
-DGDCM_INSTALL_INCLUDE_DIR=%{_includedir}/%{name} \
|
|
|
|
|
-DGDCM_INSTALL_DOC_DIR=%{_docdir}/%{name} \
|
|
|
|
|
-DGDCM_INSTALL_MAN_DIR=%{_mandir} \
|
|
|
|
|
-DGDCM_INSTALL_LIB_DIR=%{_libdir} \
|
|
|
|
|
-DGDCM_BUILD_TESTING:BOOL=ON \
|
|
|
|
|
-DGDCM_DATA_ROOT=../gdcmData/ \
|
|
|
|
|
-DGDCM_BUILD_EXAMPLES:BOOL=OFF \
|
|
|
|
|
-DGDCM_DOCUMENTATION:BOOL=OFF \
|
|
|
|
|
-DGDCM_WRAP_PYTHON:BOOL=ON \
|
|
|
|
|
-DPYTHON_EXECUTABLE=%{python3} \
|
|
|
|
|
-DGDCM_INSTALL_PYTHONMODULE_DIR=%{python3_sitearch} \
|
|
|
|
|
-DGDCM_WRAP_JAVA:BOOL=OFF \
|
|
|
|
|
-DGDCM_WRAP_CSHARP:BOOL=OFF \
|
|
|
|
|
-DGDCM_BUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
|
-DGDCM_BUILD_APPLICATIONS:BOOL=ON \
|
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
|
|
|
|
|
-DGDCM_USE_VTK:BOOL=OFF \
|
|
|
|
|
-DGDCM_USE_SYSTEM_CHARLS:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_UUID:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_LJPEG:BOOL=OFF \
|
|
|
|
|
-DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_JPEGLS:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_LIBXML2:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_JSON:BOOL=ON \
|
|
|
|
|
-DGDCM_USE_SYSTEM_POPPLER:BOOL=ON
|
|
|
|
|
|
|
|
|
|
#Cannot build wrap_java:
|
|
|
|
|
# -DGDCM_VTK_JAVA_JAR:PATH=/usr/share/java/vtk.jar no found!
|
|
|
|
|
# yum provides */vtk.jar -> No results found
|
|
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{python3_sitearch}
|
|
|
|
|
|
|
|
|
|
# Install examples
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_datadir}/%{name}/Examples/
|
|
|
|
|
cp -rv ./Examples/* $RPM_BUILD_ROOT/%{_datadir}/%{name}/Examples/
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
# Making the tests informative only for now. Several failing tests (27/228):
|
|
|
|
|
# 11,40,48,49,107-109,111-114,130-135,146,149,,151-154,157,194,216,219
|
|
|
|
|
make test -C %{__cmake_builddir} || exit 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS README.md
|
|
|
|
|
%license Copyright.txt README.Copyright.txt
|
|
|
|
|
%{_libdir}/libgdcmCommon.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmCommon.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmDICT.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmDICT.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmDSED.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmDSED.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmIOD.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmIOD.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmMEXD.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmMEXD.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmMSFF.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmMSFF.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmjpeg12.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmjpeg12.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmjpeg16.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmjpeg16.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmjpeg8.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmjpeg8.so.3.0.12
|
|
|
|
|
%{_libdir}/libgdcmmd5.so.3.0
|
|
|
|
|
%{_libdir}/libgdcmmd5.so.3.0.12
|
|
|
|
|
%{_libdir}/libsocketxx.so.1.2
|
|
|
|
|
%{_libdir}/libsocketxx.so.1.2.0
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}-3.0/
|
|
|
|
|
%{_datadir}/%{name}-3.0/XML/
|
|
|
|
|
%exclude %{_docdir}/%{name}/html/
|
|
|
|
|
%exclude %{_docdir}/%{name}/Examples/
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
#doc %{_docdir}/%{name}/html/
|
|
|
|
|
|
|
|
|
|
%files applications
|
|
|
|
|
%{_bindir}/gdcmanon
|
|
|
|
|
%{_bindir}/gdcmconv
|
|
|
|
|
%{_bindir}/gdcmdiff
|
|
|
|
|
%{_bindir}/gdcmdump
|
|
|
|
|
%{_bindir}/gdcmgendir
|
|
|
|
|
%{_bindir}/gdcmimg
|
|
|
|
|
%{_bindir}/gdcminfo
|
|
|
|
|
%{_bindir}/gdcmpap3
|
|
|
|
|
%{_bindir}/gdcmpdf
|
|
|
|
|
%{_bindir}/gdcmraw
|
|
|
|
|
%{_bindir}/gdcmscanner
|
|
|
|
|
%{_bindir}/gdcmscu
|
|
|
|
|
%{_bindir}/gdcmtar
|
|
|
|
|
%{_bindir}/gdcmxml
|
|
|
|
|
%doc %{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
|
%{_libdir}/libgdcmCommon.so
|
|
|
|
|
%{_libdir}/libgdcmDICT.so
|
|
|
|
|
%{_libdir}/libgdcmDSED.so
|
|
|
|
|
%{_libdir}/libgdcmIOD.so
|
|
|
|
|
%{_libdir}/libgdcmMEXD.so
|
|
|
|
|
%{_libdir}/libgdcmMSFF.so
|
|
|
|
|
%{_libdir}/libgdcmjpeg12.so
|
|
|
|
|
%{_libdir}/libgdcmjpeg16.so
|
|
|
|
|
%{_libdir}/libgdcmjpeg8.so
|
|
|
|
|
%{_libdir}/libgdcmmd5.so
|
|
|
|
|
%{_libdir}/libsocketxx.so
|
|
|
|
|
%{_libdir}/cmake/%{name}/
|
|
|
|
|
|
|
|
|
|
%files examples
|
|
|
|
|
%{_datadir}/%{name}/Examples/
|
|
|
|
|
|
|
|
|
|
%files -n python3-gdcm
|
|
|
|
|
%{python3_sitearch}/%{name}*.py
|
|
|
|
|
%{python3_sitearch}/_%{name}swig.so
|
|
|
|
|
%{python3_sitearch}/__pycache__/%{name}*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Mon May 27 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.12-8
|
|
|
|
|
- Fix unowned directory /usr/share/gdcm-3.0/
|
|
|
|
|
|
|
|
|
|
* Fri Apr 26 2024 Sandro <devel@penguinpee.nl> - 3.0.12-7
|
|
|
|
|
- Apply security patches
|
|
|
|
|
- Fix TALOS-2024-1924, CVE-2024-22391 (RHBZ#2277288)
|
|
|
|
|
- Fix TALOS-2024-1935, CVE-2024-22373 (RHBZ#2277292)
|
|
|
|
|
- Fix TALOS-2024-1944, CVE-2024-25569 (RHBZ#2277296)
|
|
|
|
|
|
|
|
|
|
* Fri Apr 26 2024 Sandro <devel@penguinpee.nl> - 3.0.12-6
|
|
|
|
|
- Replace deprecated PyEval_CallObject() (RHBZ#2245816)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 10 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.0.12-5
|
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
|
* Tue Aug 02 2022 Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com> - 3.0.12-5
|
|
|
|
|
- chore: rebuild for poppler 22.08.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.12-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.12-3
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri May 20 2022 Sandro Mani <manisandro@gmail.com> - 3.0.12-2
|
|
|
|
|
- Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0
|
|
|
|
|
|
|
|
|
|
* Sat Apr 02 2022 Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com> - 3.0.12-1
|
|
|
|
|
- feat: update to 3.0.12 (fixes rhbz#2068208)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com> - 3.0.10-1
|
|
|
|
|
- feat: to 3.0.10 (fixes #2011596)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.9-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 3.0.9-3
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
@ -484,3 +808,5 @@ already included upstream
|
|
|
|
|
* Wed Feb 17 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14
|
|
|
|
|
- Initial RPM Release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|