diff --git a/_service b/_service
index 60e26b9..25f4526 100644
--- a/_service
+++ b/_service
@@ -3,7 +3,7 @@
https://github.com/ollama/ollama.git
git
- v0.3.0
+ v0.3.1
@PARENT_TAG@
v(.*)
enable
diff --git a/_servicedata b/_servicedata
index cb01837..69373a8 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/ollama/ollama.git
- bbf8f102ee06bd6b149e4999571c0844aa47b12f
\ No newline at end of file
+ 1a83581a8e1063418f5f1fec14638409d0681b68
\ No newline at end of file
diff --git a/ollama-0.3.0.obscpio b/ollama-0.3.0.obscpio
deleted file mode 100644
index ee11dee..0000000
--- a/ollama-0.3.0.obscpio
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:58ac37034b70dfa60b0be1114a82a00e407bd0fb18bff0ad7f4bce86a3c7373f
-size 153287182
diff --git a/ollama-0.3.1.obscpio b/ollama-0.3.1.obscpio
new file mode 100644
index 0000000..fa60a09
--- /dev/null
+++ b/ollama-0.3.1.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:964901c4577c6efc74ecb52b519d653b371b227d5d39c5c1edeac7d70a4d1b35
+size 153262606
diff --git a/ollama.changes b/ollama.changes
index d5c4066..4dc03f6 100644
--- a/ollama.changes
+++ b/ollama.changes
@@ -1,3 +1,23 @@
+-------------------------------------------------------------------
+Tue Jul 30 07:08:37 UTC 2024 - Adrian Schröter
+
+- Update to version 0.3.1:
+ * Added support for min_p sampling option
+ * Lowered number of requests required when downloading models
+ with ollama pull
+ * ollama create will now autodetect required stop parameters
+ when importing certain models
+ * Fixed issue where /save would cause parameters to be saved
+ incorrectly.
+ * OpenAI-compatible API will now return a finish_reason of
+ tool_calls if a tool call occured.
+
+-------------------------------------------------------------------
+Mon Jul 29 09:59:58 UTC 2024 - Adrian Schröter
+
+- fix build on leap 15.6
+- exclude builds on 32bit due to build failures
+
-------------------------------------------------------------------
Sun Jul 28 11:32:19 UTC 2024 - Eyad Issa
diff --git a/ollama.obsinfo b/ollama.obsinfo
index 29d3d4d..6c1d1a4 100644
--- a/ollama.obsinfo
+++ b/ollama.obsinfo
@@ -1,4 +1,4 @@
name: ollama
-version: 0.3.0
-mtime: 1721946295
-commit: bbf8f102ee06bd6b149e4999571c0844aa47b12f
+version: 0.3.1
+mtime: 1722288341
+commit: 1a83581a8e1063418f5f1fec14638409d0681b68
diff --git a/ollama.spec b/ollama.spec
index 8f3f852..24b52d9 100644
--- a/ollama.spec
+++ b/ollama.spec
@@ -17,7 +17,7 @@
Name: ollama
-Version: 0.3.0
+Version: 0.3.1
Release: 0
Summary: Tool for running AI models on-premise
License: MIT
@@ -35,9 +35,12 @@ BuildRequires: golang(API) >= 1.22
%sysusers_requires
%if 0%{?sle_version} == 150600
BuildRequires: gcc12-c++
+BuildRequires: libstdc++6-gcc12
%else
BuildRequires: gcc-c++ >= 11.4.0
%endif
+# 32bit seems not to be supported anymore
+ExcludeArch: %ix86 %arm
%description
Ollama is a tool for running AI models on one's own hardware.
@@ -78,6 +81,12 @@ mkdir -p "%{buildroot}/%{_docdir}/%{name}"
cp -Ra docs/* "%{buildroot}/%{_docdir}/%{name}"
%check
+%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
go test ./...
%pre -f %{name}.pre
diff --git a/vendor.tar.zstd b/vendor.tar.zstd
index 5c02b98..71bd7cd 100644
--- a/vendor.tar.zstd
+++ b/vendor.tar.zstd
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:96e78f5284991a67ff4c7b801368a7dbb98f88894e6b4d356ab752f61af5df25
-size 5354983
+oid sha256:44ddc2c6af0c08316fec2243c99d08f9585c60c5110bab368a1ee081117dedb2
+size 5354999