diff --git a/.gitignore b/.gitignore index 2327fc7..e883845 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,5 @@ /doctest-2.4.4.tar.gz /doctest-2.4.5.tar.gz /doctest-2.4.6.tar.gz -/no-werror.patch /doctest-2.4.7.tar.gz +/v2.4.8.tar.gz diff --git a/0001-linux-always-include-signal.h.patch b/0001-linux-always-include-signal.h.patch new file mode 100644 index 0000000..ad6321f --- /dev/null +++ b/0001-linux-always-include-signal.h.patch @@ -0,0 +1,29 @@ +From 6553cd110e061ca848e8b25241b694653ba0d571 Mon Sep 17 00:00:00 2001 +From: nick black +Date: Thu, 18 Feb 2021 06:07:12 -0500 +Subject: [PATCH] linux: always include signal.h + +--- + doctest/parts/doctest_fwd.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git doctest/parts/doctest_fwd.h doctest/parts/doctest_fwd.h +index 2b926a0..70c3cfb 100644 +--- doctest/parts/doctest_fwd.h ++++ doctest/parts/doctest_fwd.h +@@ -357,11 +357,11 @@ DOCTEST_MSVC_SUPPRESS_WARNING(26812) // Prefer 'enum class' over 'enum' + #ifndef DOCTEST_BREAK_INTO_DEBUGGER + // should probably take a look at https://github.com/scottt/debugbreak + #ifdef DOCTEST_PLATFORM_LINUX ++#include + #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64)) + // Break at the location of the failing check if possible + #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :) // NOLINT (hicpp-no-assembler) + #else +-#include + #define DOCTEST_BREAK_INTO_DEBUGGER() raise(SIGTRAP) + #endif + #elif defined(DOCTEST_PLATFORM_MAC) +-- +2.30.1 + diff --git a/doctest.spec b/doctest.spec index a2db276..826e93a 100644 --- a/doctest.spec +++ b/doctest.spec @@ -2,12 +2,12 @@ %global debug_package %{nil} Name: doctest -Version: 2.4.7 +Version: 2.4.8 Release: %autorelease Summary: Feature-rich header-only C++ testing framework License: MIT -URL: https://github.com/onqtam/%{name} -Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/doctest/%{name} +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake3 diff --git a/sources b/sources index 68eb6b8..d84bfce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (doctest-2.4.7.tar.gz) = bb2d410397700aa7be1161fcf26949524d4f7c333bb9ffe7d223dfd14e770d6eeff75336f27fe0c8051dcb6c403c6b3af506872f6ba207d2d86cc9e9d1d2bfbf +SHA512 (v2.4.8.tar.gz) = f9b40abfd756331f9b667f3c1e7dcf2652effacac70523834dd3946522f01459c095bdbad04651ad2ad155977e1395025f868ed4dcf5d5712aae9807afb5699c