let valgrind depend on system arch macro

This commit is contained in:
laokz 2024-09-25 13:44:40 +08:00 committed by laokz
parent 288acb7d18
commit da60747f37

View File

@ -43,7 +43,7 @@
Name: fwupd
Version: 1.8.17
Release: 5
Release: 6
License: LGPLv2+
Summary: Make updating firmware on Linux automatic, safe and reliable
URL: https://github.com/fwupd/fwupd
@ -65,9 +65,8 @@ Source15: https://sourceforge.net/p/gnu-efi/code/ci/3.0.18/tree/gnuefi/crt0-efi
Source16: https://sourceforge.net/p/gnu-efi/code/ci/3.0.18/tree/gnuefi/elf_loongarch64_efi.lds?format=raw#/elf_loongarch64_efi.lds
Patch0: fwupd-efi.patch
%ifarch riscv64
Patch1: https://raw.githubusercontent.com/GNOME/gnome-build-meta/37bc8931517261e359e02b2b14bffab0501e79d9/files/fwupd/riscv64.patch
%endif
#https://raw.githubusercontent.com/GNOME/gnome-build-meta/37bc8931517261e359e02b2b14bffab0501e79d9/files/fwupd/riscv64.patch
Patch1: riscv64.patch
Patch2: fwupd-add-loongarch64-spoort.patch
BuildRequires: libcbor libcbor-devel
@ -88,8 +87,10 @@ BuildRequires: libarchive-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gcab meson >= 0.61.0
BuildRequires: protobuf-c protobuf-c-devel tpm2-tss-devel
%ifarch %{valgrind_arches}
BuildRequires: valgrind
BuildRequires: valgrind-devel
%endif
BuildRequires: python3 ninja-build python3-jinja2 python3-toml python
BuildRequires: gnutls-devel
BuildRequires: gnutls-utils
@ -480,6 +481,9 @@ done
%{_datadir}/man/man1/*
%changelog
* Wed Sep 25 2024 laokz <zhangkai@iscas.ac.cn> - 1.8.17-6
- let valgrind depend on system arch macro
* Mon May 13 2024 Huang Yang <huangyang@loongson.cn> - 1.8.17-5
- add loongarch64 support