From 14af31551579330913b8d7931f1916f1c8cd384f Mon Sep 17 00:00:00 2001 From: feegeer <85125437+feegeer@users.noreply.github.com> Date: Wed, 26 Nov 2025 14:42:28 +0100 Subject: [PATCH 1/2] Added package.py --- package.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package.py diff --git a/package.py b/package.py new file mode 100644 index 0000000..b17bbba --- /dev/null +++ b/package.py @@ -0,0 +1,45 @@ +# Copyright Spack Project Developers. See COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +# ---------------------------------------------------------------------------- +# If you submit this package back to Spack as a pull request, +# please first remove this boilerplate and all FIXME comments. +# +# This is a template package file for Spack. We've put "FIXME" +# next to all the things you'll want to change. Once you've handled +# them, you can save this file and test your package like this: +# +# spack install spack-exercise +# +# You can edit this file again by typing: +# +# spack edit spack-exercise +# +# See the Spack documentation for more information on packaging. +# ---------------------------------------------------------------------------- + +from spack_repo.builtin.build_systems.cmake import CMakePackage + +from spack.package import * + + +class SpackExercise(CMakePackage): + """Package for the SSE Spack exercise code""" + + homepage = "https://simulation-software-engineering.github.io/homepage/" + url = "https://github.com/Simulation-Software-Engineering/spack-exercise/archive/refs/tags/v0.3.0.tar.gz" + + maintainers("feegeer") + + license("MIT", checked_by="feegeer") + + version("0.3.0", sha256="c179ccc9d56b724fcb7eeff8cebbc1afe2797929b99aa6e7d9b8478a014f2d02") + version("0.2.0", sha256="010c900a3d4770116844636b89c1e42b1920f27c3da615543fb14f2ae9bb7f64") + version("0.1.0", sha256="f1c212a58376fd78e9854576627e6927d7cb93ccffe3a162b1664570c491e3a7") + + depends_on("cxx", type="build") + depends_on("c", type="build") + + depends_on("boost@1.65.1:", when="@0.2.0:") + depends_on("yaml-cpp@0.7.0:", when="@0.3.0:") From 5efc269a1e10194c17fd663075f152e92af8a446 Mon Sep 17 00:00:00 2001 From: feegeer <85125437+feegeer@users.noreply.github.com> Date: Wed, 3 Dec 2025 00:57:40 +0100 Subject: [PATCH 2/2] Added main branch to the spack recipe --- package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.py b/package.py index b17bbba..c55715a 100644 --- a/package.py +++ b/package.py @@ -29,6 +29,7 @@ class SpackExercise(CMakePackage): homepage = "https://simulation-software-engineering.github.io/homepage/" url = "https://github.com/Simulation-Software-Engineering/spack-exercise/archive/refs/tags/v0.3.0.tar.gz" + git = "https://github.com/Simulation-Software-Engineering/spack-exercise.git" maintainers("feegeer") @@ -37,6 +38,7 @@ class SpackExercise(CMakePackage): version("0.3.0", sha256="c179ccc9d56b724fcb7eeff8cebbc1afe2797929b99aa6e7d9b8478a014f2d02") version("0.2.0", sha256="010c900a3d4770116844636b89c1e42b1920f27c3da615543fb14f2ae9bb7f64") version("0.1.0", sha256="f1c212a58376fd78e9854576627e6927d7cb93ccffe3a162b1664570c491e3a7") + version("main", branch="main") depends_on("cxx", type="build") depends_on("c", type="build")