# IT4Innovations
# LK 2023

easyblock = 'Tarball'

name = 'Spack'
version = '0.20.0'

homepage = 'https://spack.io/'
description = """Spack is a package manager for superlocal_computers, Linux, and macOS. It makes installing scientific
 software easy. With Spack, you can build a package with multiple versions, configurations, platforms, and local_compilers,
 and all of these builds can coexist on the same machine."""

toolchain = SYSTEM

source_urls = ['https://github.com/LLNL/spack/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['a189b4e8173eefdf76617445125b329d912f730767048846c38c8a2637396a7d']

sanity_check_paths = {
    'files': ['bin/spack'],
    'dirs': ['etc/spack/defaults', 'lib/spack', 'share/spack', 'var/spack'],
}

sanity_check_commands = [
    "spack list",
    "spack versions gcc",
]

moduleclass = 'devel'
