# 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 Adios2(Package):
    """This packagae has the variants shared and
    bzip2, both defaulted to True"""

    homepage = "https://example.com"
    url = "https://example.com/adios2.tar.gz"

    version("2.9.1", sha256="ddfa32c14494250ee8a48ef1c97a1bf6442c15484bbbd4669228a0f90242f4f9")

    variant("shared", default=True, description="Build shared libraries")
    variant("bzip2", default=True, description="Enable BZip2 compression")

    depends_on("bzip2")
