diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-05-09 13:05:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 13:05:55 -0500 |
commit | 6e46603470ec9abc4ac64499d4d7d71a399228e1 (patch) | |
tree | a220a860545a43ebe8b032ddfff2c2f553fcfc69 | |
parent | 54fee4b400a5d37f3208ec53e1b45965b9942886 (diff) | |
download | spack-6e46603470ec9abc4ac64499d4d7d71a399228e1.tar.gz spack-6e46603470ec9abc4ac64499d4d7d71a399228e1.tar.bz2 spack-6e46603470ec9abc4ac64499d4d7d71a399228e1.tar.xz spack-6e46603470ec9abc4ac64499d4d7d71a399228e1.zip |
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: Adam J. Stewart <ajstewart426@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/hdf5/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py index b4f427ff7b..5703214149 100644 --- a/var/spack/repos/builtin/packages/hdf5/package.py +++ b/var/spack/repos/builtin/packages/hdf5/package.py @@ -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 @@ class Hdf5(AutotoolsPackage): 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: |