From 758546bf6a45b8de850e22baf509c72a8f6f7ccf Mon Sep 17 00:00:00 2001 From: Yinsist Date: Mon, 29 Apr 2024 01:21:44 +0000 Subject: [PATCH] first check if Valgrind supports the architecture --- rapidjson.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rapidjson.spec b/rapidjson.spec index c61dc94..62ade66 100644 --- a/rapidjson.spec +++ b/rapidjson.spec @@ -1,13 +1,16 @@ %global debug_package %{nil} Name: rapidjson Version: 1.1.0 -Release: 11 +Release: 12 Summary: small & selft-contained fast JSON parser and generator for C++ License: MIT URL: http://miloyip.github.io/rapidjson Source0: https://github.com/miloyip/rapidjson/archive/v%{version}.tar.gz#/rapidjson-%{version}.tar.gz Patch0000: rapidjson-1.1.0-do_not_include_gtest_src_dir.patch -BuildRequires: cmake gcc-c++ gtest-devel valgrind +BuildRequires: cmake gcc-c++ gtest-devel +%ifarch "%{valgrind_arches}" +BuildRequires: valgrind +%endif %description RapidJSON as a fast JSON parser which generator for c++. It`s inspired by @@ -88,6 +91,9 @@ cd - %doc %{_pkgdocdir} %changelog +* Mon Apr 29 2024 yinsist - 1.1.0-12 +- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture + * Fri Aug 25 2023 liyanan - 1.1.0-11 - Do not force C++11: gtest 1.13.0 requires at least C++14