Disable mpich, openmpi in RHEL builds
These subpackages are not shipped in RHEL, so there is little value in building them. A few build fixes were needed for when both are disabled, since enviroment-modules isn't installed then either.
This commit is contained in:
parent
a136d7ecf6
commit
b648ec90a5
11
fftw.spec
11
fftw.spec
@ -1,9 +1,14 @@
|
|||||||
|
%if %{defined rhel}
|
||||||
|
%bcond_with mpich
|
||||||
|
%bcond_with openmpi
|
||||||
|
%else
|
||||||
%bcond_without mpich
|
%bcond_without mpich
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
%bcond_with openmpi
|
%bcond_with openmpi
|
||||||
%else
|
%else
|
||||||
%bcond_without openmpi
|
%bcond_without openmpi
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if %{with mpich}
|
%if %{with mpich}
|
||||||
%global mpi_list %{?mpi_list} mpich
|
%global mpi_list %{?mpi_list} mpich
|
||||||
%endif
|
%endif
|
||||||
@ -277,9 +282,11 @@ library.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
# Explicitly load shell support for the environment-modules package, used
|
# Explicitly load shell support for the environment-modules package, used
|
||||||
# below via 'module' pseudo-command.
|
# below via 'module' pseudo-command.
|
||||||
. /etc/profile.d/modules.sh
|
. /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
|
|
||||||
# Configure uses g77 by default, if present on system
|
# Configure uses g77 by default, if present on system
|
||||||
export F77=gfortran
|
export F77=gfortran
|
||||||
@ -359,9 +366,11 @@ done
|
|||||||
%install
|
%install
|
||||||
%prec_names
|
%prec_names
|
||||||
|
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
# Explicitly load shell support for the environment-modules package, used
|
# Explicitly load shell support for the environment-modules package, used
|
||||||
# below via 'module' pseudo-command.
|
# below via 'module' pseudo-command.
|
||||||
source /etc/profile.d/modules.sh
|
source /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
|
|
||||||
for((iprec=0;iprec<%{nprec};iprec++)) ; do
|
for((iprec=0;iprec<%{nprec};iprec++)) ; do
|
||||||
%make_install -C ${prec_name[iprec]}
|
%make_install -C ${prec_name[iprec]}
|
||||||
@ -384,9 +393,11 @@ find %{buildroot} -name \*.la -delete
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%prec_names
|
%prec_names
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
# Explicitly load shell support for the environment-modules package, used
|
# Explicitly load shell support for the environment-modules package, used
|
||||||
# below via 'module' pseudo-command.
|
# below via 'module' pseudo-command.
|
||||||
. /etc/profile.d/modules.sh
|
. /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
|
|
||||||
bdir=$(pwd)
|
bdir=$(pwd)
|
||||||
for((iprec=0;iprec<%{nprec};iprec++)) ; do
|
for((iprec=0;iprec<%{nprec};iprec++)) ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user