From 4dc1a900e200447f2e5f406482b614ca99c50f1e Mon Sep 17 00:00:00 2001 From: John Biddiscombe Date: Thu, 13 Feb 2025 11:01:14 +0100 Subject: [PATCH] h5hut: Remove H5_USE_110_API for newer versions (#48885) * h5hut: Remove H5_USE_110_API for newer versions * h5hut: style reformat and add maintainer * h5hut: correct version syntax for --------- Co-authored-by: Alberto Invernizzi <9337627+albestro@users.noreply.github.com> Co-authored-by: Mikael Simberg --- var/spack/repos/builtin/packages/h5hut/package.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/h5hut/package.py b/var/spack/repos/builtin/packages/h5hut/package.py index 25f6896e570..9d35ff6a467 100644 --- a/var/spack/repos/builtin/packages/h5hut/package.py +++ b/var/spack/repos/builtin/packages/h5hut/package.py @@ -11,11 +11,11 @@ class H5hut(AutotoolsPackage): High-Performance I/O Library for Particle-based Simulations.""" homepage = "https://amas.psi.ch/H5hut/" - url = "https://amas.web.psi.ch/Downloads/H5hut/H5hut-2.0.0rc3.tar.gz" + url = "https://amas.web.psi.ch/Downloads/H5hut/H5hut-0.0.0.tar.gz" git = "https://gitlab.psi.ch/H5hut/src.git" + maintainers("biddisco") - version("2.0.0rc3", sha256="1ca9a9478a99e1811ecbca3c02cc49258050d339ffb1a170006eab4ab2a01790") - + version("2.0.0rc7", sha256="bc058c4817c356b7b7acfe386c586923103b90bdfa83575db3a91754767e6fab") version("master", branch="master") depends_on("c", type="build") # generated @@ -47,7 +47,11 @@ def validate(self): def flag_handler(self, name, flags): build_system_flags = [] - if name == "cflags" and self.spec["hdf5"].satisfies("@1.12:"): + if ( + name == "cflags" + and self.spec.satisfies("@:1") + and self.spec["hdf5"].satisfies("@1.12:") + ): build_system_flags = ["-DH5_USE_110_API"] return flags, None, build_system_flags