diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index 1f73a6167..bc9467499 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -101,8 +101,10 @@ install -Dp examples/*.sh -t %buildroot%_datadir/%name/examples install -Dp examples/*.py -t %buildroot%_datadir/%name/examples # Install and rename binaries to have llama- prefix. cd %_cmake__builddir/bin -find -maxdepth 1 -type f -executable -not -name 'test-*' -printf '%%f\0' | +find -maxdepth 1 -type f -executable -not -name 'test-*' -not -name 'llama-*' -printf '%%f\0' | xargs -0ti -n1 install -p {} %buildroot%_bindir/llama-{} +find -maxdepth 1 -type f -executable -name 'llama-*' -printf '%%f\0' | + xargs -0ti -n1 install -p {} -t %buildroot%_bindir mkdir -p %buildroot%_unitdir cat <<'EOF' >%buildroot%_unitdir/llama.service