Accepting request 534924 from home:eeich:hpc_alt

- As it looks like, we need to exclude mvapich2 from the OBS ring as well.

OBS-URL: https://build.opensuse.org/request/show/534924
OBS-URL: https://build.opensuse.org/package/show/science/hdf5?expand=0&rev=48
This commit is contained in:
Egbert Eich 2017-10-18 11:17:46 +00:00 committed by Git OBS Bridge
parent d8fbc72d7d
commit 530cb06956
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Tue Oct 17 14:07:15 UTC 2017 - eich@suse.com
- Add magic to limit the number of flavors built in the OBS ring
to non-HPC builds.
to non-HPC and mvapich2 builds.
- Fix %libname() for non-HPC builds.
-------------------------------------------------------------------

View File

@ -100,12 +100,15 @@ ExclusiveArch: do_not_build
%{?with_mpi:%global my_suffix -%{mpi_flavor}}
%if %{with hpc}
# Magic for OBS Staging. Only build the flavors required by
# other packages in the ring.
%if %{with ringdisabled}
%if %{with hpc} || "%{?mpi_flavor}" == "mvapich2"
ExclusiveArch: do_not_build
%endif
%endif
%if %{with hpc}
%{hpc_init -c %compiler_family %{?with_mpi:-m %mpi_flavor} %{?c_f_ver:-v %{c_f_ver}} %{?mpi_ver:-V %{mpi_ver}} %{?ext:-e %{ext}}}
%{?with_mpi:%global hpc_module_pname p%{pname}}
%define my_prefix %hpc_prefix