diff options
author | Greg Sjaardema <gsjaardema@gmail.com> | 2019-01-01 18:55:29 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-01-01 19:55:29 -0600 |
commit | 9f40813004dd4c36fc391605c442fb8761db73f2 (patch) | |
tree | e6870d8be4df1bc05c93d75dc676e9b16b9293fa /var | |
parent | 8540d5390e70388625ee006562b450efa924113b (diff) | |
download | spack-9f40813004dd4c36fc391605c442fb8761db73f2.tar.gz spack-9f40813004dd4c36fc391605c442fb8761db73f2.tar.bz2 spack-9f40813004dd4c36fc391605c442fb8761db73f2.tar.xz spack-9f40813004dd4c36fc391605c442fb8761db73f2.zip |
PARALLEL-NETCDF: Update new version and location (#10172)
* PARALLEL-NETCDF: Update new version and location
PnetCDF-1.11.0 is released.
Also, the canonical download area has been changed and they are now using git, so can also provide a develop and master checkout.
One issue is that they changed the name of the tar files, so 1.11.0 needs special handling (and future versions will also).
All checksums at new location match the checksums from the old location.
* Address concerns in review
Added a `url_for_version` function to handle the name change in the tar files at version 1.11.0 and later. Updated description to match current shown on website. Updated `homepage` setting since it has recently moved.
* Address issues in second review
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/parallel-netcdf/package.py | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/parallel-netcdf/package.py b/var/spack/repos/builtin/packages/parallel-netcdf/package.py index 554949a04d..62f81e343f 100644 --- a/var/spack/repos/builtin/packages/parallel-netcdf/package.py +++ b/var/spack/repos/builtin/packages/parallel-netcdf/package.py @@ -7,14 +7,27 @@ from spack import * class ParallelNetcdf(AutotoolsPackage): - """Parallel netCDF (PnetCDF) is a library providing high-performance - parallel I/O while still maintaining file-format compatibility with - Unidata's NetCDF.""" + """PnetCDF (Parallel netCDF) is a high-performance parallel I/O + library for accessing files in format compatibility with Unidata's + NetCDF, specifically the formats of CDF-1, 2, and 5. + """ - homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf" - url = "http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/parallel-netcdf-1.6.1.tar.gz" - list_url = "http://cucis.ece.northwestern.edu/projects/PnetCDF/download.html" + homepage = "https://parallel-netcdf.github.io/" + git = "https://github.com/Parallel-NetCDF/PnetCDF" + url = "https://parallel-netcdf.github.io/Release/pnetcdf-1.11.0.tar.gz" + list_url = "https://parallel-netcdf.github.io/wiki/Download.html" + def url_for_version(self, version): + if version >= Version('1.11.0'): + url = "https://parallel-netcdf.github.io/Release/pnetcdf-{0}.tar.gz" + else: + url = "https://parallel-netcdf.github.io/Release/parallel-netcdf-{0}.tar.gz" + + return url.format(version.dotted) + + version('develop', branch='develop') + version('master', branch='master') + version('1.11.0', sha256='a18a1a43e6c4fd7ef5827dbe90e9dcf1363b758f513af1f1356ed6c651195a9f') version('1.10.0', sha256='ed189228b933cfeac3b7b4f8944eb00e4ff2b72cf143365b1a77890980663a09') version('1.9.0', sha256='356e1e1fae14bc6c4236ec11435cfea0ff6bde2591531a4a329f9508a01fbe98') version('1.8.1', sha256='8d7d4c9c7b39bb1cbbcf087e0d726551c50f0cc30d44aed3df63daf3772c9043') |