From ec561f9a46f98d193746c6c29e4eefe3382cd97b Mon Sep 17 00:00:00 2001 From: zhoupengcheng11 Date: Wed, 6 Sep 2023 23:31:20 +0800 Subject: [PATCH] Fix the conflict with the installation of package sentencepiece. --- chatglm.cpp.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/chatglm.cpp.spec b/chatglm.cpp.spec index df9243d..ca8a9d2 100644 --- a/chatglm.cpp.spec +++ b/chatglm.cpp.spec @@ -2,7 +2,7 @@ Name: chatglm-cpp Version: 0.2.4 -Release: 1 +Release: 2 License: MIT Summary: Port of Chinese lagre model ChatGLM-6B & ChatGLM2-6B implemented based on C/C++ @@ -10,6 +10,7 @@ URL: https://github.com/li-plus/chatglm.cpp Source0: https://github.com/li-plus/chatglm.cpp/releases/download/0.2.4/chatglm-cpp-%{version}.tar.gz BuildRequires: gcc,gcc-c++,cmake +Requires: sentencepiece %description Port of Chinese lagre model ChatGLM-6B & ChatGLM2-6B implemented based on C/C++, @@ -31,6 +32,10 @@ pushd chatglm_builddir install bin/main %{buildroot}%{_prefix}/local/bin/chatglm_cpp_main install lib/libchatglm.a %{buildroot}%{_prefix}/local/bin/libchatglm.a mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix} + +#Remove files from package sentencepiece. +find %{buildroot}%{_prefix} -type f -name "*sentencepiece*" -exec rm -f {} + +rm %{buildroot}%{_bindir}/spm_* -f popd %files @@ -41,6 +46,8 @@ popd /usr/lib/static/libggml.a %changelog +* Wed Sep 6 2023 zhoupengcheng - 0.2.4-2 +- Fix the conflict with the installation of package sentencepiece. + * Tue Aug 22 2023 zhoupengcheng - 0.2.4-1 - Init package -