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:
commit
69d8d59dcd
@ -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>
|
Thu May 16 19:55:51 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||||
|
|
||||||
|
10
ollama.spec
10
ollama.spec
@ -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
|
||||||
@ -53,6 +57,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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user