Properly check valgrind arches

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-04-28 10:19:08 +03:00
parent 174bd83aa9
commit 848a1272d3
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -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 <davidlt@rivosin.com> - 1.2.0-29.0.riscv64
- Properly check valgrind arches
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild