update SPERR package (#35810)

* update SPERR package
* remove blank line
* update SPERR package
* remove blank line
---------

Co-authored-by: Samuel Li <Sam@Navada>
This commit is contained in:
Samuel Li 2023-03-07 13:26:43 -07:00 committed by GitHub
parent da33334488
commit a7501105b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,10 +10,15 @@ class Sperr(CMakePackage):
"""SPERR is a lossy scientific (floating-point) data compressor that can
perform either error-bounded or size-bounded data compression"""
# Package info
homepage = "https://github.com/NCAR/SPERR"
url = "https://github.com/NCAR/SPERR/archive/refs/tags/v0.5.tar.gz"
git = homepage
url = "https://github.com/NCAR/SPERR/archive/refs/tags/v0.6.2.tar.gz"
git = "https://github.com/NCAR/SPERR.git"
maintainers("shaomeng", "robertu94")
# Versions
version("main", branch="main")
version("0.6.2", sha256="d986997e2d79a1f27146ad02c623359976a1e72a1ab0d957e128d430cda3782d")
version("0.5", sha256="20ad48c0e7599d3e5866e024d0c49648eb817f72ad5459f5468122cf14a97171")
depends_on("git", type="build")
@ -21,10 +26,9 @@ class Sperr(CMakePackage):
depends_on("pkgconfig", type=("build"), when="+zstd")
variant("shared", description="build shared libaries", default=True)
variant("zstd", description="use Zstd for more compression", default=True)
variant("openmp", description="use openmp for acceleration", default=True)
maintainers("shaomeng", "robertu94")
variant("zstd", description="use zstd for more compression", default=True)
variant("openmp", description="use openmp in 3D inputs", default=True)
variant("utilities", description="build SPERR CLI utilities", default=True)
def cmake_args(self):
# ensure the compiler supports OpenMP if it is used
@ -35,9 +39,9 @@ def cmake_args(self):
self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
self.define_from_variant("USE_ZSTD", "zstd"),
self.define_from_variant("USE_OMP", "openmp"),
self.define_from_variant("BUILD_CLI_UTILITIES", "utilities"),
"-DSPERR_PREFER_RPATH=OFF",
"-DUSE_BUNDLED_ZSTD=OFF",
"-DBUILD_CLI_UTILITIES=OFF",
"-DBUILD_UNIT_TESTS=OFF",
]
return args