diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index 8fb7c859e..8f3cfce94 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -70,6 +70,10 @@ Overall this is all raw and EXPERIMENTAL, no warranty, no support. %prep %setup sed -i '/BLA_SIZEOF_INTEGER/s/8/ANY/' CMakeLists.txt +cat <<-EOF >> scripts/build-info.cmake + set(BUILD_NUMBER $(tr -d '[:alpha:]' <<< '%version')) + set(BUILD_COMMIT "%release") +EOF %build %cmake \ @@ -123,6 +127,7 @@ LLAMA_ARGS="-m %_datadir/%name/ggml-model-f32.bin" EOF %check +%_cmake__builddir/bin/main --version |& grep -Fx 'version: %version (%release)' %ctest -j1 -E test-eval-callback %files