Update package version to 1.15.3

This commit is contained in:
2025-09-10 19:21:49 +03:00
parent 907937a19d
commit 0319376a89
4 changed files with 51 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="gabime/spdlog"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+1 -2
View File
@@ -1,7 +1,6 @@
name: spdlog name: spdlog
description: Fast C++ logging library description: Fast C++ logging library
version: 1.14.1 version: 1.15.3
revision: 2
url: https://github.com/gabime/spdlog url: https://github.com/gabime/spdlog
license: MIT license: MIT
architecture: any architecture: any
+23
View File
@@ -0,0 +1,23 @@
From b77a2cab5b1e6710ec55e6a4484f43278fc0036b Mon Sep 17 00:00:00 2001
From: Vitaly <[email protected]>
Date: Wed, 30 Jul 2025 11:59:03 +0200
Subject: [PATCH] Run tests in the order they are declared in the source file.
Fixes an issue with running tests in random order in Catch2 3.9.0+.
---
tests/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 457504c313..5ba2a106a7 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -75,7 +75,7 @@ function(spdlog_prepare_test test_target spdlog_lib)
elseif(SPDLOG_SANITIZE_THREAD)
spdlog_enable_thread_sanitizer(${test_target})
endif()
- add_test(NAME ${test_target} COMMAND ${test_target})
+ add_test(NAME ${test_target} COMMAND ${test_target} --order decl)
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
endfunction()
+11 -10
View File
@@ -10,36 +10,37 @@ FILENAME="${DOWNLOAD##*/}"
prepare() { prepare() {
wget "$DOWNLOAD" wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Fix segfault during tests
patch -Np1 -i "$BPM_WORKDIR"/fix-test-segfault.patch
} }
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build cmake -B build \
cd build -DSPDLOG_BUILD_BENCH=OFF \
cmake -DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_FMT_EXTERNAL=ON \ -DSPDLOG_FMT_EXTERNAL=ON \
-DSPDLOG_BUILD_SHARED=ON \ -DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_BUILD_TESTS=ON \ -DSPDLOG_BUILD_TESTS=ON \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib .. -DCMAKE_INSTALL_LIBDIR=lib
make cmake --build build
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
cd build ctest --test-dir build
make check
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build DESTDIR="$BPM_OUTPUT" cmake --install build
make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/spdlog/LICENSE install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/spdlog/LICENSE
} }