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 <v2.x.x

* h5hut: Bump default version to 2.0.0rc7 and remove older rc candidates

* Update var/spack/repos/builtin/packages/h5hut/package.py

Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>

---------

Co-authored-by: Alberto Invernizzi <9337627+albestro@users.noreply.github.com>
Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>
This commit is contained in:
John Biddiscombe 2025-02-13 11:01:14 +01:00 committed by GitHub
parent 8697371d82
commit 4dc1a900e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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