From c4f57890b529c2845414ea1b3a452a11835a150e Mon Sep 17 00:00:00 2001 From: darmac Date: Thu, 24 Sep 2020 09:50:55 +0800 Subject: Add new package: libbytesize (#18772) * Add new package: libbytesize * libbytesize: refine url --- .../repos/builtin/packages/libbytesize/package.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 var/spack/repos/builtin/packages/libbytesize/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libbytesize/package.py b/var/spack/repos/builtin/packages/libbytesize/package.py new file mode 100644 index 0000000000..e4fcdb986a --- /dev/null +++ b/var/spack/repos/builtin/packages/libbytesize/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Libbytesize(AutotoolsPackage): + """The goal of this project is to provide a tiny library that would + facilitate the common operations with sizes in bytes.""" + + homepage = "https://github.com/storaged-project/libbytesize" + url = "https://github.com/storaged-project/libbytesize/releases/download/2.4/libbytesize-2.4.tar.gz" + + version('2.4', sha256='25ccb5762bb8c860b63ed1d40e0c5564e3e0084693fbe6554467a8ca1c1d8c7f') + version('2.3', sha256='3c74113fc8cd1a2fbd8870fa0ed7cef2ef24d60ef91e7145fbc041f9aa144479') + version('2.2', sha256='b93c54b502880c095c9f5767a42464853e2687db2e5e3084908a615bafe73baa') + + extends('python') + depends_on('pcre2') + depends_on('gmp') + depends_on('mpfr') -- cgit v1.2.3-70-g09d2