# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin_mock.build_systems.generic import Package

from spack.package import *


class Openblas(Package):
    """This package provides two virtuals together, so if one is chosen the other
    must be used too if needed.
    """

    homepage = "http://www.openblas.net"
    url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz"

    version("0.2.16", md5="b1190f3d3471685f17cfd1ec1d252ac9")
    version("0.2.15", md5="b1190f3d3471685f17cfd1ec1d252ac9")
    version("0.2.14", md5="b1190f3d3471685f17cfd1ec1d252ac9")
    version("0.2.13", md5="b1190f3d3471685f17cfd1ec1d252ac9")

    provides("blas", "lapack")
