Merge topic 'spdx_license'

b533f229b8 cmSbom: Generate SPDX data denoting project licenses

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12133
This commit is contained in:
Brad King
2026-06-18 15:11:09 +00:00
committed by Kitware Robot
23 changed files with 232 additions and 33 deletions

View File

@@ -178,7 +178,8 @@ Exporting Software Bill of Materials (SBOM) Documents
[FORMAT <string>]
[PROJECT <project-name>|NO_PROJECT_METADATA]
[VERSION <major>[.<minor>[.<patch>[.<tweak>]]]]
[LICENSE <license-string>]
[DATA_LICENSE <license-string>]
[DEFAULT_LICENSE <license-string>]
[DESCRIPTION <description-string>]
[HOMEPAGE_URL <url-string>]
[PACKAGE_URL <url-string>])

View File

@@ -1217,7 +1217,8 @@ Signatures
[PROJECT <project-name>|NO_PROJECT_METADATA]
[DESTINATION <dir>]
[VERSION <major>[.<minor>[.<patch>[.<tweak>]]]]
[LICENSE <license-string>]
[DATA_LICENSE <license-string>]
[DEFAULT_LICENSE <license-string>]
[DESCRIPTION <description-string>]
[HOMEPAGE_URL <url-string>]
[PACKAGE_URL <url-string>]
@@ -1260,16 +1261,21 @@ Signatures
An informational canonical package URL for the project.
``LICENSE <license-string>``
``DATA_LICENSE <license-string>``
A |SPDX|_ (SPDX) `License Expression`_ that describes the license(s) of the
project as a whole, including documentation, resources, or other materials
distributed with the project, in addition to software artifacts. See the
SPDX `License List`_ for a list of commonly used licenses and their
identifiers.
SBOM data itself in the generated document. See the SPDX `License List`_
for a list of commonly used licenses and their identifiers. In the SPDX
format, it corresponds to the `dataLicense`_ property.
The license of individual components is taken from the
:prop_tgt:`SPDX_LICENSE` property of their respective targets.
:prop_tgt:`SPDX_LICENSE` property of their respective targets if set and
the ``DEFAULT_LICENSE`` otherwise.
``DEFAULT_LICENSE <license-string>``
A |SPDX|_ (SPDX) `License Expression`_ that describes the license(s) of any
components which do not otherwise specify their license(s).
``DESCRIPTION <description-string>``
@@ -1420,5 +1426,6 @@ and by CPack. You can also invoke this script manually with
.. _License Expression: https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/
.. _License List: https://spdx.org/licenses/
.. _dataLicense: https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Properties/dataLicense/
.. |SBOM| replace:: Software Bill of Material