diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-15 13:58:19 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-15 13:58:19 +0000 |
commit | b7e1f8adb41bcbc51c0ec3a3f92d370bad147352 (patch) | |
tree | 99c1072c6ce5b06222aa9fb3bab575993e28afbc | |
parent | ca85cc0bd4c09b834da1054a79ef9707dc751726 (diff) |
automatic import of ollamaopeneuler23.09openeuler23.03openeuler22.09
-rw-r--r-- | ollama.spec | 42 | ||||
-rw-r--r-- | sources | 0 |
2 files changed, 42 insertions, 0 deletions
diff --git a/ollama.spec b/ollama.spec new file mode 100644 index 0000000..da52d23 --- /dev/null +++ b/ollama.spec @@ -0,0 +1,42 @@ +%global _empty_manifest_terminate_build 0 +%global _unpackaged_files_terminate_build 0 +Name: ollama +Version: 0.2.5 +Release: 1%{?dist} +Summary: Get up and running with Llama 3, Mistral, Gemma 2, and other large language models. + +License: MIT license +URL: https://github.com/ollama/%{name} +# Source0: https://github.com/ollama/%{name}/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: golang +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: g++ +BuildRequires: git + +%description +Get up and running with Llama 3, Mistral, Gemma 2, and other large language models. + +%prep +%setup -c -T +git clone https://gitee.com/mirrors/ollama.git + +%build +cd ollama +sed -i 's|https://github.com/ggerganov/llama.cpp.git|https://gitee.com/cxunmz/llama.cpp.git|' .gitmodules +export GOPROXY=https://goproxy.cn +go generate ./... +go build . + +%install +cd ollama +mkdir -p %{buildroot}%{_bindir} +install -m 0755 %{name} %{buildroot}%{_bindir}/%{name} + +%files +%{_bindir}/ollama + +%changelog +* Mon Jul 15 2024 Xenochou <xenochou@qq.com> - 1 +- support ollama 0.2.5 |