From 28260dbf8fc37bf49b989100e6a496dd50d4d08b Mon Sep 17 00:00:00 2001 From: laokz Date: Sat, 28 Sep 2024 14:20:05 +0800 Subject: [PATCH] let buildrequire:valgrind depend on system macro --- rapidjson.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rapidjson.spec b/rapidjson.spec index 0d21859..636247d 100644 --- a/rapidjson.spec +++ b/rapidjson.spec @@ -1,14 +1,17 @@ %global debug_package %{nil} Name: rapidjson Version: 1.1.0 -Release: 12 +Release: 13 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 Patch0001: backport-CVE-2024-38517.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 @@ -89,6 +92,9 @@ cd - %doc %{_pkgdocdir} %changelog +* Sat Sep 28 2024 laokz - 1.1.0-13 +- let buildrequire:valgrind depend on system macro + * Thu Jul 11 2024 zhangxianting - 1.1.0-12 - Fix CVE-2024-38517 -- Gitee