Accepting request 1159309 from home:DocB:Orthanc

updated build info

OBS-URL: https://build.opensuse.org/request/show/1159309
OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=70
This commit is contained in:
Axel Braun 2024-03-19 11:10:07 +00:00 committed by Git OBS Bridge
parent e3c8f82055
commit 20fbaf9970
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 19 08:23:12 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- apply dcmtk patch to install section
-------------------------------------------------------------------
Thu Mar 7 20:21:58 UTC 2024 - Axel Braun <axel.braun@gmx.de>

View File

@ -45,7 +45,7 @@ BuildRequires: curl-devel
BuildRequires: dcmtk
BuildRequires: dcmtk-devel
BuildRequires: doxygen
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150500
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
@ -144,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} > 150500
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
export CC=gcc-13
export CXX=g++-13
%endif
@ -187,6 +187,9 @@ mkdir -p -m 755 %{buildroot}%{_docdir}/%{name}
mkdir -p -m 755 %{buildroot}/usr/src/%{name}
# Copy sources
tar --strip-components 1 -xzf %{S:0} -C %{buildroot}/usr/src/%{name}/
#Apply dcmtk patch
patch %{buildroot}/usr/src/%{name}/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake < %{P:0}
# Do not mark Python scripts as executable
find %{buildroot}/usr/src/%{name} -name '*.py' -exec chmod a-x "{}" +
#...and delete dot files