diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-30 02:16:56 -0500 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-03-30 09:16:56 +0200 |
commit | da6faa086a4511643652821c708858d235e6b72e (patch) | |
tree | f0d1605cac40ddb25ecd8bf3a1e40bd469267a2e | |
parent | 68415f0fe5b831f8b68aa7eec2fcf0ae8c445701 (diff) | |
download | spack-da6faa086a4511643652821c708858d235e6b72e.tar.gz spack-da6faa086a4511643652821c708858d235e6b72e.tar.bz2 spack-da6faa086a4511643652821c708858d235e6b72e.tar.xz spack-da6faa086a4511643652821c708858d235e6b72e.zip |
Fix url fetching for GnuTLS (#3631)
-rw-r--r-- | var/spack/repos/builtin/packages/gnutls/package.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/gnutls/package.py b/var/spack/repos/builtin/packages/gnutls/package.py index 24d50a8a56..46fee8d260 100644 --- a/var/spack/repos/builtin/packages/gnutls/package.py +++ b/var/spack/repos/builtin/packages/gnutls/package.py @@ -35,19 +35,23 @@ class Gnutls(AutotoolsPackage): with focus on security and interoperability.""" homepage = "http://www.gnutls.org" - url = "http://www.ring.gr.jp/pub/net/gnupg/gnutls/v3.3/gnutls-3.3.9.tar.xz" + url = "https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.10.tar.xz" - version('3.5.9', '0ab25eb6a1509345dd085bc21a387951') - version('3.3.9', 'ff61b77e39d09f1140ab5a9cf52c58b6') + version('3.5.10', '336c03a71ba90184ffd0388075dde504') + version('3.5.9', '0ab25eb6a1509345dd085bc21a387951') + version('3.3.9', 'ff61b77e39d09f1140ab5a9cf52c58b6') - # configure sez: Note that version 3.3.9 of gnutls doesn't support - # nettle 3.0. + # Note that version 3.3.9 of gnutls doesn't support nettle 3.0. depends_on("nettle@:2.9", when='@3.3.9') depends_on("nettle", when='@3.5:') depends_on("zlib", when='@3.5:') build_directory = 'spack-build' + def url_for_version(self, version): + url = "https://www.gnupg.org/ftp/gcrypt/gnutls/v{0}/gnutls-{1}.tar.xz" + return url.format(version.up_to(2), version) + def configure_args(self): args = [] if self.spec.satisfies('@3.5:'): |