Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging: update section for language deps and license directive #411

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion _spack_root
Submodule _spack_root updated 10861 files
28 changes: 23 additions & 5 deletions outputs/package-py-files/0.package.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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)
Expand All @@ -20,25 +20,43 @@
# See the Spack documentation for more information on packaging.
# ----------------------------------------------------------------------------

from spack import *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""FIXME: Put a proper description of your package here."""

# FIXME: Add a proper url for your package's homepage here.
homepage = "https://www.example.com"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

# FIXME: Add a list of GitHub accounts to
# notify when the package is updated.
# maintainers("github_user1", "github_user2")

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
# FIXME: Add the SPDX identifier of the project's license below.
# See https://spdx.org/licenses/ for a list. Upon manually verifying
# the license, set checked_by to your Github username.
license("UNKNOWN", checked_by="github_user1")

# FIXME: Add dependencies if required.
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

# FIXME: Add additional dependencies if required.
# depends_on("foo")

def autoreconf(self, spec, prefix):
# FIXME: Modify the autoreconf method as necessary
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
# FIXME: Add arguments other than --prefix
# FIXME: If not needed delete this function
Expand Down
30 changes: 22 additions & 8 deletions outputs/package-py-files/1.package.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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 *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report MPI objects like MPI_Requests and
MPI_Datatypes."""
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

maintainers("adamjstewart")
maintainers("alecbcs")

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
license("BSD", checked_by="alecbcs")

# FIXME: Add dependencies if required.
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

# FIXME: Add additional dependencies if required.
# depends_on("foo")

def autoreconf(self, spec, prefix):
# FIXME: Modify the autoreconf method as necessary
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
# FIXME: Add arguments other than --prefix
# FIXME: If not needed delete this function
Expand Down
28 changes: 21 additions & 7 deletions outputs/package-py-files/2.package.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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 *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report MPI objects like MPI_Requests and
MPI_Datatypes."""
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

maintainers("adamjstewart")
maintainers("alecbcs")

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
license("BSD", checked_by="alecbcs")

version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

depends_on("mpi")
depends_on("adept-utils")
depends_on("callpath")

def autoreconf(self, spec, prefix):
# FIXME: Modify the autoreconf method as necessary
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
# FIXME: Add arguments other than --prefix
# FIXME: If not needed delete this function
Expand Down
31 changes: 22 additions & 9 deletions outputs/package-py-files/3.package.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,43 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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 *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report MPI objects like MPI_Requests and
MPI_Datatypes."""
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

maintainers("adamjstewart")
maintainers("alecbcs")

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
license("BSD", checked_by="alecbcs")

version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

depends_on("mpi")
depends_on("adept-utils")
depends_on("callpath")

def autoreconf(self, spec, prefix):
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
args = [
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
"--with-callpath={0}".format(self.spec["callpath"].prefix),
f"--with-adept-utils={self.spec['adept-utils'].prefix}",
f"--with-callpath={self.spec['callpath'].prefix}",
]

return args
49 changes: 34 additions & 15 deletions outputs/package-py-files/4.package.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,59 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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 *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report MPI objects like MPI_Requests and
MPI_Datatypes."""
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

maintainers("adamjstewart")
maintainers("alecbcs")

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
license("BSD", checked_by="alecbcs")

variant("stackstart", values=int, default=0,
description="Specify the number of stack frames to truncate")
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

variant(
"stackstart",
values=int,
default=0,
description="Specify the number of stack frames to truncate",
)

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

depends_on("mpi")
depends_on("adept-utils")
depends_on("callpath")

def autoreconf(self, spec, prefix):
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
args = [
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
"--with-callpath={0}".format(self.spec["callpath"].prefix),
f"--with-adept-utils={self.spec['adept-utils'].prefix}",
f"--with-callpath={self.spec['callpath'].prefix}",
]

stackstart = int(self.spec.variants["stackstart"].value)
if stackstart:
args.extend([
"--with-stack-start-c={0}".format(stackstart),
"--with-stack-start-fortran={0}".format(stackstart),
])
args.extend(
[
f"--with-stack-start-c={stackstart}",
f"--with-stack-start-fortran={stackstart}",
]
)

return args
49 changes: 34 additions & 15 deletions outputs/package-py-files/5.package.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,61 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Copyright 2013-2024 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 *
from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report MPI objects like MPI_Requests and
MPI_Datatypes."""
"""Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"

maintainers("adamjstewart")
maintainers("alecbcs")

sanity_check_is_dir = ["bin", "lib", "shar"]

version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825")
license("BSD", checked_by="alecbcs")

variant("stackstart", values=int, default=0,
description="Specify the number of stack frames to truncate")
version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

variant(
"stackstart",
values=int,
default=0,
description="Specify the number of stack frames to truncate",
)

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

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")

depends_on("mpi")
depends_on("adept-utils")
depends_on("callpath")

def autoreconf(self, spec, prefix):
autoreconf("--install", "--verbose", "--force")

def configure_args(self):
args = [
"--with-adept-utils={0}".format(self.spec["adept-utils"].prefix),
"--with-callpath={0}".format(self.spec["callpath"].prefix),
f"--with-adept-utils={self.spec['adept-utils'].prefix}",
f"--with-callpath={self.spec['callpath'].prefix}",
]

stackstart = int(self.spec.variants["stackstart"].value)
if stackstart:
args.extend([
"--with-stack-start-c={0}".format(stackstart),
"--with-stack-start-fortran={0}".format(stackstart),
])
args.extend(
[
f"--with-stack-start-c={stackstart}",
f"--with-stack-start-fortran={stackstart}",
]
)

return args
Loading
Loading