From ee4252c94897966065c2d010907f5fa4e0228c15 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 15 Nov 2022 08:49:59 +0200 Subject: [PATCH] Properly check for valgrind arches Signed-off-by: David Abdurachmanov --- libxdg-basedir.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libxdg-basedir.spec b/libxdg-basedir.spec index 3bceec7..99fba14 100644 --- a/libxdg-basedir.spec +++ b/libxdg-basedir.spec @@ -1,6 +1,6 @@ Name: libxdg-basedir Version: 1.2.0 -Release: 28%{?dist} +Release: 28.0.riscv64%{?dist} Summary: Implementation of the XDG Base Directory Specifications License: MIT @@ -10,7 +10,10 @@ Patch0: libxdg-basedir-leak.patch Patch1: libxdg-basedir-valgrind-libtool.patch Patch2: libxdg-basedir-basedir-bounds-error.patch Patch3: libxdg-basedir-home-undef.patch -BuildRequires: valgrind libtool +%ifarch %{valgrind_arches} +BuildRequires: valgrind +%endif +BuildRequires: libtool %description The XDG Base Directory Specification defines where should user files @@ -64,7 +67,11 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %check +%ifarch %{valgrind_arches} make check USE_VALGRIND=1 +%else +make check +%endif #env -i make check USE_VALGRIND=1 # Check that we get NULL for all things rooted in ENV{HOME} when running # with HOME unset @@ -87,6 +94,9 @@ diff -u grep.NULL grep.HOME %doc doc/html/ %changelog +* Tue Nov 15 2022 David Abdurachmanov - 1.2.0-28.0.riscv64 +- Properly check for valgrind arches + * Thu Jul 21 2022 Fedora Release Engineering - 1.2.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild