From 3eb32945aa0d8cd3d6a0583d4e7224f6bb110e40 Mon Sep 17 00:00:00 2001 From: laokz Date: Thu, 12 Oct 2023 21:31:47 +0800 Subject: [PATCH] let BuildRequire valgrind depend on system %{valgrind_arches} --- openmpi.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/openmpi.spec b/openmpi.spec index 6e6c798..e8f4e2c 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -1,6 +1,6 @@ Name: openmpi Version: 4.1.5 -Release: 4 +Release: 5 Summary: Open Source High Performance Computing License: BSD-3-Clause URL: http://www.open-mpi.org/ @@ -14,7 +14,10 @@ Patch1001: 0001-add-loongarch64-support-for-openmpi.patch %endif BuildRequires: gcc-c++, gcc-gfortran -BuildRequires: valgrind-devel, hwloc-devel, java-devel, libfabric-devel, papi-devel +%ifarch %{valgrind_arches} +BuildRequires: valgrind-devel +%endif +BuildRequires: hwloc-devel, java-devel, libfabric-devel, papi-devel BuildRequires: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0 BuildRequires: librdmacm librdmacm-devel, rdma-core-devel, pmix-devel BuildRequires: hwloc-gui chrpath @@ -92,14 +95,15 @@ This contains man files for the using of openmpi. --sysconfdir=%{_sysconfdir}/%{name_all} \ --disable-silent-rules \ --enable-builtin-atomics \ - --enable-memchecker \ --enable-mpi-thread-multiple \ --enable-mpi-cxx \ --enable-mpi-java \ --enable-mpi1-compatibility \ --with-sge \ +%ifarch %{valgrind_arches} --with-valgrind \ --enable-memchecker \ +%endif --with-hwloc=/usr \ --with-pmix=external \ --with-libevent=external \ @@ -226,6 +230,9 @@ make check %{_mandir}/%{name_all}/man*/* %changelog +* Tue Mar 05 2024 laokz - 4.1.5-5 +- let BuildRequire valgrind depend on system %{valgrind_arches} + * Tue Jan 16 2024 peng.zou - 4.1.5-4 - Add ppc64le support -- Gitee