summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2024-09-22 07:06:57 -0500
committerGitHub <noreply@github.com>2024-09-22 14:06:57 +0200
commit34525388fe377de5f3327455889b5e9ebb0cfe14 (patch)
treeeb6e2e98ca37d87cec7f84966f85a1c77f917919
parent2375f873bfad3e38e9f6fe335b045ad3f5f72258 (diff)
downloadspack-34525388fe377de5f3327455889b5e9ebb0cfe14.tar.gz
spack-34525388fe377de5f3327455889b5e9ebb0cfe14.tar.bz2
spack-34525388fe377de5f3327455889b5e9ebb0cfe14.tar.xz
spack-34525388fe377de5f3327455889b5e9ebb0cfe14.zip
codec2: fix url; add v1.2.0 (#46514)
-rw-r--r--var/spack/repos/builtin/packages/codec2/package.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/codec2/package.py b/var/spack/repos/builtin/packages/codec2/package.py
index 5639ee6d5d..227de4f3b7 100644
--- a/var/spack/repos/builtin/packages/codec2/package.py
+++ b/var/spack/repos/builtin/packages/codec2/package.py
@@ -12,10 +12,20 @@ class Codec2(CMakePackage):
HF/VHF digital radio."""
homepage = "https://www.rowetel.com/?page_id=452"
- url = "https://github.com/drowe67/codec2/archive/v0.9.2.tar.gz"
+ url = "https://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz"
license("LGPL-2.1-or-later")
+ version("1.2.0", sha256="cbccae52b2c2ecc5d2757e407da567eb681241ff8dadce39d779a7219dbcf449")
version("1.1.0", sha256="d56ba661008a780b823d576a5a2742c94d0b0507574643a7d4f54c76134826a3")
version("1.0.5", sha256="cd9a065dd1c3477f6172a0156294f767688847e4d170103d1f08b3a075f82826")
version("0.9.2", sha256="19181a446f4df3e6d616b50cabdac4485abb9cd3242cf312a0785f892ed4c76c")
+
+ depends_on("c", type="build")
+
+ def url_for_version(self, version):
+ # Release 1.2.0 started with shallow git clone "to reduce repo size"
+ if version < Version("1.2.0"):
+ return f"https://github.com/drowe67/codec2-dev/archive/refs/tags/v{version}.tar.gz"
+ else:
+ return f"https://github.com/drowe67/codec2/archive/refs/tags/{version}.tar.gz"