Accepting request 1156146 from home:DocB:Orthanc

- fix build for Leap < 15.6

OBS-URL: https://build.opensuse.org/request/show/1156146
OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=68
This commit is contained in:
Axel Braun 2024-03-08 11:24:14 +00:00 committed by Git OBS Bridge
parent 835c139d2c
commit e3c8f82055
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 7 20:21:58 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- fix build for Leap < 15.6
-------------------------------------------------------------------
Thu Mar 7 15:13:59 UTC 2024 - Max Lin <mlin@suse.com>

View File

@ -45,7 +45,7 @@ BuildRequires: curl-devel
BuildRequires: dcmtk
BuildRequires: dcmtk-devel
BuildRequires: doxygen
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
@ -131,8 +131,7 @@ Group: Development/Sources
This package includes the source files for Orthanc. Use it in conjunction with the -devel package
%prep
%setup -q -n Orthanc-%{version}
%autopatch -p1
%autosetup -p1 -n Orthanc-%{version}
cp %{S:1} %{S:2} .
@ -145,7 +144,7 @@ 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
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
export CC=gcc-13
export CXX=g++-13
%endif