From f6e95c11c57be4d44ff703d56524a2df39759ce1afba666715111c2e0cf6c6bf Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 26 Feb 2025 10:23:25 +0000 Subject: [PATCH] - remove MPI related packages on 32 bit systems OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost-defaults?expand=0&rev=40 --- boost-defaults.changes | 5 +++++ boost-defaults.spec | 24 ++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/boost-defaults.changes b/boost-defaults.changes index 05876ea..699bb52 100644 --- a/boost-defaults.changes +++ b/boost-defaults.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 26 09:47:48 CET 2025 - aschnell@suse.com + +- remove MPI packages on 32 bit systems + ------------------------------------------------------------------- Wed Dec 11 12:03:20 CET 2024 - aschnell@suse.com diff --git a/boost-defaults.spec b/boost-defaults.spec index 601cc79..1f633ed 100644 --- a/boost-defaults.spec +++ b/boost-defaults.spec @@ -1,7 +1,7 @@ # # spec file for package boost-defaults # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,11 @@ License: MIT Group: Development/Libraries/C and C++ URL: https://www.boost.org Source1: README -BuildArch: noarch + +%ifnarch %{arm} %ix86 +# OpenMPI 5 has no support for 32bit architectures +%bcond_without mpi +%endif %description Boost provides free peer-reviewed portable C++ source libraries. The @@ -211,6 +215,8 @@ Development headers for Boost.Math* boost libraries. This package installs the default Boost version of the library. +%if %{with mpi} + %package -n libboost_mpi-devel Summary: Development headers for Boost.MPI library Group: Development/Libraries/C and C++ @@ -242,6 +248,8 @@ serialization interface This package installs the default Boost version of the library. +%endif + %package -n libboost_nowide-devel Summary: Development library for Boost.Nowide Group: Development/Libraries/C and C++ @@ -252,6 +260,8 @@ This package contains the Boost.Nowide development library. This package installs the default Boost version of the library. +%if %{with mpi} + %package -n python3-boost_parallel_mpi Summary: Python 3.x bindings for Boost.Parallel.MPI library Group: Development/Languages/Python @@ -262,6 +272,8 @@ This package contains the Boost.Parallel.MPI bindings for Python 3.x This package installs the default Boost version of the library. +%endif + %package -n libboost_test-devel Summary: Development headers for Boost.Test library Group: Development/Libraries/C and C++ @@ -493,6 +505,8 @@ cp %{SOURCE1} . %files -n libboost_math-devel %doc README +%if %{with mpi} + %files -n libboost_mpi-devel %doc README @@ -502,12 +516,18 @@ cp %{SOURCE1} . %files -n libboost_mpi_python3-devel %doc README +%endif + %files -n libboost_nowide-devel %doc README +%if %{with mpi} + %files -n python3-boost_parallel_mpi %doc README +%endif + %files -n libboost_test-devel %doc README