From 55ca1f6d271a7757f8b4f4b8f088f807fa73265d Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 14 Oct 2024 14:34:02 -0700 Subject: [PATCH] Update to 1.7.1 Signed-off-by: Tom Rix --- .gitignore | 1 + sources | 1 + whisper-cpp.spec | 17 +++++++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index d9310b7..08700e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /whisper.cpp-1.5.4.tar.gz /whisper.cpp-1.6.2.tar.gz +/whisper.cpp-1.7.1.tar.gz diff --git a/sources b/sources index c75b3fb..05cdd43 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ SHA512 (whisper.cpp-1.5.4.tar.gz) = 0375c32bc5a590e6152e1a37059554371ceab99b3c93a733c084cec356c477ab2bc2d78fc0b661104153be0becb41f0edeff68ab762cb51c528309055c141455 SHA512 (whisper.cpp-1.6.2.tar.gz) = 17e0485fb93fdea1a89f584a64db35f05371e0b8710a539f0dffca30bd3a2fff44c72ea754556566ca3cc55415b1e8f2bb868665437f5c93b9ce666b4fe53fb3 +SHA512 (whisper.cpp-1.7.1.tar.gz) = 944d8a6e4a770462e77139d918fd1d5b93efca377051d83a584d91164ec73fa50b5bfbc7d85014151b3b5c80fa59cfd386e456960401f8b3c66a9788585cac46 diff --git a/whisper-cpp.spec b/whisper-cpp.spec index be47e40..0a1d285 100644 --- a/whisper-cpp.spec +++ b/whisper-cpp.spec @@ -8,13 +8,13 @@ License: MIT # examples/whisper.android/gradlew* # These are not distributed -Version: 1.6.2 +Version: 1.7.1 Release: %autorelease URL: https://github.com/ggerganov/whisper.cpp Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/whisper.cpp-%{version}.tar.gz # https://github.com/ggerganov/whisper.cpp/pull/1791 -Patch0: 0001-Generalize-install-locations.patch +# Patch0: 0001-Generalize-install-locations.patch ExclusiveArch: x86_64 aarch64 ppc64le %global toolchain clang @@ -65,8 +65,8 @@ recognition (ASR) model: %prep %autosetup -p1 -n whisper.cpp-%{version} -# verson the *.so -sed -i -e 's/POSITION_INDEPENDENT_CODE ON/POSITION_INDEPENDENT_CODE ON SOVERSION %{version}/' CMakeLists.txt +# verson the ggml *.so +sed -i -e 's@POSITION_INDEPENDENT_CODE ON@POSITION_INDEPENDENT_CODE ON SOVERSION ${SOVERSION}@' ggml/src/CMakeLists.txt %build @@ -82,18 +82,23 @@ sed -i -e 's/POSITION_INDEPENDENT_CODE ON/POSITION_INDEPENDENT_CODE ON SOVERSION %install %cmake_install +find %{buildroot} -name 'whisper.pc' -delete + %check %ctest %files %license LICENSE -%{_libdir}/libwhisper.so.%{version} +%{_libdir}/libggml.so.* +%{_libdir}/libwhisper.so.* %files devel %doc README.md -%{_includedir}/ggml.h +%{_includedir}/ggml*.h %{_includedir}/whisper.h +%{_libdir}/libggml.so %{_libdir}/libwhisper.so +%{_libdir}/cmake/whisper/*.cmake %changelog %autochangelog