SHA256
1
0
forked from pool/mvapich2

Accepting request 616903 from home:NMoreyChaisemartin:branches:science:HPC

Fix HPC disabling

OBS-URL: https://build.opensuse.org/request/show/616903
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=40
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-06-14 16:00:23 +00:00 committed by Git OBS Bridge
parent 1c2ba3b675
commit 544aa745da

View File

@ -144,6 +144,13 @@ ExclusiveArch: do_not_build
%global hpc_mvapich2_pack_version %{hpc_mvapich2_dep_version} %global hpc_mvapich2_pack_version %{hpc_mvapich2_dep_version}
%endif %endif
# Disable hpc builds for SLE12
%if 0%{?sle_version} > 120200 && 0%{?sle_version} < 150000 && %{with hpc}
%{bcond_with skip_hpc_build}
%else
%{bcond_without skip_hpc_build}
%endif
Name: %{package_name} Name: %{package_name}
Summary: OSU MVAPICH2 MPI package Summary: OSU MVAPICH2 MPI package
License: BSD-3-Clause License: BSD-3-Clause
@ -160,10 +167,11 @@ Patch1: mvapich2-pthread_yield.patch
Patch2: mvapich2-arm-support.patch Patch2: mvapich2-arm-support.patch
Url: http://mvapich.cse.ohio-state.edu/overview/mvapich2/ Url: http://mvapich.cse.ohio-state.edu/overview/mvapich2/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Disable hpc builds for SLE12
%if 0%{?sle_version} > 120200 && 0%{?sle_version} < 150000 && %{with hpc} %if %{without skip_hpc_build}
ExclusiveArch: do_not_build ExclusiveArch: do_not_build
%endif %endif
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -185,11 +193,11 @@ BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: lua-lmod BuildRequires: lua-lmod
BuildRequires: suse-hpc BuildRequires: suse-hpc
%endif %endif
%if "%{build_flavor}" == "psm" %if "%{build_flavor}" == "psm" && %{with skip_hpc_build}
ExclusiveArch: %ix86 x86_64 ExclusiveArch: %ix86 x86_64
BuildRequires: infinipath-psm-devel BuildRequires: infinipath-psm-devel
%endif %endif
%if "%{build_flavor}" == "psm2" %if "%{build_flavor}" == "psm2" && %{with skip_hpc_build}
ExclusiveArch: x86_64 ExclusiveArch: x86_64
BuildRequires: libpsm2-devel BuildRequires: libpsm2-devel
%endif %endif