From 4eb05d1ebd94907f647a83a77a90502d81db8655 Mon Sep 17 00:00:00 2001 From: laokz Date: Sat, 28 Sep 2024 13:25:18 +0800 Subject: [PATCH] let buildrequire:valgrind depend on system macros --- mpich.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mpich.spec b/mpich.spec index e7f7ad5..19366f8 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,7 +1,7 @@ Summary: A high-performance implementation of MPI Name: mpich Version: 4.0.3 -Release: 5 +Release: 6 License: MIT URL: http://www.mpich.org/ Source0: http://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz @@ -10,7 +10,10 @@ Source2: mpich.pth.py3 Patch0: mpich-modules.patch Patch1: remove_json_c_conflict_glibc.patch -BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 valgrind-devel +BuildRequires: gcc gcc-c++ gcc-gfortran hwloc-devel >= 1.8 +%ifarch %{valgrind_arches} +BuildRequires: valgrind-devel +%endif BuildRequires: python3-devel automake Provides: mpi Provides: mpich2 = %{version} @@ -208,6 +211,9 @@ make check V=1 %{python3_sitearch}/mpich.pth %changelog +* Sat Sep 28 2024 laokz - 4.0.3-6 +- Let buildrequire:valgrind depend on system macros + * Tue Jul 23 2024 yuanlipeng - 4.0.3-5 - Fix build failure due to automake upgrade -- Gitee