- Added %check section

- Use -v when building

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ollama?expand=0&rev=34
This commit is contained in:
Eyad Issa 2024-07-18 12:28:24 +00:00 committed by Git OBS Bridge
parent 8d6b930083
commit 3e72c81bf1
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
-------------------------------------------------------------------
Thu Jul 18 12:11:08 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
Thu Jul 18 12:27:54 UTC 2024 - Eyad Issa <eyadlorenzo@gmail.com>
- Added %check section
- Use -v when building
- Update to version 0.2.6:
* New models: MathΣtral is a 7B model designed for math

View File

@ -66,7 +66,7 @@ export GOFLAGS="-mod=vendor"
export OLLAMA_SKIP_PATCHING=1
go generate ./...
go build .
go build -v .
%install
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
@ -77,6 +77,9 @@ install -d %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p "%{buildroot}/%{_docdir}/%{name}"
cp -Ra docs/* "%{buildroot}/%{_docdir}/%{name}"
%check
go test ./...
%pre -f %{name}.pre
%service_add_pre %{name}.service