public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ollama] rawhide: Set version and release type with go ldflags
@ 2026-06-11 13:01 jackyzy823
0 siblings, 0 replies; only message in thread
From: jackyzy823 @ 2026-06-11 13:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ollama
Branch : rawhide
Commit : fe677968cc7041180b0ed29ac112118d4970f79d
Author : jackyzy823 <jackyzy823@gmail.com>
Date : 2026-06-05T02:01:13+00:00
Stats : +1/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ollama/c/fe677968cc7041180b0ed29ac112118d4970f79d?branch=rawhide
Log:
Set version and release type with go ldflags
---
diff --git a/ollama.spec b/ollama.spec
index 749adf8..930c4e5 100644
--- a/ollama.spec
+++ b/ollama.spec
@@ -158,6 +158,7 @@ sed -i '/ensurePiWebSearchPackage(bin)/d' cmd/launch/pi.go
# Release with
# cmake sets LDFLAGS env, this confuses gobuild
export LDFLAGS=
+export GO_LDFLAGS="-X=github.com/ollama/ollama/version.Version=%{version} -X=github.com/ollama/ollama/server.mode=release"
%gobuild -o %{gobuilddir}/bin/ollama %{goipath}
%install
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-11 13:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 13:01 [rpms/ollama] rawhide: Set version and release type with go ldflags jackyzy823
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox