Accepting request 1175956 from science:machinelearning

- Added 15.6 build

OBS-URL: https://build.opensuse.org/request/show/1175956
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ollama?expand=0&rev=7
This commit is contained in:
Ana Guerrero 2024-05-23 13:35:11 +00:00 committed by Git OBS Bridge
commit 69d8d59dcd
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 22 18:05:30 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
- Added 15.6 build
-------------------------------------------------------------------
Thu May 16 19:55:51 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>

View File

@ -28,7 +28,11 @@ Source2: ollama.service
Source3: %{name}-user.conf
Patch0: enable-lto.patch
BuildRequires: cmake >= 3.24
%if 0%{?sle_version} == 150600
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++ >= 11.4.0
%endif
BuildRequires: git
BuildRequires: sysuser-tools
BuildRequires: zstd
@ -53,6 +57,12 @@ can be imported.
%ifnarch ppc64
export GOFLAGS="-buildmode=pie -mod=vendor"
%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