Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit 0913b0a

Browse files
committed
Revert "Revert "Merge branch 'main' into stable""
This reverts commit 1b277a5.
1 parent e7479ed commit 0913b0a

11 files changed

+3954
-205
lines changed

CHANGELOG.md

+35-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!--
22
SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V.
3+
SPDX-FileCopyrightText: 2023 DB Systel GmbH
34
45
SPDX-License-Identifier: CC-BY-SA-4.0
56
-->
@@ -21,28 +22,56 @@ The versions follow [semantic versioning](https://semver.org).
2122

2223
## Unreleased - YYYY-MM-DD
2324

25+
### Changed
26+
### Deprecated
27+
### Removed
28+
### Fixed
29+
### Security
2430
### Added
2531

26-
- Clarify which license text files are needed if a SPDX license expression
27-
contains more than one license and/or exception. (#96)
32+
## 3.1 - 2023-06-21
33+
34+
### Added
35+
36+
- Definition for Commentable and Uncommentable Files. (#123, thanks @Jayman2000)
37+
38+
- Introduce support of in-line snippet comments using
39+
`SPDX-SnippetBegin`/`SPDX-SnippetEnd`. (#107)
40+
41+
- Specify encoding of `.license` files to UTF-8. (#106, thanks @kirelagin for
42+
the helpful background information)
43+
44+
- Introduce `REUSE-IgnoreStart`/`REUSE-IgnoreEnd` to make the REUSE helper tool
45+
not consider the enclosed content for detecting copyright and licensing
46+
information. (#104)
2847

2948
- Definition for Covered File and clarify for which file copyright and licensing
3049
information is required. (#85, thanks @Jayman2000)
3150

51+
- Remove SPDX documents from list of Covered Files. (#103)
52+
53+
- Remove symlinks and zero-byte files from list of Covered Files. (#101)
54+
55+
- Remove submodules and Meson subprojects from list of Covered Files. (#99)
56+
57+
- Clarify which license text files are needed if a SPDX license expression
58+
contains more than one license and/or exception. (#96)
59+
3260
- URLs to currently applicable SPDX specification. (#49)
3361

62+
- Define current order or precedence. (#131)
63+
3464
### Changed
3565

36-
### Deprecated
66+
- Allow `.license` files for commentable files, but strongly recommend adding
67+
copyright/licensing information in header. (#123, thanks @Jayman2000)
3768

38-
### Removed
69+
- Bump referenced SPDX version to 2.3, and update links. (#103) (#107)
3970

4071
### Fixed
4172

4273
- Minor typos and grammar mistakes. Thanks @jlovejoy and @Jayman2000!
4374

44-
### Security
45-
4675

4776
## 3.0 - 2019-08-07
4877

faq.md

+48-8
Original file line numberDiff line numberDiff line change
@@ -416,16 +416,56 @@ You can read more about this file format by Debian
416416

417417
## Can I license only a part of a file as being under a different license? {#partial-license}
418418

419-
The short answer is that yes, you can, but no, there is no standard way for
420-
REUSE to recognize this. If you have a small segment of a file that is licensed
421-
differently, you should list that license under a separate
422-
`SPDX-License-Identifier` tag in the header.
419+
Yes, you can. You should add in-line snippet comments if a copyright and/or
420+
licensing info applies to only a certain part of a file.
423421

424-
You can use your own comments to specify which segment is separately licensed.
425-
For instance: "The class Foo is copied from project Bar and licensed under MIT.
426-
All changes are licensed under GPL-3.0-or-later."
422+
Such an annotated snippet block must start with `SPDX-SnippetBegin` to mark its
423+
beginning and end with `SPDX-SnippetEnd` to mark the snippet's end.
427424

428-
A possible way to circumvent the problem is to extract the segment from the
425+
Do note that SPDX snippet tags MUST start with `SPDX-Snippet`, meaning that the
426+
correct copyright notice in a snippet is `SPDX-SnippetCopyrightText`.
427+
428+
Example:
429+
430+
```
431+
# SPDX-SnippetBegin
432+
# SPDX-License-Identifier: MIT
433+
# SPDX-SnippetCopyrightText: 2023 Jane Doe <[email protected]>
434+
435+
{$snippet_code_goes_here}
436+
437+
# SPDX-SnippetEnd
438+
```
439+
440+
Snippets may nest, and this is denoted by having
441+
`SPDX-SnippetBegin`/`SPDX-SnippetEnd` pairs within other pairs, in the same way
442+
that parentheses nest in mathematical expressions. In the case of nested
443+
snippets, the SPDX file tags are considered to apply to the inner-most snippet. Example:
444+
445+
```
446+
# SPDX-SnippetBegin
447+
# SPDX-License-Identifier: MIT
448+
# SPDX-SnippetCopyrightText: 2023 Jane Doe <[email protected]>
449+
450+
{$snippet_code_under_MIT}
451+
452+
# SPDX-SnippetBegin
453+
# SPDX-License-Identifier: BSD-2-Clause
454+
# SPDX-SnippetCopyrightText: Copyright Example Company
455+
456+
{$snippet_code_under_BSD-2-Clause}
457+
458+
# SPDX-SnippetEnd
459+
460+
{$more_snippet_code_under_MIT}
461+
462+
# SPDX-SnippetEnd
463+
```
464+
465+
It is also considered good practice to further specify the origin of the
466+
snippet, for instance by a comment like "The class Foo is copied from project Bar".
467+
468+
A possible alternative to the problem is to extract the segment from the
429469
file, and to keep it in its own file.
430470

431471
## How do I properly declare multi-licensing? {#multi-licensing}

po/reuse-docs.cs.po

+8-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: [email protected]\n"
1010
"POT-Creation-Date: 2020-08-19 12:43+0200\n"
11-
"PO-Revision-Date: 2022-04-13 12:12+0000\n"
11+
"PO-Revision-Date: 2022-05-01 12:09+0000\n"
1212
"Last-Translator: Jiří Podhorecký <[email protected]>\n"
1313
"Language-Team: Czech <https://hosted.weblate.org/projects/fsfe/reuse-docs/cs/"
1414
">\n"
@@ -17,7 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
20-
"X-Generator: Weblate 4.12-dev\n"
20+
"X-Generator: Weblate 4.12.1\n"
2121

2222
#. type: YAML Front Matter: title
2323
#: faq.md
@@ -962,10 +962,10 @@ msgstr ""
962962

963963
#. type: Plain text
964964
#: faq.md
965-
#, fuzzy, markdown-text
965+
#, markdown-text
966966
msgid "You should not edit license files. Please see [this question](#edit-license)."
967967
msgstr ""
968-
"Licenční soubory byste neměli upravovat. Viz [tato otázka](#edit-licence)."
968+
"Licenční soubory byste neměli upravovat. Viz [tato otázka](#edit-license)."
969969

970970
#. type: Title ##
971971
#: faq.md
@@ -1023,7 +1023,7 @@ msgstr ""
10231023

10241024
#. type: Plain text
10251025
#: faq.md
1026-
#, fuzzy, markdown-text, no-wrap
1026+
#, markdown-text, no-wrap
10271027
msgid ""
10281028
"<!-- TODO: the linked section still needs to be written.\n"
10291029
"Some licenses, such as MIT and the BSD family of licenses, have a line that says\n"
@@ -1033,8 +1033,7 @@ msgid ""
10331033
msgstr ""
10341034
"<!-- TODO: je třeba ještě napsat odkazovanou sekci. \n"
10351035
"Některé licence, například MIT a rodina licencí BSD, obsahují řádek \n"
1036-
"\"Copyright (c) [rok] [držitel autorských práv]\". O tom, jak s těmito "
1037-
"licencemi \n"
1036+
"\"Copyright (c) [year] [copyright holder]\". O tom, jak s těmito licencemi \n"
10381037
"zacházet, se dočtete v [této otázce](#mit-bsd). \n"
10391038
"-->\n"
10401039

@@ -1625,15 +1624,15 @@ msgstr ""
16251624

16261625
#. type: Plain text
16271626
#: tutorial.md
1628-
#, fuzzy, markdown-text, no-wrap
1627+
#, markdown-text, no-wrap
16291628
msgid ""
16301629
"The first thing you need to do is to [choose a license]({{< relref\n"
16311630
"\"faq.md#which-license\" >}}). For this tutorial, we assume that you chose the GNU\n"
16321631
"General Public License (GPL) v3.0 or any later version. More than simply\n"
16331632
"choosing a license, you need to put the license in your project directory.\n"
16341633
msgstr ""
16351634
"Nejprve je třeba [vybrat licenci]({{< relref\n"
1636-
"\"faq.md#which-licence\" >}}). Pro tento návod předpokládáme, že jste si "
1635+
"\"faq.md#which-license\" >}}). Pro tento návod předpokládáme, že jste si "
16371636
"vybrali licenci GNU\n"
16381637
"General Public License (GPL) v3.0 nebo jakoukoli novější verzi. Nestačí než "
16391638
"jen\n"

0 commit comments

Comments
 (0)