diff --git a/var/spack/repos/builtin/packages/grib-util/package.py b/var/spack/repos/builtin/packages/grib-util/package.py index 3176a41c32..ee4371b1b8 100644 --- a/var/spack/repos/builtin/packages/grib-util/package.py +++ b/var/spack/repos/builtin/packages/grib-util/package.py @@ -24,10 +24,11 @@ class GribUtil(CMakePackage): depends_on("jasper") depends_on("libpng") depends_on("zlib") - depends_on("w3nco") + depends_on("w3emc", when="@1.2.4:") + depends_on("w3nco", when="@:1.2.3") depends_on("g2") depends_on("bacio") - depends_on("ip") + depends_on("ip@:3.3.3") depends_on("sp") def cmake_args(self):