diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8f5eb6ca..af004a13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: REUSE Compliance Check - uses: fsfe/reuse-action@v3 + uses: fsfe/reuse-action@v5 build: runs-on: ubuntu-latest diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100644 index 7a77dedf..00000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,36 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: reuse-website -Upstream-Contact: Free Software Foundation Europe -Source: https://github.com/fsfe/reuse-website - -Files: site/static/fonts/roboto/* -Copyright: 2018 Google -License: Apache-2.0 - -Files: site/static/fonts/fontawesome/css/* -Copyright: Font Awesome -License: MIT - -Files: site/static/fonts/fontawesome/webfonts/* -Copyright: Font Awesome -License: OFL-1.1 - -Files: site/static/fonts/fontawesome/webfonts/*.svg -Copyright: Font Awesome -License: CC-BY-4.0 - -Files: site/static/img/*.png -Copyright: 2019 Free Software Foundation Europe -License: CC-BY-SA-4.0 - -Files: site/static/img/*.jpg -Copyright: 2019 Free Software Foundation Europe -License: CC-BY-SA-4.0 - -Files: site/i18n/*.json -Copyright: 2019 Free Software Foundation Europe -License: CC-BY-SA-4.0 - -Files: site/po/*.po* -Copyright: 2020 Free Software Foundation Europe e.V. -License: CC-BY-SA-4.0 diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..bdd8d870 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,55 @@ +version = 1 + +[[annotations]] +path = "site/static/*.schema.json" +precedence = "override" +SPDX-FileCopyrightText = "2025 Free Software Foundation Europe " +SPDX-License-Identifier = "CC0-1.0" + +[[annotations]] +path = "site/static/fonts/roboto/**" +precedence = "aggregate" +SPDX-FileCopyrightText = "2018 Google" +SPDX-License-Identifier = "Apache-2.0" + +[[annotations]] +path = "site/static/fonts/fontawesome/css/**" +precedence = "aggregate" +SPDX-FileCopyrightText = "Font Awesome " +SPDX-License-Identifier = "MIT" + +[[annotations]] +path = "site/static/fonts/fontawesome/webfonts/**" +precedence = "aggregate" +SPDX-FileCopyrightText = "Font Awesome " +SPDX-License-Identifier = "OFL-1.1" + +[[annotations]] +path = "site/static/fonts/fontawesome/webfonts/**.svg" +precedence = "aggregate" +SPDX-FileCopyrightText = "Font Awesome " +SPDX-License-Identifier = "CC-BY-4.0" + +[[annotations]] +path = "site/static/img/**.png" +precedence = "aggregate" +SPDX-FileCopyrightText = "2019 Free Software Foundation Europe " +SPDX-License-Identifier = "CC-BY-SA-4.0" + +[[annotations]] +path = "site/static/img/**.jpg" +precedence = "aggregate" +SPDX-FileCopyrightText = "2019 Free Software Foundation Europe " +SPDX-License-Identifier = "CC-BY-SA-4.0" + +[[annotations]] +path = "site/i18n/**.json" +precedence = "aggregate" +SPDX-FileCopyrightText = "2019 Free Software Foundation Europe " +SPDX-License-Identifier = "CC-BY-SA-4.0" + +[[annotations]] +path = "site/po/**.po**" +precedence = "aggregate" +SPDX-FileCopyrightText = "2020 Free Software Foundation Europe e.V." +SPDX-License-Identifier = "CC-BY-SA-4.0" diff --git a/site/content/en/faq.md b/site/content/en/faq.md index 011165ec..529db318 100644 --- a/site/content/en/faq.md +++ b/site/content/en/faq.md @@ -416,7 +416,8 @@ SPDX-License-Identifier = "CC0-1.0" ``` The [REUSE Specification](/spec) documents more thoroughly how `REUSE.toml` can -be used. +be used. You can find a JSON schema for `REUSE.toml` at +. ## ... override erroneous REUSE information? {#override-info} diff --git a/site/content/en/spec-3.2.md b/site/content/en/spec-3.2.md index 1bb1f3b2..29169402 100644 --- a/site/content/en/spec-3.2.md +++ b/site/content/en/spec-3.2.md @@ -309,6 +309,9 @@ SPDX-FileCopyrightText = "2019 Jane Doe" SPDX-License-Identifier = "CC0-1.0" ``` +A JSON schema of version 1 of `REUSE.toml` is provided at + for your convenience. + ### DEP5 (deprecated) Licensing Information MAY be associated with a file through a DEP5 file, but you diff --git a/site/content/en/spec-3.3.md b/site/content/en/spec-3.3.md index f937de4f..9e2bdc32 100644 --- a/site/content/en/spec-3.3.md +++ b/site/content/en/spec-3.3.md @@ -317,6 +317,9 @@ SPDX-FileCopyrightText = "2019 Jane Doe" SPDX-License-Identifier = "CC0-1.0" ``` +A JSON schema of version 1 of `REUSE.toml` is provided at + for your convenience. + ### DEP5 (deprecated) Licensing Information MAY be associated with a file through a DEP5 file, but you diff --git a/site/static/reuse-toml-v1.schema.json b/site/static/reuse-toml-v1.schema.json new file mode 100644 index 00000000..9902fdd3 --- /dev/null +++ b/site/static/reuse-toml-v1.schema.json @@ -0,0 +1,85 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://reuse.software/reuse-toml-v1.schema.json", + "$comment": "See https://reuse.software/ for details", + "title": "REUSE.toml global licensing file, version 1", + "description": "A configuration file which declares the copyright and licensing of files in a directory tree", + "type": "object", + "required": ["version"], + "properties": { + "version": { + "description": "The schema version of the REUSE.toml file", + "type": "integer", + "exclusiveMinimum": 0, + "examples": [1] + }, + "annotations": { + "description": "Annotation object array", + "type": "array", + "items": { + "description": "Annotation object", + "type": "object", + "required": ["path"], + "properties": { + "path": { + "description": "Relative path(s) to files, with optional globbing", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], + "examples": [["po/*.po", "po/*.pot"], "tests/resources/**"] + }, + "precedence": { + "description": "The order of precedence for Licensing Information between this REUSE.toml file and the files covered by path", + "enum": ["closest", "aggregate", "override"], + "default": "closest", + "examples": ["closest"] + }, + "SPDX-FileCopyrightText": { + "description": "Copyright notice(s)", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], + "examples": [ + "2019 Jane Doe ", + "© 2019 John Doe ", + "Contributors to Example Project ", + "(C) Example Cooperative ", + "Copyright 2016, 2018-2019 Joe Anybody" + ] + }, + "SPDX-License-Identifier": { + "description": "License identifier(s)", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], + "examples": ["GPL-3.0-or-later", "GPL-3.0-or-later OR Apache-2.0"] + } + } + } + } + } +}