38 lines
1.5 KiB
Python
38 lines
1.5 KiB
Python
# Copyright 2013-2022 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 Librsb(AutotoolsPackage):
|
|
"""librsb : A shared memory parallel sparse matrix computations
|
|
library for the Recursive Sparse Blocks format"""
|
|
|
|
homepage = "http://librsb.sourceforge.net/"
|
|
url = "http://download.sourceforge.net/librsb/librsb-1.3.0.0.tar.gz"
|
|
list_url = "https://sourceforge.net/projects/librsb/files/"
|
|
|
|
version('1.3.0.0', '2ac8725d1f988f57df9383ae6b0bb2ed221ec935187d31ebb62ea95ee868a790')
|
|
version('1.2.0.11', '0686be29bbe277e227c6021de6bd0564e4fc83f996b787886437d28048057bc8')
|
|
version('1.2.0.10', 'ec49f3f78a7c43fc9e10976593d100aa49b1863309ed8fa3ccbb7aad52d2f7b8')
|
|
version('1.2.0.9', 'f421f5d572461601120933e3c1cfee2ca69e6ecc92cbb11baa4e86bdedd3d9fa')
|
|
version('1.2.0.8', '8bebd19a1866d80ade13eabfdd0f07ae7e8a485c0b975b5d15f531ac204d80cb')
|
|
|
|
depends_on('zlib')
|
|
conflicts('%apple-clang')
|
|
conflicts('%clang')
|
|
|
|
def configure_args(self):
|
|
args = [
|
|
'--enable-openmp',
|
|
'--with-zlib',
|
|
'--enable-fortran-module-install',
|
|
'CPPFLAGS={0}'.format(self.spec['zlib'].headers.include_flags),
|
|
'CFLAGS=-O3',
|
|
'CXXFLAGS=-O3',
|
|
'LDFLAGS={0}'.format(self.spec['zlib'].libs.search_flags)
|
|
]
|
|
return args
|