Update to 1.7.1
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
This commit is contained in:
parent
67835395bd
commit
55ca1f6d27
3 changed files with 13 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
sources
1
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue