This holds a Spack package to build HDF5 using CMake. It relies on Spack and the built-in Spack packages, some of which may be overridden by this repository.
Initial setup for bash-like shells:
cd /path/your-working-dir
git clone https://github.com/spack/spack.git
git clone https://github.com/HDFGroup/hdf-spack
source ./spack/share/spack/setup-env.sh
spack repo add ./hdf-spack
spack repo list
This repository's packages are now available locally and have precedence over Spack's built-in repository.
The following spack command example will show you which repositories (Namespaces) will be used in a build for a given package before you install it:
spack spec -N hdf5
The hdf-spack repository contains files for three spack package options: hdf5, hdf5-cmake, and hdf5-autotools. The hdf5 package is an update to the hdf5 package in the official spack repository that switches from Autotools to CMake for building HDF5. Changes can be seen in the pull request: spack/spack#18937.
The hdf5-cmake package has most of those updates and also has new variants to enable these compression filters: blosc bshuf bz2 jpeg lz4 lzf szf zfp zstd bitgroom mafisc pv av cv These filters are enabled by default.
The hdf5-autotools package is equivalent to the current hdf5 package in Spack.
This repository contains a collection of Spack packages related to development, building and testing of softwares from The HDF Group.
For more about spack and what you can do with it, Spack has lots of documentation and a good tutorial.
This repository uses a local/private repository as described in the Spack documentation: https://spack.readthedocs.io/en/latest/repositories.html#
There is an active Spack repository. pull request in progress at for the migration of HDF5 for building with CMake. spack/spack#18937