From 3eaac26cf298562ae68471e91b6d37a8600d8d98 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin Date: Tue, 25 Jul 2023 00:54:18 +0200 Subject: [PATCH] netcdf-fortran: add version 4.6.1 and fix the checks (#39043) * netcdf-fortran: add version 4.6.1 * netcdf-fortran: fix the 'check' method --- var/spack/repos/builtin/packages/netcdf-fortran/package.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/netcdf-fortran/package.py b/var/spack/repos/builtin/packages/netcdf-fortran/package.py index e11b1a819bd718..1d8c18097f1f7f 100644 --- a/var/spack/repos/builtin/packages/netcdf-fortran/package.py +++ b/var/spack/repos/builtin/packages/netcdf-fortran/package.py @@ -21,6 +21,7 @@ class NetcdfFortran(AutotoolsPackage): maintainers("skosukhin", "WardF") + version("4.6.1", sha256="b50b0c72b8b16b140201a020936aa8aeda5c79cf265c55160986cd637807a37a") version("4.6.0", sha256="198bff6534cc85a121adc9e12f1c4bc53406c403bda331775a1291509e7b2f23") version("4.5.4", sha256="0a19b26a2b6e29fab5d29d7d7e08c24e87712d09a5cafeea90e16e0a2ab86b81") version("4.5.3", sha256="123a5c6184336891e62cf2936b9f2d1c54e8dee299cfd9d2c1a1eb05dd668a74") @@ -128,10 +129,8 @@ def configure_args(self): return config_args - @when("@:4.4.5") def check(self): - with working_dir(self.build_directory): - make("check", parallel=False) + make("check", parallel=self.spec.satisfies("@4.5:")) @run_after("install") def cray_module_filenames(self):