first check if Valgrind supports the architecture

This commit is contained in:
Yinsist 2024-04-28 14:51:00 +00:00
parent 9f308b374d
commit c25b4679dc

View File

@ -2,15 +2,17 @@
Name: libsecret Name: libsecret
Version: 0.20.5 Version: 0.20.5
Release: 1 Release: 2
Summary: Library for storing and retrieving passwords and other secrets Summary: Library for storing and retrieving passwords and other secrets
License: LGPLv2+ License: LGPLv2+
URL: https://wiki.gnome.org/Projects/Libsecret URL: https://wiki.gnome.org/Projects/Libsecret
Source0: https://download.gnome.org/sources/libsecret/%{release_version}/libsecret-%{version}.tar.xz 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: 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) Provides: bundled(egglib)
%description %description
@ -32,7 +34,9 @@ developing applications that use %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1
%ifarch "%{valgrind_arches}"
rm -rf build/valgrind/ rm -rf build/valgrind/
%endif
%build %build
%meson %meson
@ -68,6 +72,9 @@ rm -rf build/valgrind/
%doc %{_docdir}/libsecret-1 %doc %{_docdir}/libsecret-1
%changelog %changelog
* Sun Apr 28 2024 yinsist <jianhui.oerv@isrc.iscas.ac.cn> - 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 <dongyuzhen@h-partners.com> - 0.20.5-1 * Tue Feb 27 2024 dongyuzhen <dongyuzhen@h-partners.com> - 0.20.5-1
- revert "Update to 0.21.0" - revert "Update to 0.21.0"