Use zlib's "fossil" site for old tarballs (#2735)

* Use zlib's "fossil" site for old tarballs

Following citibeth's suggestion in #2732, use zlib's "fossil"
site (not to be confused with the sqlite team's VCS...) for retrieving
old tarballs.

Digests for 1.2.{8,10} match and both install for me on CentOS 7.

* Use zlib's "fossil" URL as the one true URL

Everything seems to be available at zlib's "fossil" URL, so just use
it as the one and only url.

(and fix a flake8 complaint about a comment)
This commit is contained in:
George Hartzell 2017-01-04 11:43:10 -08:00 committed by Todd Gamblin
parent eaa24b08fd
commit 4e653254c5

View File

@ -31,12 +31,13 @@ class Zlib(AutotoolsPackage):
data-compression library."""
homepage = "http://zlib.net"
url = "http://zlib.net/zlib-1.2.8.tar.gz"
url = "http://zlib.net/fossils/zlib-1.2.10.tar.gz"
version('1.2.10', 'd9794246f853d15ce0fcbf79b9a3cf13')
version('1.2.8', '44d667c142d7cda120332623eab69f40',
url='http://pkgs.fedoraproject.org/repo/pkgs/mingw-zlib/zlib-1.2.8.tar.gz/44d667c142d7cda120332623eab69f40/zlib-1.2.8.tar.gz'
)
# author had this to say about 1.2.9....
# Due to the bug fixes, any installations of 1.2.9 should be immediately
# replaced with 1.2.10.
version('1.2.8', '44d667c142d7cda120332623eab69f40')
variant('pic', default=True,
description='Produce position-independent code (for shared libs)')