
We'd like to use a consistent checksum scheme everywhere so that we can: a) incorporate archive checksums into our specs and have a consistent hashing algorithm across all specs. b) index mirrors with a consistent type of checksum, and not one that is dependent on how spack packages are written. - [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
22 lines
805 B
Python
22 lines
805 B
Python
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack import *
|
|
|
|
|
|
class Patch(AutotoolsPackage):
|
|
"""Patch takes a patch file containing a difference listing produced by
|
|
the diff program and applies those differences to one or more
|
|
original files, producing patched versions.
|
|
"""
|
|
|
|
homepage = "http://savannah.gnu.org/projects/patch/"
|
|
url = "https://ftpmirror.gnu.org/patch/patch-2.7.6.tar.xz"
|
|
|
|
version('2.7.6', sha256='ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd')
|
|
version('2.7.5', sha256='fd95153655d6b95567e623843a0e77b81612d502ecf78a489a4aed7867caa299')
|
|
|
|
build_directory = 'spack-build'
|