fix searching spack package hash with package versions

Open Xingran Wang requested to merge fix_spack_hash into master

This fix improves searching spack package hash, when the package version is also provided. There are two version eccodes compiled by nvhpc@22.5, we need to specify the version of eccodes to get hash, root and dependencies etc.

Merge request reports