!3 Fix the conflict with the installation of package sentencepiece.

From: @zhoupengcheng11 
Reviewed-by: @hubin95 
Signed-off-by: @hubin95
This commit is contained in:
openeuler-ci-bot 2023-09-06 09:13:22 +00:00 committed by Gitee
commit 3b4b582b59
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <zhoupengcheng11@huawei.com> - 0.2.4-2
- Fix the conflict with the installation of package sentencepiece.
* Tue Aug 22 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 0.2.4-1
- Init package