From 848a1272d362c9dab788ce171c6f6461921e093a Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 28 Apr 2023 10:19:08 +0300 Subject: [PATCH] Properly check valgrind arches Signed-off-by: David Abdurachmanov --- libxdg-basedir.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libxdg-basedir.spec b/libxdg-basedir.spec index 6b5420f..8e45054 100644 --- a/libxdg-basedir.spec +++ b/libxdg-basedir.spec @@ -1,6 +1,6 @@ Name: libxdg-basedir Version: 1.2.0 -Release: 29%{?dist} +Release: 29.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,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %check +%ifarch %{valgrind_arches} make check USE_VALGRIND=1 +%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 +92,9 @@ diff -u grep.NULL grep.HOME %doc doc/html/ %changelog +* Fri Apr 28 2023 David Abdurachmanov - 1.2.0-29.0.riscv64 +- Properly check valgrind arches + * Thu Jan 19 2023 Fedora Release Engineering - 1.2.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild