diff options
-rw-r--r-- | var/spack/repos/builtin/packages/libxml2/package.py | 10 |
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') |