public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: jackyzy823 <jackyzy823@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ollama] rawhide: Set version and release type with go ldflags
Date: Thu, 11 Jun 2026 13:01:28 GMT	[thread overview]
Message-ID: <178118288858.1.18039692079863677129.rpms-ollama-fe677968cc70@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-11 13:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178118288858.1.18039692079863677129.rpms-ollama-fe677968cc70@fedoraproject.org \
    --to=jackyzy823@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox