!16 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:01:41 +00:00 committed by Gitee
commit 73a40fafb8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

11
jq.spec
View File

@ -1,12 +1,14 @@
Name: jq
Version: 1.6
Release: 3
Release: 4
Summary: A lightweight and flexible command-line JSON processor
License: MIT and ASL 2.0 and CC-BY-3.0 and GPLv3
URL: http://stedolan.github.io/jq/
Source0: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
BuildRequires: make flex bison valgrind gcc chrpath oniguruma-devel
BuildRequires: make flex bison gcc chrpath oniguruma-devel
%ifarch "%{valgrind_arches}"
BuildRequires: valgrind
%endif
Patch0001: jv_string_implode-avoid-producing-unprintable-string-fromreserved-code-points.patch
Patch0002: Binary-strings-preserve-UTF-8-and-UTF-16-errors.patch
Patch0003: Update-base64-utf8bytelength-and-fromjson-to-handlebinary-strings.patch
@ -75,6 +77,9 @@ make check
%changelog
* Sun Apr 28 2024 yinsist <jianhui.oerv@isrc.iscas.ac.cn> - 1.6-4
- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture
* Mon May 30 2022 Chenyx <chenyixiong3@huawei.com> - 1.6-3
- License compliance rectification