spec: Generate man-page for llama-server
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
parent
55c4625b75
commit
3847cec1a5
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ Patch: %name-%version.patch
|
|||
BuildRequires(pre): rpm-macros-cmake
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: help2man
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libgomp-devel
|
||||
BuildRequires: libssl-devel
|
||||
|
|
@ -175,6 +176,7 @@ grep -E 'LLAMA|GGML' %_cmake__builddir/CMakeCache.txt | sort | tee build-options
|
|||
%cmake_build
|
||||
find -name '*.py' | xargs sed -i '1s|#!/usr/bin/env python3|#!%__python3|'
|
||||
LD_LIBRARY_PATH=%_cmake__builddir/bin %_cmake__builddir/bin/llama-cli --completion-bash > llama.bash
|
||||
LD_LIBRARY_PATH=%_cmake__builddir/bin .gear/gen-manpage %_cmake__builddir/bin/llama-server > llama-server.1
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
|
@ -193,6 +195,7 @@ install -Dpm644 llama.bash %buildroot%_datadir/bash-completion/completions/llama
|
|||
printf '%%s\n' llama-server llama-simple llama-run llama-mtmd-cli |
|
||||
xargs -ti ln -s llama-cli %buildroot%_datadir/bash-completion/completions/{}
|
||||
mv %buildroot%_bindir/rpc-server %buildroot%_bindir/llama-rpc-server
|
||||
install -Dpm644 llama-server.1 -t %buildroot%_man1dir
|
||||
|
||||
%check
|
||||
( ! cuobjdump --list-elf %buildroot%_libexecdir/llama/libggml-cuda.so | grep -F -v -e .cubin )
|
||||
|
|
@ -247,6 +250,7 @@ mv %buildroot%_bindir/convert*.py -t %buildroot%_datadir/%name/examples
|
|||
%_libexecdir/llama/libggml-cpu*.so
|
||||
%_libexecdir/llama/libggml-rpc.so
|
||||
%_datadir/bash-completion/completions/llama-*
|
||||
%_man1dir/llama-server.1*
|
||||
|
||||
%if_with cuda
|
||||
%files cuda
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue