From f73f8383b38aed8b7aa545f72f669f746058f670 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 30 Oct 2023 22:51:14 -0400 Subject: [PATCH] Disable building docs in RHEL builds python-recommonmark is unwanted in RHEL due to its dependencies. --- openmpi.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openmpi.spec b/openmpi.spec index 113d171..5c01d21 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -34,8 +34,10 @@ %if %{defined rhel} %bcond_with orangefs +%bcond_with sphinx %else %bcond_without orangefs +%bcond_without sphinx %endif %ifarch x86_64 @@ -62,7 +64,7 @@ Name: openmpi%{?_cc_name_suffix} Version: 5.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Open Message Passing Interface License: BSD and MIT and Romio URL: http://www.open-mpi.org/ @@ -135,10 +137,12 @@ BuildRequires: zlib-devel %if !0%{?el7} BuildRequires: rpm-mpi-hooks %endif +%if %{with sphinx} # For docs BuildRequires: /usr/bin/sphinx-build BuildRequires: python3-recommonmark BuildRequires: python3-sphinx_rtd_theme +%endif Provides: mpi %if 0%{?rhel} == 7 @@ -248,7 +252,9 @@ OpenMPI support for Python 3. --enable-mpi-java \ %endif --enable-mpi1-compatibility \ +%if %{with sphinx} --enable-sphinx \ +%endif --with-prrte=external \ --with-sge \ --with-valgrind \ @@ -443,6 +449,9 @@ make check || ( cat test/*/test-suite.log && exit $fail ) %changelog +* Tue Oct 31 2023 Yaakov Selkowitz - 5.0.0-2 +- Disable building docs in RHEL builds + * Fri Oct 27 2023 Orion Poplawski - 5.0.0-1 - Update to 5.0.0 - Drops 32-bit i686 support