From b23730e25657c5dcf6bbbcb286622d0b72fe973b Mon Sep 17 00:00:00 2001 From: Kanak Shilledar Date: Mar 14 2024 19:06:56 +0000 Subject: properly check valgrind supported architectures libinsane assumes valgrind is available on all arches, but for riscv there is still work in progress and riscv64 is not yet supported, thus resulting in the following `No matching package to install: 'valgrind'` error. Also there is ongoing work for adding support for riscv64 https://bugs.kde.org/show_bug.cgi?id=468575 Signed-off-by: Kanak Shilledar --- diff --git a/libinsane.spec b/libinsane.spec index a26c7a6..c625f79 100644 --- a/libinsane.spec +++ b/libinsane.spec @@ -15,7 +15,9 @@ BuildRequires: gcc BuildRequires: pkgconfig(sane-backends) BuildRequires: doxygen BuildRequires: pkgconfig(cunit) +%ifarch %{valgrind_arches} BuildRequires: valgrind +%endif %description Libinsane is the library to access scanners on both Linux and Windows. It's