## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Summary: Port of OpenAI's Whisper model in C/C++ Name: whisper-cpp License: MIT # Some execptions # Apache-2 # bindings/java/gradlew* # examples/whisper.android/gradlew* # These are not distributed Version: 1.9.2 Release: %autorelease URL: https://github.com/ggerganov/whisper.cpp Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/whisper.cpp-%{version}.tar.gz ExclusiveArch: x86_64 aarch64 ppc64le %global toolchain gcc # OpenVINO only supports x86_64 and aarch64 # Presently, Fedora only packages it on x86_64 %ifarch x86_64 # FTBFS 7/27/26 openvino needs rebuilding at least %bcond_with openvino %bcond_without rocm %else %bcond_with openvino %bcond_with rocm %endif %if %{with openvino} %global build_openvino ON %else %global build_openvino OFF %endif %if %{with rocm} %global build_rocm ON # need our own gpu list, without gfx1250 %global rocm_gpu_list "gfx9-generic;gfx942;gfx950;gfx10-1-generic;gfx10-3-generic;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201" %else %global build_rocm OFF %global rocm_gpu_list %{nil} %endif %bcond_with test %if %{with test} %global build_test ON %else %global build_test OFF %endif %global sover %{version} BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: git %if %{with openvino} BuildRequires: openvino-devel %endif %if %{with rocm} BuildRequires: hipblas-devel BuildRequires: rocblas-devel BuildRequires: rocm-rpm-macros %endif %description High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model: * Plain C/C++ implementation without dependencies * Apple Silicon first-class citizen - optimized via ARM NEON, Accelerate framework, Metal and Core ML * AVX intrinsics support for x86 architectures * VSX intrinsics support for POWER architectures * Mixed F16 / F32 precision * 4-bit and 5-bit integer quantization support * Zero memory allocations at runtime * Support for CPU-only inference * Efficient GPU support for NVIDIA * Partial OpenCL GPU support via CLBlast * OpenVINO Support * C-style API %package devel Summary: Libraries and headers for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model: * Plain C/C++ implementation without dependencies * Apple Silicon first-class citizen - optimized via ARM NEON, Accelerate framework, Metal and Core ML * AVX intrinsics support for x86 architectures * VSX intrinsics support for POWER architectures * Mixed F16 / F32 precision * 4-bit and 5-bit integer quantization support * Zero memory allocations at runtime * Support for CPU-only inference * Efficient GPU support for NVIDIA * Partial OpenCL GPU support via CLBlast * OpenVINO Support * C-style API %prep %autosetup -p1 -n whisper.cpp-%{version} %build %cmake \ -DCMAKE_HIP_ARCHITECTURES=%{rocm_gpu_list} \ -DWHISPER_BUILD_EXAMPLES=%{build_test} \ -DWHISPER_BUILD_SERVER=%{build_test} \ -DWHISPER_BUILD_TESTS=%{build_test} \ -DWHISPER_OPENVINO=%{build_openvino} \ -DGGML_HIP=%{build_rocm} \ -DGGML_NATIVE=OFF \ -DGGML_AMX_TILE=OFF \ -DGGML_AMX_INT8=OFF \ -DGGML_AMX_BF16=OFF \ -DGGML_AVX=OFF \ -DGGML_AVX_VNNI=OFF \ -DGGML_AVX2=OFF \ -DGGML_AVX512=OFF \ -DGGML_AVX512_VBMI=OFF \ -DGGML_AVX512_VNNI=OFF \ -DGGML_AVX512_BF16=OFF \ -DGGML_BMI2=OFF \ -DGGML_FMA=OFF \ -DGGML_F16C=OFF \ -DGGML_LASX=OFF \ -DGGML_LSX=OFF \ -DGGML_RVV=OFF \ -DGGML_RV_ZFH=OFF \ -DGGML_SSE42=OFF \ -DGGML_XTHEADVECTOR=OFF \ -DGGML_VXE=OFF %cmake_build %install %cmake_install find %{buildroot} -name 'whisper.pc' -delete %check %if %{with test} # FIXME: Tests have been disabled in upstream sources since v1.7.0 %ctest %endif %files %license LICENSE %{_libdir}/libggml.so.* %{_libdir}/libggml-base.so.* %{_libdir}/libggml-cpu.so.* %{_libdir}/libwhisper.so.* %{_libdir}/libparakeet.so.* %if %{with rocm} %{_libdir}/libggml-hip.so.* %endif %files devel %doc README.md %{_includedir}/*.h %{_libdir}/libggml.so %{_libdir}/libggml-base.so %{_libdir}/libggml-cpu.so %{_libdir}/libparakeet.so %{_libdir}/libwhisper.so %{_libdir}/cmake/ggml/ %{_libdir}/cmake/parakeet/ %{_libdir}/cmake/whisper/ %{_libdir}/pkgconfig/parakeet.pc %if %{with rocm} %{_libdir}/libggml-hip.so %endif %changelog ## START: Generated by rpmautospec * Mon Aug 17 2026 Tom Rix - 1.9.2-1 - Update to 1.9.2 * Mon Jul 27 2026 Tom Rix - 1.8.3-4 - Disable openvino to work around a ftbfs * Fri Jul 17 2026 Fedora Release Engineering - 1.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat Jun 20 2026 Tom Rix - 1.8.3-2 - Rebuild for openvino * Sun Mar 15 2026 Tom Rix - 1.8.3-1 - Update to 1.8.3 * Sat Jan 17 2026 Fedora Release Engineering - 1.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Oct 15 2025 Tom Rix - 1.8.1-1 - Update to 1.8.1 * Sat Aug 09 2025 Tom Rix - 1.7.6-2 - Enable hip backend * Sat Aug 09 2025 Tom Rix - 1.7.6-1 - Update to 1.7.6 * Fri Jul 25 2025 Fedora Release Engineering - 1.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Feb 28 2025 Alexander F. Lent - 1.7.1-4 - Add option for OpenVINO Backend * Sun Feb 16 2025 Alexander F. Lent - 1.7.1-3 - Fix build options for broad compatability * Sun Jan 19 2025 Fedora Release Engineering - 1.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Oct 14 2024 Tom Rix - 1.7.1-1 - Update to 1.7.1 * Sat Jul 20 2024 Fedora Release Engineering - 1.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 06 2024 Tom Rix - 1.6.2-1 - Update to 1.6.2 * Wed Feb 07 2024 Tom Rix - 1.5.4-1 - Initial package ## END: Generated by rpmautospec