summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/parallel-netcdf/package.py25
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')