License::SPDX

The SPDX licence list

License::SPDX

Abstraction over the SPDX License List

image https://github.com/jonathanstowe/License-SPDX/workflows/CI/badge.svg not found

Synopsis


use License::SPDX;

my $l = License::SPDX.new;

if $l.get-license('Artistic-2.0') -> $license {
	pass "licence is good";
	if $license.is-deprecated-license {
		warn "deprecated licence";
    }
}
else {
	flunk "not a good licence";
}

Description

This provides an abstraction over the SPDX License List as provided in JSON format. Its primary raison d'être is to help the licence checking of Test::META and to allow for the warning about deprecated licences therein.

The intention is to update this with a new license list (and up the version,) every time the SPDX list is updated.

Installation

Assuming that you have a working Rakudo compiler you should be able to install this using zef :

zef install License::SPDX

# Or from a local clone

zef install .

Support

This is a very simple module, but if you have any suggestions or patches etc please send them to https://github.com/jonathanstowe/License-SPDX/issues

Licence & Copyright

This is free software, please the LICENCE in the distribution.

© Jonathan Stowe 2019-2021

The SPDX Data licensing is described here, the JSON data is included verbatim from source.

License::SPDX v3.17.1

The SPDX licence list

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

JSON::Class:ver<0.0.14+>

Test Dependencies

Provides

  • License::SPDX

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.