diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py index 87da1fbf5c..2c80b74be1 100644 --- a/var/spack/repos/builtin/packages/gdal/package.py +++ b/var/spack/repos/builtin/packages/gdal/package.py @@ -94,9 +94,9 @@ class Gdal(AutotoolsPackage): # Required dependencies depends_on('libtiff@3.6.0:') # 3.9.0+ needed to pass testsuite - depends_on('libgeotiff@1.2.1:') - depends_on('libgeotiff@:1.4', when='@:2.4') - depends_on('libgeotiff@1.5:', when='@3:') + depends_on('libgeotiff@1.2.1:1.4', when='@:2.4.0') + depends_on('libgeotiff@1.2.1:1.5', when='@2.4.1:2.4.2') + depends_on('libgeotiff@1.5:', when='@3.0.0:') depends_on('json-c') depends_on('json-c@0.12.1', when='@:2.2')