diff --git a/2827.patch b/2827.patch new file mode 100644 index 0000000..63937ac --- /dev/null +++ b/2827.patch @@ -0,0 +1,23 @@ +From 6a508d3d7e9af6e8b60eb00f77c2721ddf0e7ea1 Mon Sep 17 00:00:00 2001 +From: Vitaly Zaitsev +Date: Sun, 23 Jul 2023 10:11:37 +0200 +Subject: [PATCH] Added missing square bracket to fix the level_to_string_view + test. + +--- + tests/test_misc.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp +index 9f3cb1744..6199641ff 100644 +--- a/tests/test_misc.cpp ++++ b/tests/test_misc.cpp +@@ -43,7 +43,7 @@ TEST_CASE("log_levels", "[log_levels]") + REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello"); + } + +-TEST_CASE("level_to_string_view", "[convert_to_string_view") ++TEST_CASE("level_to_string_view", "[convert_to_string_view]") + { + REQUIRE(spdlog::level::to_string_view(spdlog::level::trace) == "trace"); + REQUIRE(spdlog::level::to_string_view(spdlog::level::debug) == "debug"); diff --git a/spdlog.changes b/spdlog.changes index 50e0b8f..39cf049 100644 --- a/spdlog.changes +++ b/spdlog.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 2 12:48:47 UTC 2023 - Dominique Leuenberger + +- Add 2827.patch: Added missing square bracket to fix the + level_to_string_view. + ------------------------------------------------------------------- Sun Jul 9 12:02:44 UTC 2023 - Bernd Ritter diff --git a/spdlog.spec b/spdlog.spec index 8927064..68e1da5 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -26,6 +26,8 @@ License: MIT URL: https://github.com/gabime/spdlog Source0: https://github.com/gabime/%{name}/archive/refs/tags/v%{version}.tar.gz Source99: baselibs.conf +# PATCH-FIX-UPSTREAM 2827.patch -- Added missing square bracket to fix the level_to_string_view +Patch0: https://patch-diff.githubusercontent.com/raw/gabime/spdlog/pull/2827.patch BuildRequires: cmake >= 3.10 %if 0%{?suse_version} > 1500 BuildRequires: gcc-c++ >= 8