String::License::Naming::SPDX(3pm)

String::License::Naming::SPDX3pm

Licenses as named by spdx

Usage

    use String::License::Naming::SPDX;
    my $spdx = String::License::Naming::SPDX->new;
    my $license = [ grep { /^(Expat|Perl)$/ } $spdx->list_licenses ];  # => is_deeply ['Perl']

Version

Version v0.0.11

Overview

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.

Pod errors

Hey! The above document had some coding errors, which are explained below:

Around line 92:

'=item' outside of any '=over'

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Jonas Smedegaard "<[email protected]>"

From libstring-license-perl 0.0.11-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.