[packages/whisper.cpp] - updated to 1.9.5; use system ggml+llama

qboosh qboosh at pld-linux.org
Fri Nov 20 06:26:03 CET 2026


commit 1fa97ae715608dcdd7e1ca12cc1db420e49f7640
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Nov 20 06:25:29 2026 +0100

    - updated to 1.9.5; use system ggml+llama

 whisper.cpp-llama.patch | 14 +++++++++++
 whisper.cpp.spec        | 62 ++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 62 insertions(+), 14 deletions(-)
---
diff --git a/whisper.cpp.spec b/whisper.cpp.spec
index d62c170..2f47c40 100644
--- a/whisper.cpp.spec
+++ b/whisper.cpp.spec
@@ -1,14 +1,14 @@
 # TODO:
-# - system GGML once released
 # - CUDA
 # - Vulkan (hangs on ENOMEM on x86)
 #
 # Conditional build:
-%bcond_with	system_ggml	# system GGML library
+%bcond_without	system_ggml	# system GGML library (only if not system LLaMA)
+%bcond_without	system_llama	# system LLaMA library
 %bcond_with	curl		# model downloading via cURL (nop, only in cmake)
 %bcond_without	ffmpeg		# ffmpeg support
 %bcond_without	sdl		# SDL (2.x) support
-%bcond_with	vulkan		# Vulkan support in GGML
+%bcond_with	vulkan		# Vulkan support in internal GGML
 %bcond_with	sse42		# SSE 4.2 instructions on ix86
 %bcond_with	avx		# AVX instructions on ix86
 %bcond_with	avx2		# AVX2 instructions on ix86
@@ -16,13 +16,14 @@
 Summary:	Port of OpenAI's Whisper model in C/C++
 Summary(pl.UTF-8):	Port modelu OpenAI Whisper w C/C++
 Name:		whisper.cpp
-Version:	1.7.6
+Version:	1.9.5
 Release:	1
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/ggml-org/whisper.cpp/releases
 Source0:	https://github.com/ggml-org/whisper.cpp/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	fe917e4abd5961e2b4827abc21074093
+# Source0-md5:	53777520515dabd1076dd30bd13707b1
+Patch0:		%{name}-llama.patch
 URL:		https://github.com/ggml-org/whisper.cpp
 %{?with_sdl:BuildRequires:	SDL2-devel >= 2.0}
 %{?with_vulkan:BuildRequires:	Vulkan-Loader-devel}
@@ -32,10 +33,13 @@ BuildRequires:	cmake >= 3.19
 # libavcodec libavformat libavutil libswresample
 %{?with_ffmpeg:BuildRequires:	ffmpeg-devel}
 BuildRequires:	gcc >= 6:4.7
+%{?with_system_ggml:BuildRequires:	ggml-devel >= 0.26.0}
 BuildRequires:	libgomp-devel
 BuildRequires:	libstdc++-devel >= 6:7
+%{?with_system_llama:BuildRequires:	llama.cpp-devel >= 0.6.0}
 BuildRequires:	pkgconfig
 %{?with_vulkan:BuildRequires:	shaderc}
