From a371d7965e0a18f00212ea94d1e7827f2a7dcea2 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 3 Jun 2024 06:12:00 +0300 Subject: [PATCH] spec: Show cmake build options and install them into doc (build-options.txt) For example, do we have 'LLAMA_AVX2=OFF'? Signed-off-by: Vitaly Chikunov --- .gear/llama.cpp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index a4467df2d..60faa0d46 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -67,6 +67,7 @@ Overall this is all raw and EXPERIMENTAL, no warranty, no support. %build %cmake +grep ^LLAMA %_cmake__builddir/CMakeCache.txt | sort | tee build-options.txt %cmake_build find -name '*.py' | xargs sed -i '1s|#!/usr/bin/env python3|#!%__python3|' @@ -116,7 +117,7 @@ EOF %files %define _customdocdir %_docdir/%name -%doc LICENSE README.md docs +%doc LICENSE README.md docs build-options.txt %_bindir/llama-* %_bindir/convert-*.py %_unitdir/llama.service