Martin Liška 2024-03-01 16:20:22 +00:00 committed by Git OBS Bridge
parent 51ef3757f3
commit 8bf5ea8229

View File

@ -50,8 +50,8 @@ BuildRequires: zlib-devel
BuildRequires: zstd BuildRequires: zstd
PreReq: update-alternatives PreReq: update-alternatives
%if %{suse_version} < 1550 %if %{suse_version} < 1600
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF %define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
%else %else
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON %define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON
%endif %endif
@ -71,10 +71,7 @@ build time especially in rapid debug-edit-rebuild cycles.
export CC=gcc-11 export CC=gcc-11
export CXX=g++-11 export CXX=g++-11
%endif %endif
%cmake %{build_args} \ %cmake %{build_args}
%if 0%{?suse_version} < 1600
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
%endif
%cmake_build %cmake_build
%install %install