summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hdf5-vol-daos/package.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5-vol-daos/package.py b/var/spack/repos/builtin/packages/hdf5-vol-daos/package.py
new file mode 100644
index 0000000000..22d648fd03
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hdf5-vol-daos/package.py
@@ -0,0 +1,47 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack.package import *
+
+
+class Hdf5VolDaos(CMakePackage):
+ """The HDF5 DAOS VOL connector is an external VOL connector
+ that interfaces with the DAOS API"""
+
+ homepage = "https://github.com/HDFGroup/vol-daos"
+ url = (
+ "https://github.com/HDFGroup/vol-daos/releases/download/v1.2.0/hdf5_vol_daos-1.2.0.tar.bz2"
+ )
+ git = "https://github.com/HDFGroup/vol-daos.git"
+
+ maintainers("hyoklee", "soumagne")
+
+ version("master", branch="master", submodules=True)
+ version("1.2.0", sha256="669c1443605068f24c033783ef72619afcec4844902b3e0bffa19ddeea39779f")
+
+ depends_on("cmake@2.8.12.2:", type="build")
+ depends_on("daos@2.2.0:")
+ depends_on("hdf5@1.14.0:+hl+mpi+map")
+
+ def cmake_args(self):
+ """Populate cmake arguments for HDF5 DAOS."""
+ define = self.define
+
+ cmake_args = [
+ define("BUILD_SHARED_LIBS", True),
+ define("BUILD_TESTING", self.run_tests),
+ define("PC_DAOS_INCLUDEDIR", self.spec["daos"].prefix + "/include"),
+ define("PC_DAOS_LIBDIR", self.spec["daos"].prefix + "/lib64"),
+ ]
+
+ return cmake_args
+
+ def setup_run_environment(self, env):
+ env.prepend_path("HDF5_PLUGIN_PATH", self.prefix.lib)
+
+ def check(self):
+ """Unit tests fail when run in parallel."""
+
+ with working_dir(self.build_directory):
+ make("test", parallel=False)