Skip to content
Snippets Groups Projects
Unverified Commit 6e466034 authored by Larry Knox's avatar Larry Knox Committed by GitHub
Browse files

Add maintainers and variants for building with default earlier api versions. (#16534)


* Add maintainers.
Add variants for building with default earlier api versions.

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

Co-authored-by: default avatarAdam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: default avatarAdam J. Stewart <ajstewart426@gmail.com>
parent 54fee4b4
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ class Hdf5(AutotoolsPackage):
list_url = "https://support.hdfgroup.org/ftp/HDF5/releases"
list_depth = 3
git = "https://bitbucket.hdfgroup.org/scm/hdffv/hdf5.git"
maintainers = ['lrknox']
version('develop', branch='develop')
......@@ -63,6 +64,13 @@ class Hdf5(AutotoolsPackage):
variant('szip', default=False, description='Enable szip support')
variant('pic', default=True,
description='Produce position-independent code (for shared libs)')
# Build HDF5 with API compaitibility.
variant('api', default='none', description='choose api compatibility', values=('v114', 'v112', 'v110', 'v18', 'v16'), multi=False)
conflicts('api=v114', when='@1.6:1.12.99', msg='v114 is not compatible with this release')
conflicts('api=v112', when='@1.6:1.10.99', msg='v112 is not compatible with this release')
conflicts('api=v110', when='@1.6:1.8.99', msg='v110 is not compatible with this release')
conflicts('api=v18', when='@1.6:1.6.99', msg='v18 is not compatible with this release')
depends_on('autoconf', type='build', when='@develop')
depends_on('automake', type='build', when='@develop')
......@@ -230,6 +238,10 @@ def configure_args(self):
extra_args += self.enable_or_disable('hl')
extra_args += self.enable_or_disable('fortran')
api = self.spec.variants['api'].value
if api != 'none':
extra_args.append('--with-default-api-version=' + api)
if '+szip' in self.spec:
extra_args.append('--with-szlib=%s' % self.spec['szip'].prefix)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment