spec: Do not package lib{llava,mtmd}_shared.so libs

Their purpose is unclear and seems experimental.

  warning: Installed (but unpackaged) file(s) found:
      /usr/lib64/libllava_shared.so
      /usr/lib64/libmtmd_shared.so

They aren't required for llama-llava-clip-quantize-cli nor for
llama-mtmd-cli, there is no headers for them.

Ref: 381efbf48 ("llava : expose as a shared library for downstream projects (#3613)")
Link: https://github.com/ggml-org/llama.cpp/pull/3613
Ref: 8b9cc7cdd ("llava : introduce libmtmd (#12849)")
Link: https://github.com/ggml-org/llama.cpp/pull/12849
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Vitaly Chikunov 2025-05-09 00:55:30 +03:00
parent 9167cfc475
commit 759f343545

View file

@ -134,6 +134,8 @@ sed -i '/POSITION_INDEPENDENT_CODE/s/PROPERTIES/& SOVERSION 0.0.%version/' ggml/
sed -i 's/POSITION_INDEPENDENT_CODE/SOVERSION 0.0.%version &/' ggml/cmake/ggml-config.cmake.in
# We do not have Internet access (issues/13371).
sed -i 's/common_has_curl()/0/' tests/test-arg-parser.cpp
# Libs with unclear purpose.
sed -i s/BUILD_SHARED_LIBS/0/ tools/mtmd/CMakeLists.txt
%build
# Unless -DCMAKE_SKIP_BUILD_RPATH=yes CMake fails to strip build time RPATH