let BuildRequire valgrind depend on system %{valgrind_arches}

This commit is contained in:
laokz 2023-10-12 21:31:47 +08:00 committed by laokz
parent 5b0ef2ca48
commit 3eb32945aa

View File

@ -1,6 +1,6 @@
Name: openmpi Name: openmpi
Version: 4.1.5 Version: 4.1.5
Release: 4 Release: 5
Summary: Open Source High Performance Computing Summary: Open Source High Performance Computing
License: BSD-3-Clause License: BSD-3-Clause
URL: http://www.open-mpi.org/ URL: http://www.open-mpi.org/
@ -14,7 +14,10 @@ Patch1001: 0001-add-loongarch64-support-for-openmpi.patch
%endif %endif
BuildRequires: gcc-c++, gcc-gfortran 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: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0
BuildRequires: librdmacm librdmacm-devel, rdma-core-devel, pmix-devel BuildRequires: librdmacm librdmacm-devel, rdma-core-devel, pmix-devel
BuildRequires: hwloc-gui chrpath BuildRequires: hwloc-gui chrpath
@ -92,14 +95,15 @@ This contains man files for the using of openmpi.
--sysconfdir=%{_sysconfdir}/%{name_all} \ --sysconfdir=%{_sysconfdir}/%{name_all} \
--disable-silent-rules \ --disable-silent-rules \
--enable-builtin-atomics \ --enable-builtin-atomics \
--enable-memchecker \
--enable-mpi-thread-multiple \ --enable-mpi-thread-multiple \
--enable-mpi-cxx \ --enable-mpi-cxx \
--enable-mpi-java \ --enable-mpi-java \
--enable-mpi1-compatibility \ --enable-mpi1-compatibility \
--with-sge \ --with-sge \
%ifarch %{valgrind_arches}
--with-valgrind \ --with-valgrind \
--enable-memchecker \ --enable-memchecker \
%endif
--with-hwloc=/usr \ --with-hwloc=/usr \
--with-pmix=external \ --with-pmix=external \
--with-libevent=external \ --with-libevent=external \
@ -226,6 +230,9 @@ make check
%{_mandir}/%{name_all}/man*/* %{_mandir}/%{name_all}/man*/*
%changelog %changelog
* Tue Mar 05 2024 laokz <zhangkai@iscas.ac.cn> - 4.1.5-5
- let BuildRequire valgrind depend on system %{valgrind_arches}
* Tue Jan 16 2024 peng.zou <peng.zou@shingroup.cn> - 4.1.5-4 * Tue Jan 16 2024 peng.zou <peng.zou@shingroup.cn> - 4.1.5-4
- Add ppc64le support - Add ppc64le support