gromacs: remove dependency on Fortran (#48386)

* gromacs: remove dependency on Fortran

Fortran was removed from GROMACS core since 4.6. There are a few contrib
files around, but they are not built anyway.

Also fix a couple typos.

* [@spackbot] updating style on behalf of al42and

---------

Co-authored-by: al42and <al42and@users.noreply.github.com>
This commit is contained in:
Andrey Alekseenko 2025-01-03 15:58:22 +01:00 committed by GitHub
parent 0a070512e6
commit 690a6045a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,9 +261,9 @@ class Gromacs(CMakePackage, CudaPackage):
deprecated=True, deprecated=True,
) )
depends_on("c", type="build") # generated depends_on("c", type="build")
depends_on("cxx", type="build") # generated depends_on("cxx", type="build")
depends_on("fortran", type="build") # generated depends_on("fortran", type="build", when="@:4.5.5") # No core Fortran code since 4.6
variant( variant(
"mpi", default=True, description="Activate MPI support (disable for Thread-MPI support)" "mpi", default=True, description="Activate MPI support (disable for Thread-MPI support)"
@ -434,7 +434,7 @@ class Gromacs(CMakePackage, CudaPackage):
# and switching tags. # and switching tags.
# Versions without minor release number, such as `2023` and `2021`, # Versions without minor release number, such as `2023` and `2021`,
# require exact specifcation using `@=`, starting from Spack v0.20.0, # require exact specification using `@=`, starting from Spack v0.20.0,
# see https://github.com/spack/spack/releases/tag/v0.20.0 # see https://github.com/spack/spack/releases/tag/v0.20.0
plumed_patches = { plumed_patches = {
@ -913,7 +913,7 @@ def cmake_args(self):
options.append(f"-DNVSHMEM_ROOT={nvshmem_root}") options.append(f"-DNVSHMEM_ROOT={nvshmem_root}")
if self.spec["lapack"].name in INTEL_MATH_LIBRARIES: if self.spec["lapack"].name in INTEL_MATH_LIBRARIES:
# fftw-api@3 is provided by intel-mkl or intel-parllel-studio # fftw-api@3 is provided by intel-mkl or intel-parallel-studio
# we use the mkl interface of gromacs # we use the mkl interface of gromacs
options.append("-DGMX_FFT_LIBRARY=mkl") options.append("-DGMX_FFT_LIBRARY=mkl")
if self.spec.satisfies("@:2022"): if self.spec.satisfies("@:2022"):