Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 8 additions & 63 deletions SPECS/openmpi/openmpi.spec
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@
# type: bool (0/1)
%{!?build_debuginfo_rpm: %define build_debuginfo_rpm 0}

# Should we build an all-in-one RPM, or several sub-package RPMs?
# type: bool (0/1)
%{!?build_all_in_one_rpm: %define build_all_in_one_rpm 1}

# Should we use the default "check_files" RPM step (i.e., check for
# unpackaged files)? It is discouraged to disable this, but some
# installers need it (e.g., older versions of OFED, because they
Expand Down Expand Up @@ -224,7 +220,7 @@ Summary: A powerful implementation of MPI/SHMEM
Name: openmpi
Epoch: 3
Version: 4.1.9a1
Release: 1%{?dist}
Release: 2%{?dist}
License: BSD
Group: Development/Libraries
# https://linux.mellanox.com/public/repo/doca/3.3.0/SOURCES/mlnx_ofed/MLNX_OFED_SRC-26.01-1.0.0.0.tgz
Expand All @@ -245,6 +241,7 @@ Requires: %{modules_rpm_name}
Requires: %{mpi_selector_rpm_name}
%endif
Requires: ucx
Requires: %{name}-runtime%{?_isa} = %{epoch}:%{version}-%{release}

%description
Open MPI is an open source implementation of the Message Passing
Expand All @@ -261,8 +258,6 @@ communication techniques.
This RPM contains all the tools necessary to compile, link, and run
Open MPI and OpenSHMEM jobs.

%if !%{build_all_in_one_rpm}

#############################################################################
#
# Preamble Section (runtime)
Expand Down Expand Up @@ -298,8 +293,6 @@ This subpackage provides general tools (mpirun, mpiexec, etc.) and the
Module Component Architecture (MCA) base and plugins necessary for
running Open MPI/OpenSHMEM jobs.

%endif

#############################################################################
#
# Preamble Section (devel)
Expand All @@ -313,7 +306,7 @@ Group: Development/Libraries
AutoReq: no
%endif
Provides: openmpi-devel = %{version}
Requires: %{name}-runtime
Requires: %{name}-runtime%{?_isa} = %{epoch}:%{version}-%{release}

%description devel
Open MPI is an open source implementation of the Message Passing
Expand Down Expand Up @@ -344,7 +337,7 @@ Group: Development/Documentation
AutoReq: no
%endif
Provides: openmpi-docs = %{version}
Requires: %{name}-runtime
Requires: %{name}-runtime%{?_isa} = %{epoch}:%{version}-%{release}

%description docs
Open MPI is an open source implementation of the Message Passing
Expand Down Expand Up @@ -565,8 +558,6 @@ EOF
%endif
# End of shell_scripts if

%if !%{build_all_in_one_rpm}

# Build lists of files that are specific to each package that are not
# easily identifiable by a single directory (e.g., the different
# libraries). In a somewhat lame move, we can't just pipe everything
Expand Down Expand Up @@ -632,9 +623,6 @@ mv tmp.files devel.files
grep -v %{_mandir} docs.files > tmp.files | /bin/true
mv tmp.files docs.files

%endif
# End of build_all_in_one_rpm

#############################################################################
#
# Clean Section
Expand Down Expand Up @@ -680,50 +668,6 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
#
#############################################################################

%if %{build_all_in_one_rpm}

#
# All in one RPM
#
# Easy; just list the prefix and then specifically call out the doc
# files.
#

%files
%defattr(-, root, root, -)
%if %(test "%{_prefix}" = "/usr" && echo 1 || echo 0)
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*
%{_datadir}
%else
%{_prefix}
%endif
# If the sysconfdir is not under the prefix, then list it explicitly.
%if !%{sysconfdir_in_prefix}
%{_sysconfdir}
%endif
# If %{install_in_opt}, then we're instaling OMPI to
# /opt/openmpi/<version>. But be sure to also explicitly mention
# /opt/openmpi so that it can be removed by RPM when everything under
# there is also removed.
%if %{install_in_opt}
%dir /opt/%{name}
%endif
# If we're installing the modulefile, get that, too
%if %{install_modulefile}
%{modulefile_path}
%endif
# If we're installing the shell scripts, get those, too
%if %{install_shell_scripts}
%{shell_scripts_path}/%{shell_scripts_basename}.sh
%{shell_scripts_path}/%{shell_scripts_basename}.csh
%endif
%doc README INSTALL
%license LICENSE

%else

#
# Sub-package RPMs
#
Expand Down Expand Up @@ -776,19 +720,20 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
# files found in that tree, because rpmbuild may have compressed them
# (e.g., foo.1.gz or foo.1.bz2) -- and we therefore don't know the
# exact filenames.
%files docs -f docs.files
%files docs
%defattr(-, root, root, -)
%{_mandir}

%endif


#############################################################################
#
# Changelog
#
#############################################################################
%changelog
* Mon Jun 29 2026 Mitch Zhu <mitchzhu@microsoft.com> - 3:4.1.9a1-2
- Remove unused all-in-one packaging switch

* Mon May 11 2026 Azure Linux Team - 3:4.1.9a1-1
- Upgrade to DOCA 3.3.0 (OFED 26.01-1.0.0.0)

Expand Down
Loading