Accepting request 1175901 from home:mslacken:ml

added 15.6 build

OBS-URL: https://build.opensuse.org/request/show/1175901
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ollama?expand=0&rev=18
This commit is contained in:
Eyad Issa 2024-05-22 17:56:10 +00:00 committed by Git OBS Bridge
parent 13d8dc2da7
commit 71c9d43509

View File

@ -28,7 +28,11 @@ Source2: ollama.service
Source3: %{name}-user.conf Source3: %{name}-user.conf
Patch0: enable-lto.patch Patch0: enable-lto.patch
BuildRequires: cmake >= 3.24 BuildRequires: cmake >= 3.24
%if 0%{?sle_version} == 150600
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++ >= 11.4.0 BuildRequires: gcc-c++ >= 11.4.0
%endif
BuildRequires: git BuildRequires: git
BuildRequires: sysuser-tools BuildRequires: sysuser-tools
BuildRequires: zstd BuildRequires: zstd
@ -55,6 +59,12 @@ can be imported.
%ifnarch ppc64 %ifnarch ppc64
export GOFLAGS="-buildmode=pie -mod=vendor" export GOFLAGS="-buildmode=pie -mod=vendor"
%endif %endif
%if 0%{?sle_version} == 150600
export CXX=g++-12
export CC=gcc-12
# pie doesn't work with gcc12 on leap
export GOFLAGS="-mod=vendor"
%endif
export OLLAMA_SKIP_PATCHING=1 export OLLAMA_SKIP_PATCHING=1