Skip to content

Commit

Permalink
Merge pull request #323 from AlysonStahl-NOAA/as_spack
Browse files Browse the repository at this point in the history
Update spack package file for version 3.6.0
  • Loading branch information
AlysonStahl-NOAA authored Feb 19, 2025
2 parents 4c970bd + e2d81fb commit 640ca39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ class Wgrib2(MakefilePackage, CMakePackage):
"""Utility for interacting with GRIB2 files"""

homepage = "https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2"
url = "https://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz.v2.0.8"
git = "https://github.com/NOAA-EMC/wgrib2"
url = "https://github.com/NOAA-EMC/wgrib2/archive/refs/tags/v3.6.0.tar.gz"
git = "https://github.com/NOAA-EMC/wgrib2.git"

maintainers("t-brown", "AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett")

build_system(conditional("cmake", when="@3.2:"), conditional("makefile", when="@:3.1"))

version("develop", branch="develop")
version("3.6.0", sha256="55913cb58f2b329759de17f5a84dd97ad1844d7a93956d245ec94f4264d802be")
version("3.5.0", sha256="b27b48228442a08bddc3d511d0c6335afca47252ae9f0e41ef6948f804afa3a1")
version("3.4.0", sha256="ecbce2209c09bd63f1bca824f58a60aa89db6762603bda7d7d3fa2148b4a0536")
version("3.3.0", sha256="010827fba9c31f05807e02375240950927e9e51379e1444388153284f08f58e2")
Expand All @@ -80,6 +81,9 @@ class Wgrib2(MakefilePackage, CMakePackage):
extension="tar.gz",
)

depends_on("c", type="build")
depends_on("fortran", type="build")

def url_for_version(self, version):
if version >= Version("3.2.0"):
url_fmt = "https://github.com/NOAA-EMC/wgrib2/archive/refs/tags/v{0}.tar.gz"
Expand Down

0 comments on commit 640ca39

Please sign in to comment.