Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.cmake import CMakePackage
from spack.package import *


class SpackExercise(CMakePackage):
"""Spack exercise for Simulation Software Engineering."""

homepage = "https://simulation-software-engineering.github.io/homepage/"
url = "https://github.com/Simulation-Software-Engineering/spack-exercise/archive/v0.1.0.tar.gz"

maintainers("aaronsch0")

license("MIT", checked_by="aaronsch0")

version("0.3.0", sha256="c179ccc9d56b724fcb7eeff8cebbc1afe2797929b99aa6e7d9b8478a014f2d02")
version("0.2.0", sha256="010c900a3d4770116844636b89c1e42b1920f27c3da615543fb14f2ae9bb7f64")
version("0.1.0", sha256="f1c212a58376fd78e9854576627e6927d7cb93ccffe3a162b1664570c491e3a7")

depends_on("c", type="build")
depends_on("cxx", type="build")

depends_on("boost@1.65.1:", when="@0.2.0:")
depends_on("yaml-cpp@0.7.0:", when="@0.3.0:")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make the dependency definition futureproof, one can set the latest version as the upper bound. So @0.3.0.