public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/intel-mpi-benchmarks] epel10: add with-conditionals for openmpi, mpich
@ 2026-07-22 12:58 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-22 12:58 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/intel-mpi-benchmarks
Branch : epel10
Commit : 147204a049ea5364bd867296525cbcf9ff8a8c25
Author : Michal Schmidt <mschmidt@redhat.com>
Date   : 2024-08-08T22:17:43+02:00
Stats  : +19/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/intel-mpi-benchmarks/c/147204a049ea5364bd867296525cbcf9ff8a8c25?branch=epel10

Log:
add with-conditionals for openmpi, mpich

---
diff --git a/intel-mpi-benchmarks.spec b/intel-mpi-benchmarks.spec
index 5142901..8173370 100644
--- a/intel-mpi-benchmarks.spec
+++ b/intel-mpi-benchmarks.spec
@@ -1,3 +1,6 @@
+%bcond_without openmpi
+%bcond mpich %[!(0%{?rhel} >= 10)]
+
 Summary: Intel MPI benchmarks
 Name:    intel-mpi-benchmarks
 Version: 2021.8
@@ -28,6 +31,7 @@ BuildArch: noarch
 %description license
 This package contains the license of Intel MPI benchmarks.
 
+%if %{with openmpi}
 %package openmpi
 Summary: Intel MPI benchmarks compiled against openmpi
 BuildRequires: openmpi-devel
@@ -39,7 +43,9 @@ Obsoletes: mpitests-openmpi < 7.4
 %{desc}
 
 This package was built against the Open MPI implementation of MPI.
+%endif
 
+%if %{with mpich}
 %package mpich
 Summary: Intel MPI benchmarks compiled against mpich
 BuildRequires: mpich-devel
@@ -51,6 +57,7 @@ Obsoletes: mpitests-mpich < 7.4
 %{desc}
 
 This package was built against the MPICH implementation of MPI.
+%endif
 
 %patchlist
 0001-fix-compiler-warnings-for-gcc.patch
@@ -73,13 +80,17 @@ do_build() {
 }
 
 # do N builds, one for each mpi stack
+%if %{with openmpi}
 %{_openmpi_load}
 do_build
 %{_openmpi_unload}
+%endif
 
+%if %{with mpich}
 %{_mpich_load}
 do_build
 %{_mpich_unload}
+%endif
 
 %install
 do_install() {
@@ -92,22 +103,30 @@ do_install() {
 }
 
 # do N installs, one for each mpi stack
+%if %{with openmpi}
 %{_openmpi_load}
 do_install
 %{_openmpi_unload}
+%endif
 
+%if %{with mpich}
 %{_mpich_load}
 do_install
 %{_mpich_unload}
+%endif
 
 %files license
 %license license/{,use-of-trademark-}license.txt
 
+%if %{with openmpi}
 %files openmpi
 %{_libdir}/openmpi/bin/IMB-{MPI1,EXT,IO,NBC,RMA,MT,P2P}
+%endif
 
+%if %{with mpich}
 %files mpich
 %{_libdir}/mpich/bin/IMB-{MPI1,EXT,IO,NBC,RMA,MT,P2P}
+%endif
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-22 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22 12:58 [rpms/intel-mpi-benchmarks] epel10: add with-conditionals for openmpi, mpich Michal Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox