From 690a6045a973f9b6a5695af8e20a478aea7eedf6 Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Fri, 3 Jan 2025 15:58:22 +0100 Subject: [PATCH] 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 --- var/spack/repos/builtin/packages/gromacs/package.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py index 17d6de014ff..181224f8ccd 100644 --- a/var/spack/repos/builtin/packages/gromacs/package.py +++ b/var/spack/repos/builtin/packages/gromacs/package.py @@ -261,9 +261,9 @@ class Gromacs(CMakePackage, CudaPackage): deprecated=True, ) - depends_on("c", type="build") # generated - depends_on("cxx", type="build") # generated - depends_on("fortran", type="build") # generated + depends_on("c", type="build") + depends_on("cxx", type="build") + depends_on("fortran", type="build", when="@:4.5.5") # No core Fortran code since 4.6 variant( "mpi", default=True, description="Activate MPI support (disable for Thread-MPI support)" @@ -434,7 +434,7 @@ class Gromacs(CMakePackage, CudaPackage): # and switching tags. # 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 plumed_patches = { @@ -913,7 +913,7 @@ def cmake_args(self): options.append(f"-DNVSHMEM_ROOT={nvshmem_root}") 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 options.append("-DGMX_FFT_LIBRARY=mkl") if self.spec.satisfies("@:2022"):