!10 first check if Valgrind supports the build architecture

From: @yinist 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-05-07 01:14:09 +00:00 committed by Gitee
commit 9066f99d01
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <jianhui.oerv@isrc.iscas.ac.cn> - 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 <thistleslyn@163.com> - 1.1.0-11
- Do not force C++11: gtest 1.13.0 requires at least C++14