+%{?with_system_ggml:Requires:	ggml%{?_isa} >= 0.26.0}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -51,7 +55,8 @@ OpenAI Whisper (<https://github.com/openai/whisper>).
 Summary:	Tools for Whisper ASR model
 Summary(pl.UTF-8):	Narzędzia do modelu automatycznego rozpoznawania mowy Whisper
 Group:		Applications/Sound
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+%{?with_system_llama:Requires:	llama.cpp%{?_isa} >= 0.6.0}
 
 %description tools
 Tools for Whisper ASR model.
@@ -63,7 +68,8 @@ Narzędzia do modelu automatycznego rozpoznawania mowy Whisper.
 Summary:	Header files for whisper.cpp library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki whisper.cpp
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+Requires:	ggml-devel%{?_isa} >= 0.26.0
 
 %description devel
 Header files for whisper.cpp library.
@@ -73,16 +79,20 @@ Pliki nagłówkowe biblioteki whisper.cpp.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 # TODO:
 # WHISPER_OPENVINO?
+%if %{without system_ggml}
 # GGML_CUDA on bcond
 # GGML_KOMPUTE (https://github.com/KomputeProject/kompute)
 # GGML_RPC?
 # GGML_SYCL (oneAPI SYCL, oneDNN)
 # BMI2 code requires x86_64 (thus GGML_CPU_ALL_VARIANTS is not applicable to ix86)
+%endif
 %cmake -B build \
+%if %{without system_ggml}
 %ifarch %{x8664} x32
 	-DGGML_CPU_ALL_VARIANTS=ON \
 %else
@@ -96,10 +106,12 @@ Pliki nagłówkowe biblioteki whisper.cpp.
 	-DGGML_NATIVE=OFF \
 	-DGGML_OPENMP=ON \
 	%{?with_vulkan:-DGGML_VULKAN=ON} \
+%endif
 	%{?with_curl:-DWHISPER_CURL=ON} \
-	%{?with_ffmpeg:-DWHISPER_FFMPEG=ON} \
+	%{?with_ffmpeg:-DWHISPER_COMMON_FFMPEG=ON} \
 	%{?with_sdl:-DWHISPER_SDL2=ON} \
-	%{?with_system_ggml:-DWHISPER_USE_SYSTEM_GGML=ON}
+	%{?with_system_ggml:-DWHISPER_USE_SYSTEM_GGML=ON} \
+	%{?with_system_llama:-DWHISPER_USE_SYSTEM_LLAMA=ON}
 
 %{__make} -C build
 
@@ -118,31 +130,53 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS LICENSE README.md README_sycl.md
-%attr(755,root,root) %{_libdir}/libwhisper.so.*.*.*
+%{_libdir}/libparakeet.so.*.*.*
+%ghost %{_libdir}/libparakeet.so.1
+%{_libdir}/libwhisper.so.*.*.*
 %ghost %{_libdir}/libwhisper.so.1
 %if %{without system_ggml}
-%attr(755,root,root) %{_libdir}/libggml.so
-%attr(755,root,root) %{_libdir}/libggml-base.so
-%attr(755,root,root) %{_libdir}/libggml-cpu.so
+%{_libdir}/libggml.so
+%{_libdir}/libggml-base.so
+%{_libdir}/libggml-cpu.so
+%endif
+%if %{without system_llama}
+%{_libdir}/libllama.so.*.*.*
+%ghost %{_libdir}/libllama.so.0
 %endif
 
 %files tools
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/vad-speech-segments
+%attr(755,root,root) %{_bindir}/parakeet-cli
+%attr(755,root,root) %{_bindir}/parakeet-quantize
 %attr(755,root,root) %{_bindir}/whisper-bench
 %attr(755,root,root) %{_bindir}/whisper-cli
 %attr(755,root,root) %{_bindir}/whisper-command
+%attr(755,root,root) %{_bindir}/whisper-lsp
+%attr(755,root,root) %{_bindir}/whisper-quantize
 %attr(755,root,root) %{_bindir}/whisper-server
 %attr(755,root,root) %{_bindir}/whisper-stream
+%attr(755,root,root) %{_bindir}/whisper-talk-llama
+%attr(755,root,root) %{_bindir}/whisper-vad-speech-segments
 
 %files devel
 %defattr(644,root,root,755)
+%{_libdir}/libparakeet.so
 %{_libdir}/libwhisper.so
+%{_includedir}/parakeet.h
 %{_includedir}/whisper.h
+%{_libdir}/cmake/parakeet
 %{_libdir}/cmake/whisper
+%{_pkgconfigdir}/parakeet.pc
 %{_pkgconfigdir}/whisper.pc
 %if %{without system_ggml}
 %{_includedir}/ggml*.h
 %{_includedir}/gguf.h
 %{_libdir}/cmake/ggml
 %endif
+%if %{without system_llama}
+%{_libdir}/libllama.so
+%{_includedir}/llama.h
+%{_includedir}/llama-cpp.h
+%{_libdir}/cmake/llama
+%{_pkgconfigdir}/llama.pc
+%endif
diff --git a/whisper.cpp-llama.patch b/whisper.cpp-llama.patch
new file mode 100644
index 0000000..a8478c0
--- /dev/null
+++ b/whisper.cpp-llama.patch
@@ -0,0 +1,14 @@
+--- whisper.cpp-1.9.5/examples/talk-llama/CMakeLists.txt.orig	2026-10-06 16:10:35.000000000 +0200
++++ whisper.cpp-1.9.5/examples/talk-llama/CMakeLists.txt	2026-11-19 22:24:12.880522707 +0100
+@@ -4,7 +4,10 @@ if (WHISPER_SDL2)
+ 
+     if (WHISPER_USE_SYSTEM_LLAMA)
+         message(STATUS "Using system-provided llama.cpp, skipping llama.cpp fetch")
+-        find_package(llama 0.6.0 REQUIRED)
++        find_package(llama 0.6.0)
++        if (NOT llama_FOUND)
++            find_package(llama 1.0 REQUIRED)
++        endif ()
+     else()
+         include(FetchContent)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/whisper.cpp.git/commitdiff/1fa97ae715608dcdd7e1ca12cc1db420e49f7640



More information about the pld-cvs-commit mailing list