https://github.com/spack/spack-repo-template
All the license metadata that has to go in a Spack project repo.
https://github.com/spack/spack-repo-template
Last synced: 3 months ago
JSON representation
All the license metadata that has to go in a Spack project repo.
- Host: GitHub
- URL: https://github.com/spack/spack-repo-template
- Owner: spack
- License: other
- Created: 2021-05-07T22:19:53.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-19T13:58:03.000Z (10 months ago)
- Last Synced: 2025-08-19T15:39:22.537Z (10 months ago)
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Spack Repository Template
Spack is a dual-licensed project, and getting all the right files in the right
place can be a pain. This is a simple template repository that you can use to
ensure you have all the right files present in your repo.
## Files you need
These should be at the top level of your repository:
* `README.md` - The `README.md` file should have a short section at the bottom
called "License", with a really brief statement saying that Spack is
dual-licensed and what that means. It should also have the SPDX license
identifier and the LLNL release number for Spack (see below).
* `COPYRIGHT` - Used because Spack is dual-licensed, just to make things clear.
`COPYRIGHT` has:
* The same short text that's in the `README.md` so that
people know Spack is dual-licensed.
* A statement that copyrights are retained by contributors.
* Pointers to LICENSE-* and NOTICE files.
* A description of what SPDX identifiers are.
* `LICENSE-MIT` - The text of the `MIT` license.
* `LICENSE-APACHE` - The text of the `Apache-2.0` license.
* `NOTICE` - LLNL's required `NOTICE` with contract info and disclaimer. The
`Apache-2.0` license also requires that this be distributed.
## License Headers
In files in the repository, you should have a short header like this:
```python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
```
For languages with different types of comments, you can just use whatever is
standard, e.g. `//` for C++, `/* */` for C, `--` for Lua, `%` for Prolog/ASP
etc.
This header lets people know the file is part of Spack and identifies the
license concisely with an SPDX identifier. It also makes it clear that the
copyright is retained by developers.
## License
This project is part of Spack. Spack is distributed under the terms of both the
MIT license and the Apache License (Version 2.0). Users may choose either
license, at their option.
All new contributions must be made under both the MIT and Apache-2.0 licenses.
See LICENSE-MIT, LICENSE-APACHE, COPYRIGHT, and NOTICE for details.
SPDX-License-Identifier: (Apache-2.0 OR MIT)
LLNL-CODE-811652