Properly check valgrind arches

This change makes it possible to build the package on riscv64,
an architecture that is not yet supported by valgrind.

Resolves: RHEL-87803

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2025-04-18 11:49:43 +02:00 committed by Andrea Bolognani
parent 325d74052c
commit 6dff3eb3c6

View File

@ -3,7 +3,7 @@
Summary: A GNU stream text editor
Name: sed
Version: 4.9
Release: 3%{?dist}
Release: 4%{?dist}
License: GPL-3.0-or-later
URL: http://sed.sourceforge.net/
Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.xz
@ -20,7 +20,11 @@ BuildRequires: perl(FileHandle)
# invalid-mb-seq-UMR.sh: skipped test: locale 'ja_JP' is buggy
# mb-charclass-non-utf8.sh: skipped test: ja_JP shift-jis locale not found
BuildRequires: glibc-langpack-el, glibc-langpack-en
BuildRequires: glibc-langpack-ru, valgrind
BuildRequires: glibc-langpack-ru
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
Provides: /bin/sed
@ -64,6 +68,10 @@ rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
%{_mandir}/man1/sed.1*
%changelog
* Fri Apr 18 2025 David Abdurachmanov <davidlt@rivosinc.com> - 4.9-4
- Properly check valgrind arches (fixes riscv64 build)
Resolves: RHEL-87803
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.9-3
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018