public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ollama] epel10: Split into subpackages
Date: Mon, 09 Nov 2026 13:39:53 GMT	[thread overview]
Message-ID: <179423159368.1.6150972059199673272.rpms-ollama-ce908de16a2c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ollama
            Branch : epel10
            Commit : ce908de16a2cd679023b40d29162be29f8aa99dc
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-02-16T13:35:38-08:00
            Stats  : +55/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ollama/c/ce908de16a2cd679023b40d29162be29f8aa99dc?branch=epel10

            Log:
            Split into subpackages

ollama becomes a meta packages
ollama-base is nearly all of the ollama, but the backend specifics
ollama-rocm is the rocm backend
ollama-vulkan the vulkan backend

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/ollama.spec b/ollama.spec
index 151c49f..ca9b556 100644
--- a/ollama.spec
+++ b/ollama.spec
@@ -46,6 +46,10 @@ BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  cmake
 
+%if %{with systemd}
+BuildRequires:  systemd-rpm-macros
+%endif
+
 %if %{with rocm}
 BuildRequires:  hipblas-devel
 BuildRequires:  rocblas-devel
@@ -55,8 +59,6 @@ BuildRequires:  rocm-runtime-devel
 BuildRequires:  rocm-hip-devel
 BuildRequires:  rocm-rpm-macros
 BuildRequires:  rocminfo
-Requires:       hipblas
-Requires:       rocblas
 %endif
 
 %if %{with vulkan}
@@ -64,15 +66,45 @@ BuildRequires:  vulkan-loader-devel
 BuildRequires:  glslc
 %endif
 
-%if %{with systemd}
-BuildRequires:  systemd-rpm-macros
-
-%{?systemd_requires}
+Requires:       %{name}-base%{?_isa} = %{version}-%{release}
+%if %{with rocm}
+Requires:       %{name}-rocm%{?_isa} = %{version}-%{release}
+%endif
+%if %{with vulkan}
+Requires:       %{name}-vulkan%{?_isa} = %{version}-%{release}
 %endif
 
 %description
 Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models.
 
+%package base
+Summary:        The base ollama
+%if %{with systemd}
+%{?systemd_requires}
+%endif
+
+%description base
+%{summary}
+
+%if %{with rocm}
+%package rocm
+Summary:        The ROCm backend for ollama
+Requires:       hipblas
+Requires:       rocblas
+
+%description rocm
+%{summary}
+%endif
+
+%if %{with vulkan}
+%package vulkan
+Summary:        The Vulkan backend for ollama
+
+%description vulkan
+%{summary}
+%endif
+
+
 %prep
 %goprep -A
 %setup -q -T -D -a1 %{forgesetupargs}
@@ -83,6 +115,11 @@ mv app/README.md app-README.md
 mv integration/README.md integration-README.md
 mv llama/README.md llama-README.md
 
+# No knob to turn off vulkan
+%if %{without vulkan}
+sed -i -e 's@Vulkan_FOUND@FALSE@' CMakeLists.txt
+%endif
+
 %generate_buildrequires
 %go_vendor_license_buildrequires -c %{S:2}
 
@@ -152,7 +189,10 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %systemd_postun_with_restart ollama.service
 %endif
 
-%files -f %{go_vendor_license_filelist}
+%files
+%doc README.md
+
+%files -f %{go_vendor_license_filelist} base
 %license vendor/modules.txt
 %doc CONTRIBUTING.md SECURITY.md README.md app-README.md integration-README.md
 %doc llama-README.md
@@ -171,19 +211,22 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %endif
 %{_bindir}/ollama
 
+%if %{with systemd}
+%attr(0755,ollama,ollama) %dir  %{_var}/lib/ollama/
+%{_unitdir}/ollama.service
+%{_sysusersdir}/ollama.conf
+%endif
+
 %if %{with rocm}
+%files rocm
 %{_prefix}/lib/ollama/libggml-hip.so
 %endif
 
 %if %{with vulkan}
+%files vulkan
 %{_prefix}/lib/ollama/libggml-vulkan.so
 %endif
 
-%if %{with systemd}
-%attr(0755,ollama,ollama) %dir  %{_var}/lib/ollama/
-%{_unitdir}/ollama.service
-%{_sysusersdir}/ollama.conf
-%endif
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-11-09 13:39 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=179423159368.1.6150972059199673272.rpms-ollama-ce908de16a2c@fedoraproject.org \
    --to=tom.rix@amd.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