summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-10-06 01:13:02 +0200
committerGitHub <noreply@github.com>2021-10-05 23:13:02 +0000
commite39866f443f87a77b5dfa9f8f6cb0da8e8969350 (patch)
treefd4ee0f5e4dbb25cbfffe610f087c823f906dad6
parentd7fc17d5dbfa02cb1b83fb3ebb4361baee278f39 (diff)
downloadspack-e39866f443f87a77b5dfa9f8f6cb0da8e8969350.tar.gz
spack-e39866f443f87a77b5dfa9f8f6cb0da8e8969350.tar.bz2
spack-e39866f443f87a77b5dfa9f8f6cb0da8e8969350.tar.xz
spack-e39866f443f87a77b5dfa9f8f6cb0da8e8969350.zip
h5utils: Fix build and add new version (#26133)
@1.12.1+png depends_on libpng@:1.5.0 because it needs the old API Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/h5utils/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/h5utils/package.py b/var/spack/repos/builtin/packages/h5utils/package.py
index 2f8231c1d2..c9fdb6c7bc 100644
--- a/var/spack/repos/builtin/packages/h5utils/package.py
+++ b/var/spack/repos/builtin/packages/h5utils/package.py
@@ -11,10 +11,11 @@ class H5utils(AutotoolsPackage):
scientific data in the free, portable HDF5 format."""
homepage = "http://ab-initio.mit.edu/wiki/index.php/H5utils"
- url = "http://ab-initio.mit.edu/h5utils/h5utils-1.12.1.tar.gz"
- list_url = "http://ab-initio.mit.edu/h5utils/old/"
+ url = "https://github.com/NanoComp/h5utils/releases/download/1.13.1/h5utils-1.13.1.tar.gz"
- version('1.12.1', sha256='7290290ca5d5d4451d757a70c86baaa70d23a28edb09c951b6b77c22b924a38d')
+ version('1.13.1', sha256='c5a76f064d6daa3e65583dce2b61202510e67cf6590f076af9a8aa72511d7d65')
+ version('1.12.1', sha256='7e6db86fee00a8008f78b2be921177042c661203c0936b078fcc8f9c71e4a883',
+ url="https://github.com/NanoComp/h5utils/archive/refs/tags/1.12.1.tar.gz")
variant('png', default=True, description='Enable PNG support')
variant('vis5d', default=False, description='Enable Vis5d support')
@@ -26,7 +27,8 @@ class H5utils(AutotoolsPackage):
depends_on('hdf5')
# Optional dependencies
- depends_on('libpng', when='+png')
+ depends_on('libpng', when='+png')
+ depends_on('libpng@:1.5.0', when='@1.12.1+png')
# depends_on('vis5d', when='+vis5d') # TODO: Add a vis5d package
depends_on('octave', when='+octave')
depends_on('hdf', when='+hdf4')