From c25b4679dc0f6480d167930741dff1793e066c45 Mon Sep 17 00:00:00 2001 From: Yinsist Date: Sun, 28 Apr 2024 14:51:00 +0000 Subject: [PATCH] first check if Valgrind supports the architecture --- libsecret.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libsecret.spec b/libsecret.spec index 3b6ef6a..26807b3 100644 --- a/libsecret.spec +++ b/libsecret.spec @@ -2,15 +2,17 @@ Name: libsecret Version: 0.20.5 -Release: 1 +Release: 2 Summary: Library for storing and retrieving passwords and other secrets License: LGPLv2+ URL: https://wiki.gnome.org/Projects/Libsecret Source0: https://download.gnome.org/sources/libsecret/%{release_version}/libsecret-%{version}.tar.xz BuildRequires: glib2-devel gobject-introspection-devel intltool vala gettext gi-docgen meson -BuildRequires: libgcrypt-devel >= 1.2.2 libxslt-devel docbook-style-xsl valgrind-devel - +BuildRequires: libgcrypt-devel >= 1.2.2 libxslt-devel docbook-style-xsl +%ifarch "%{valgrind_arches}" +BuildRequires: valgrind-devel +%endif Provides: bundled(egglib) %description @@ -32,7 +34,9 @@ developing applications that use %{name}. %prep %autosetup -p1 +%ifarch "%{valgrind_arches}" rm -rf build/valgrind/ +%endif %build %meson @@ -68,6 +72,9 @@ rm -rf build/valgrind/ %doc %{_docdir}/libsecret-1 %changelog +* Sun Apr 28 2024 yinsist - 0.20.5-2 +- Valgrind does not support certain architectures like RISC-V, Before depending on Valgrind, first check if Valgrind supports the architecture + * Tue Feb 27 2024 dongyuzhen - 0.20.5-1 - revert "Update to 0.21.0"