Fix missing #include for gcc-11

This commit is contained in:
Jeff Law 2020-10-14 08:28:18 -06:00
parent b5fb2b24a0
commit d81ecaac60
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 00ee82e0fdbfb00545d776efd60f3016b95e45b4 Mon Sep 17 00:00:00 2001
From: rpm-build <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 <limits>
namespace gdcm
{
--
2.28.0

View File

@ -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 <law@redhat.com> - 3.0.7-5
- Fix missing #include for gcc-11
* Sun Sep 13 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 3.0.7-4
- use cmake macros and fix build
- Enable tests