NAME

String::License::Naming::SPDX - licenses as named by SPDX

VERSION

Version v0.0.4

SYNOPSIS

use String::License::Naming::SPDX;

my $spdx = String::License::Naming::SPDX->new;

my $license = [ grep { /^(Expat|Perl)$/ } $spdx->list_licenses ];  # => is_deeply ['Perl']

DESCRIPTION

String::License::Naming enumerates supported licenses matching an ordered set of naming schemes, or enumerates the names of supported license naming schemes.

Some licenses are known by different names. E.g. the license "MIT" according to SPDX is named "Expat" in Debian.

Some licenses are not always represented. E.g. "Perl" is a (discouraged) license in Debian while it is a relationship of several licenses with SPDX (and that expression is recommended in Debian as well).

By default, licenses are matched using naming schemes [ 'spdx', 'internal' ], which lists all supported licenses, preferrably by their SPDX name or as fallback by an internal name.

CONSTRUCTOR

new

Constructs and returns a String::License::Naming object.

Includes all licenses defined by SPDX, and presents them by their SPDX shortname.

FUNCTIONS

list_schemes

Returns a list of license naming schemes in use.

list_licenses

Returns a list of all licensing patterns covered by SPDX, each labeled by SPDX shortname.

AUTHOR

Jonas Smedegaard <dr@jones.dk>

COPYRIGHT AND LICENSE

Copyright © 2023 Jonas Smedegaard

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 90:

'=item' outside of any '=over'