@@ -24,45 +24,50 @@ require SBOM::CycloneDX::License;
2424require SBOM::CycloneDX::Tool;
2525
2626
27- # CPAN::Meta::Spec | SPDX | Description
28- # -----------------|---------------------------|--------------------------------
2927my %CPAN_META_SPEC_LICENSE_MAPPING = (
30- agpl_3 => ' AGPL-3.0' , # GNU Affero General Public License, Version 3
31- apache_1_1 => ' Apache-1.1' , # Apache Software License, Version 1.1
32- apache_2_0 => ' Apache-2.0' , # Apache License, Version 2.0
33- artistic_1 => ' Artistic-1.0' , # Artistic License, (Version 1)
34- artistic_2 => ' Artistic-2.0' , # Artistic License, Version 2.0
35- bsd => ' BSD-3-Clause' , # BSD License (three-clause)
36- freebsd => ' BSD-2-Clause-FreeBSD' , # FreeBSD License (two-clause)
37- gfdl_1_2 => ' GFDL-1.2' , # GNU Free Documentation License, Version 1.2
38- gfdl_1_3 => ' GFDL-1.3' , # GNU Free Documentation License, Version 1.3
39- gpl_1 => ' GPL-1.0' , # GNU General Public License, Version 1
40- gpl_2 => ' GPL-2.0' , # GNU General Public License, Version 2
41- gpl_3 => ' GPL-3.0' , # GNU General Public License, Version 3
42- lgpl_2_1 => ' LGPL-2.1' , # GNU Lesser General Public License, Version 2.1
43- lgpl_3_0 => ' LGPL-3.0' , # GNU Lesser General Public License, Version 3.0
44- mit => ' MIT' , # MIT (aka X11) License
45- mozilla_1_0 => ' MPL-1.0' , # Mozilla Public License, Version 1.0
46- mozilla_1_1 => ' MPL-1.1' , # Mozilla Public License, Version 1.1
47- openssl => ' OpenSSL' , # OpenSSL License
48- perl_5 => ' Artistic-1.0-Perl' , # The Perl 5 License (Artistic 1 & GPL 1 or later)
49- qpl_1_0 => ' QPL-1.0' , # Q Public License, Version 1.0
50- ssleay => ' SSLeay-standalone' , # Original SSLeay License
51- sun => ' SISSL' , # Sun Internet Standards Source License (SISSL)
52- zlib => ' Zlib' , # zlib License
53- );
5428
55- # From CPAN::Meta::Spec
29+ # CPAN::Meta::Spec licenses
30+
31+ # license | SPDX | Description
32+ # -----------------|-------------------------------------------|--------------------------------
33+
34+ agpl_3 => ' AGPL-3.0' , # GNU Affero General Public License, Version 3
35+ apache_1_1 => ' Apache-1.1' , # Apache Software License, Version 1.1
36+ apache_2_0 => ' Apache-2.0' , # Apache License, Version 2.0
37+ artistic_1 => ' Artistic-1.0' , # Artistic License, (Version 1)
38+ artistic_2 => ' Artistic-2.0' , # Artistic License, Version 2.0
39+ bsd => ' BSD-3-Clause' , # BSD License (three-clause)
40+ freebsd => ' BSD-2-Clause-FreeBSD' , # FreeBSD License (two-clause)
41+ gfdl_1_2 => ' GFDL-1.2-or-later' , # GNU Free Documentation License, Version 1.2
42+ gfdl_1_3 => ' GFDL-1.3-or-later' , # GNU Free Documentation License, Version 1.3
43+ gpl_1 => ' GPL-1.0-only' , # GNU General Public License, Version 1
44+ gpl_2 => ' GPL-2.0-only' , # GNU General Public License, Version 2
45+ gpl_3 => ' GPL-3.0-only' , # GNU General Public License, Version 3
46+ lgpl_2_1 => ' LGPL-2.1' , # GNU Lesser General Public License, Version 2.1
47+ lgpl_3_0 => ' LGPL-3.0' , # GNU Lesser General Public License, Version 3.0
48+ mit => ' MIT' , # MIT (aka X11) License
49+ mozilla_1_0 => ' MPL-1.0' , # Mozilla Public License, Version 1.0
50+ mozilla_1_1 => ' MPL-1.1' , # Mozilla Public License, Version 1.1
51+ openssl => ' OpenSSL' , # OpenSSL License
52+ perl_5 => ' Artistic-1.0-Perl OR GPL-1.0-or-later' , # The Perl 5 License (Artistic 1 & GPL 1 or later)
53+ qpl_1_0 => ' QPL-1.0' , # Q Public License, Version 1.0
54+ ssleay => ' SSLeay-standalone' , # Original SSLeay License
55+ sun => ' SISSL' , # Sun Internet Standards Source License (SISSL)
56+ zlib => ' Zlib' , # zlib License
57+
58+
59+ # Additional license (from CPAN::Meta::Spec)
5660#
57- # The following license strings are also valid and indicate other licensing not described above:
61+ # The following license strings are also valid and indicate other licensing not described above:
5862#
59- # string description
60- # ------------- -----------------------------------------------
61- # open_source Other Open Source Initiative (OSI) approved license
62- # restricted Requires special permission from copyright holder
63- # unrestricted Not an OSI approved license, but not restricted
64- # unknown License not provided in metadata
63+ # license | SPDX | Description
64+ # -----------------|-------------------------------------------|--------------------------------
6565
66+ open_source => ' NOASSERTION' , # Other Open Source Initiative (OSI) approved license
67+ restricted => ' NOASSERTION' , # Requires special permission from copyright holder
68+ unrestricted => ' CC0-1.0' , # Not an OSI approved license, but not restricted
69+ unknown => ' NONE' , # License not provided in metadata
70+ );
6671
6772sub urn_uuid { sprintf ' urn:uuid:%s' , create_uuid_as_string(UUID_V4) }
6873sub urn_cdx { sprintf ' urn:cdx:%s' , create_uuid_as_string(UUID_V4) }
@@ -177,7 +182,7 @@ SBOM::CycloneDX::Util - Utility for CycloneDX
177182
178183=head1 DESCRIPTION
179184
180- L<SBOM::CycloneDX::Utility > provides a set of utility for L<SBOM::CycloneDX> .
185+ L<SBOM::CycloneDX::Util > provides a set of utility for L<SBOM::CycloneDX> .
181186
182187=head2 FUNCTIONS
183188
0 commit comments