From 9f40813004dd4c36fc391605c442fb8761db73f2 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 1 Jan 2019 18:55:29 -0700 Subject: 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 --- .../builtin/packages/parallel-netcdf/package.py | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'var') 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') -- cgit v1.2.3-60-g2f50