Skip to content

Commit 11b9c77

Browse files
committed
Update Specification
* Better wording * Add support of `spdx_license_expression` in the specification doc Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 5a9f722 commit 11b9c77

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changelog
77
* Add character support (at most 2 characters) for `attribute` field
88
* Strip empty newline characters when loading an inventory
99
* Catch invalid license_expression
10+
* Update the specification to 3.3.2
1011

1112

1213
2023-09-25

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In addition, this tool is able to generate attribution notices and
2121
identify redistributable source code used in your project to help you comply
2222
with open source licenses conditions.
2323

24-
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.1 at:
24+
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.2 at:
2525
https://aboutcode-toolkit.readthedocs.io/en/latest/specification.html
2626

2727

docs/source/home.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In addition, this tool is able to generate attribution notices and
2020
identify redistributable source code used in your project to help you comply
2121
with open source licenses conditions.
2222

23-
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.1 at:
23+
This version of the AboutCode Toolkit follows the ABOUT specification version 3.3.2 at:
2424
https://aboutcode-toolkit.readthedocs.io/en/latest/specification.html
2525

2626

docs/source/specification.rst

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _specification:
22

33
===============================
4-
ABOUT File Specification v3.3.1
4+
ABOUT File Specification v3.3.2
55
===============================
66

77
Purpose
@@ -47,12 +47,12 @@ The meaning of this ABOUT file is:
4747
- The file "httpd-2.4.3.tar.gz" is stored in the same directory and side-by-side with
4848
the ABOUT file "httpd-2.4.3.tar.gz.ABOUT" that documents it.
4949
- The name of this component is "Apache HTTP Server" with version "2.4.3".
50-
- The home URL for this component is http://httpd.apache.org
50+
- The homepage URL for this component is http://httpd.apache.org
5151
- The file "httpd-2.4.3.tar.gz" was originally downloaded from http://archive.apache.org/dist/httpd/httpd-2.4.3.tar.gz
52+
- This component is licensed under "apache-2.0"
53+
- The licenses section contains the information of this "apache-2.0" license.
5254
- In the same directory, "apache-2.0.LICENSE" and "httpd.NOTICE" are files
5355
that contain respectively the license text and the notice text for this component.
54-
- This component is licensed under "apache-2.0"
55-
- The license for this component is defined in the SPDX License List at https://spdx.org/licenses/Apache-2.0.html
5656

5757
Specification
5858
=============
@@ -68,7 +68,7 @@ An ABOUT file name can use a limited set of characters and is suffixed with a
6868

6969
A file name can contain any characters and digits with the following exception and condition:
7070

71-
- the following symbols are not supported: ``", #, &, ', *, \, :, ;, <, >, =, ?, /, ^, `, |``
71+
- the following symbols are not accepted: ``", #, &, ', *, \, :, ;, <, >, =, ?, /, ^, `, |``
7272
- The case of a file name is not significant. On case-sensitive file systems
7373
(such as on Linux), a tool must report an error if two ABOUT files stored in the same
7474
directory have the same lowercase file name. This is to ensure that ABOUT files can be
@@ -163,17 +163,27 @@ Field referencing a file
163163

164164
The actual value of some fields may be contained in another file. This is useful
165165
for long texts or to reference a common text in multiple ABOUT files such as a
166-
common license text. In this case the field name is suffixed with "_file" and the
167-
field value must be a path pointing to the file that contains the actual value of the
168-
field. This path must be a POSIX path relative to the path of the ABOUT file. The file
169-
content must be UTF-8-encoded text.
166+
common license text. In this case the field name is suffixed with "_file" and
167+
the field value must be a path pointing to the file that contains the actual
168+
value of the field. If the field is referencing a license file, a "file" field
169+
within the "licenses" group can be used. This path must be a POSIX path relative
170+
to the path of the ABOUT file. The file content must be UTF-8-encoded text.
171+
172+
For example, this example shows the license file for the component is named
173+
"linux.COPYING" and the notice file is "NOTICE":
174+
175+
.. code-block:: none
176+
177+
license_file: linux.COPYING
178+
notice_file: NOTICE
170179
171-
For example, the full license text for a component is often stored in a separate file named COPYING:
180+
Alternatvely, it can also write as the follow:
172181

173182
.. code-block:: none
174183
175184
licenses:
176185
- file: linux.COPYING
186+
notice_file: NOTICE
177187
178188
In this example, the README file is stored in a doc directory, one directory
179189
above the ABOUT file directory, using a relative POSIX path:
@@ -318,6 +328,7 @@ Optional Licensing fields
318328
(No special characters are allowed).
319329
- spdx_license_key: The ScanCode LicenseDB spdx_license_key defined
320330
for the license at https://scancode-licensedb.aboutcode.org/index.html
331+
- spdx_license_expression: The license expression that use spdx_license_key
321332

322333
Notes
323334
^^^^^

src/attributecode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
__version__ = '10.1.0'
2424

25-
__about_spec_version__ = '3.3.1'
25+
__about_spec_version__ = '3.3.2'
2626

2727
__copyright__ = """
2828
Copyright (c) nexB Inc. All rights reserved. http://dejacode.org

0 commit comments

Comments
 (0)