From f10e39859a470d822a33ce05edea1b9bfdc0b778 Mon Sep 17 00:00:00 2001 From: whoisxxx Date: Mon, 1 Jun 2020 19:08:46 +0800 Subject: [PATCH] Add valgrind buildrequires with precondition Signed-off-by: whoisxxx --- diffutils.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/diffutils.spec b/diffutils.spec index e32ce07..752c91d 100644 --- a/diffutils.spec +++ b/diffutils.spec @@ -9,7 +9,10 @@ Patch2: diffutils-i18n.patch License: GPLv3+ Provides: bundled(gnulib) -BuildRequires: gcc, help2man, valgrind, gettext-devel +BuildRequires: gcc, help2man, gettext-devel +%ifarch %{valgrind_arches} +BuildRequires: valgrind +%endif BuildRequires: autoconf, automake, texinfo %description