Fix the conflict with the installation of package sentencepiece.

This commit is contained in:
zhoupengcheng11 2023-09-06 23:31:20 +08:00
parent 07714badba
commit ec561f9a46

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