diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2024-09-30 13:14:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 11:14:38 -0700 |
commit | f1275536a211f57eea1316f0f01807e8a8fe3bd0 (patch) | |
tree | 2c098de6ff505330c3681c88dc5802ab3f4375f4 /var | |
parent | a88239affc3b079f3fd75ec92d5020cc60e5ed84 (diff) | |
download | spack-f1275536a211f57eea1316f0f01807e8a8fe3bd0.tar.gz spack-f1275536a211f57eea1316f0f01807e8a8fe3bd0.tar.bz2 spack-f1275536a211f57eea1316f0f01807e8a8fe3bd0.tar.xz spack-f1275536a211f57eea1316f0f01807e8a8fe3bd0.zip |
libexif: add v0.6.24 (fix CVEs) (#46634)
* libexif: add v0.6.24 (fix CVEs)
* libexif: operator Version -> spec.satisfies
Co-authored-by: Alec Scott <hi@alecbcs.com>
---------
Co-authored-by: Alec Scott <hi@alecbcs.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libexif/package.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/libexif/package.py b/var/spack/repos/builtin/packages/libexif/package.py index 1ca6eb2ca5..5c22c9f8f8 100644 --- a/var/spack/repos/builtin/packages/libexif/package.py +++ b/var/spack/repos/builtin/packages/libexif/package.py @@ -8,14 +8,21 @@ from spack.package import * class Libexif(AutotoolsPackage, SourceforgePackage): """A library to parse an EXIF file and read the data from those tags""" - homepage = "https://sourceforge.net/projects/libexif/" - sourceforge_mirror_path = "libexif/libexif-0.6.21.tar.bz2" + homepage = "https://libexif.github.io/" + url = "https://github.com/libexif/libexif/releases/download/v0.6.24/libexif-0.6.24.tar.bz2" maintainers("TheQueasle") - license("LGPL-2.0-or-later") + license("LGPL-2.1-or-later", checked_by="wdconinc") + version("0.6.24", sha256="d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae") version("0.6.21", sha256="16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a") - depends_on("c", type="build") # generated + depends_on("c", type="build") depends_on("glib") + + def url_for_version(self, version): + if self.spec.satisfies("@:0.6.21"): + return f"https://downloads.sourceforge.net/project/libexif/libexif/{version}/libexif-{version}.tar.bz2" + else: + return f"https://github.com/libexif/libexif/releases/download/v{version}/libexif-{version}.tar.bz2" |