diff --git a/orthanc.changes b/orthanc.changes index fece505..7dd4092 100644 --- a/orthanc.changes +++ b/orthanc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 7 15:13:59 UTC 2024 - Max Lin + +- Build orthanc with gcc13 on Leap 15 + ------------------------------------------------------------------- Fri Feb 2 11:54:18 UTC 2024 - Axel Braun diff --git a/orthanc.spec b/orthanc.spec index 11109b2..a153f1e 100644 --- a/orthanc.spec +++ b/orthanc.spec @@ -45,7 +45,11 @@ BuildRequires: curl-devel BuildRequires: dcmtk BuildRequires: dcmtk-devel BuildRequires: doxygen +%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 +BuildRequires: gcc13-c++ +%else BuildRequires: gcc-c++ +%endif BuildRequires: googletest-devel BuildRequires: help2man BuildRequires: jsoncpp-devel @@ -141,6 +145,10 @@ mkdir -p OrthancServer/ThirdPartyDownloads cp %{S:10} %{S:11} %{S:12} %{S:13} OrthancServer/ThirdPartyDownloads/. %build +%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 +export CC=gcc-13 +export CXX=g++-13 +%endif %cmake ../OrthancServer \ -DSTANDALONE_BUILD:BOOL=ON \ -DSTATIC_BUILD:BOOL=OFF \