From 0890da9277c023acee67f2231524d76aab4d9da1 Mon Sep 17 00:00:00 2001 From: Yinsist Date: Sun, 28 Apr 2024 13:26:09 +0000 Subject: [PATCH] first check if Valgrind supports the build architecture --- jq.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/jq.spec b/jq.spec index 6b12345..089f690 100644 --- a/jq.spec +++ b/jq.spec @@ -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 - 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 - 1.6-3 - License compliance rectification -- Gitee