Fix the conflict with the installation of package sentencepiece.
This commit is contained in:
parent
07714badba
commit
ec561f9a46
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: chatglm-cpp
|
Name: chatglm-cpp
|
||||||
Version: 0.2.4
|
Version: 0.2.4
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
Summary: Port of Chinese lagre model ChatGLM-6B & ChatGLM2-6B implemented based on C/C++
|
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
|
Source0: https://github.com/li-plus/chatglm.cpp/releases/download/0.2.4/chatglm-cpp-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc,gcc-c++,cmake
|
BuildRequires: gcc,gcc-c++,cmake
|
||||||
|
Requires: sentencepiece
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Port of Chinese lagre model ChatGLM-6B & ChatGLM2-6B implemented based on C/C++,
|
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 bin/main %{buildroot}%{_prefix}/local/bin/chatglm_cpp_main
|
||||||
install lib/libchatglm.a %{buildroot}%{_prefix}/local/bin/libchatglm.a
|
install lib/libchatglm.a %{buildroot}%{_prefix}/local/bin/libchatglm.a
|
||||||
mv %{buildroot}%{_prefix}/local/* %{buildroot}%{_prefix}
|
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
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -41,6 +46,8 @@ popd
|
|||||||
/usr/lib/static/libggml.a
|
/usr/lib/static/libggml.a
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Aug 22 2023 zhoupengcheng <zhoupengcheng11@huawei.com> - 0.2.4-1
|
||||||
- Init package
|
- Init package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user