summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-04-30 07:22:24 +0200
committerGitHub <noreply@github.com>2022-04-29 23:22:24 -0600
commitf2c1b40e586529207615df6d4b41391ff1e6b02b (patch)
tree28f01a61eaa2a9abb6d7079f8c2db12840019678
parent06b5217c019cf4c3e686eb14ca1a35c02e25d3ff (diff)
downloadspack-f2c1b40e586529207615df6d4b41391ff1e6b02b.tar.gz
spack-f2c1b40e586529207615df6d4b41391ff1e6b02b.tar.bz2
spack-f2c1b40e586529207615df6d4b41391ff1e6b02b.tar.xz
spack-f2c1b40e586529207615df6d4b41391ff1e6b02b.zip
libxml2: new url, add 2.9.13 (#30401)
-rw-r--r--var/spack/repos/builtin/packages/libxml2/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libxml2/package.py b/var/spack/repos/builtin/packages/libxml2/package.py
index 6cbad04e26..fd81efe961 100644
--- a/var/spack/repos/builtin/packages/libxml2/package.py
+++ b/var/spack/repos/builtin/packages/libxml2/package.py
@@ -14,8 +14,16 @@ class Libxml2(AutotoolsPackage):
software available under the MIT License."""
homepage = "http://xmlsoft.org"
- url = "http://xmlsoft.org/sources/libxml2-2.9.8.tar.gz"
+ url = 'https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.13.tar.xz'
+ list_url = 'https://gitlab.gnome.org/GNOME/libxml2/-/releases'
+ def url_for_version(self, version):
+ if version >= Version('2.9.13'):
+ url = 'https://download.gnome.org/sources/libxml2/{0}/libxml2-{1}.tar.xz'
+ return url.format(version.up_to(2), version)
+ return 'http://xmlsoft.org/sources/libxml2-{0}.tar.gz'.format(version)
+
+ version('2.9.13', sha256='276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e')
version('2.9.12', sha256='c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92')
version('2.9.11', sha256='886f696d5d5b45d780b2880645edf9e0c62a4fd6841b853e824ada4e02b4d331')
version('2.9.10', sha256='aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f')