diff --git a/0003-Fix-missing-include-for-gcc-11.patch b/0003-Fix-missing-include-for-gcc-11.patch new file mode 100644 index 0000000..90c7508 --- /dev/null +++ b/0003-Fix-missing-include-for-gcc-11.patch @@ -0,0 +1,24 @@ +From 00ee82e0fdbfb00545d776efd60f3016b95e45b4 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Wed, 14 Oct 2020 08:18:34 -0600 +Subject: [PATCH] Fix missing include for gcc-11 + +--- + .../gdcmImageChangePhotometricInterpretation.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h b/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h +index d55a5ee..798d3df 100644 +--- a/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h ++++ b/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h +@@ -16,6 +16,7 @@ + + #include "gdcmImageToImageFilter.h" + #include "gdcmPhotometricInterpretation.h" ++#include + + namespace gdcm + { +-- +2.28.0 + diff --git a/gdcm.spec b/gdcm.spec index 3af6303..aa781d1 100644 --- a/gdcm.spec +++ b/gdcm.spec @@ -3,7 +3,7 @@ Name: gdcm Version: 3.0.7 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Grassroots DiCoM is a C++ library to parse DICOM medical files License: BSD URL: http://gdcm.sourceforge.net/wiki/index.php/Main_Page @@ -14,6 +14,7 @@ Source1: http://downloads.sourceforge.net/project/gdcm/gdcmData/gdcmData/gdcm Patch1: 0001-3.0.1-Use-copyright.patch # Fix for 1687233 Patch3: 0002-Fix-export-variables.patch +Patch4: 0003-Fix-missing-include-for-gcc-11.patch BuildRequires: CharLS-devel >= 2.0 BuildRequires: cmake @@ -261,6 +262,9 @@ make test -C %{__cmake_builddir} || exit 0 %{python3_sitearch}/__pycache__/%{name}* %changelog +* Wed Oct 14 2020 Jeff Law - 3.0.7-5 +- Fix missing #include for gcc-11 + * Sun Sep 13 2020 Ankur Sinha - 3.0.7-4 - use cmake macros and fix build - Enable tests