Software::LicenseMoreUtils

This Perl modules provides some utilities on top of Software::License:

Example

use Software::LicenseMoreUtils;
   
 my $lic = Software::LicenseMoreUtils->new_license_with_summary({
   short_name => 'Apache-2.0', # accepts also Apache-2 Apache_2_0
   holder => 'X. Ample'
});

# returns a license summary on Debian, returns license text elsewhere
my $text = $lic->summary_or_text;

# returns license full text
my $text = $lic->text;

Compatibility

new_from_short_name has the same parameters as the new_from_short_name provided by Software::License. It returns a new Software::LicenseMoreUtils::LicenseWithSummary object which has the same methods as Software::License.

What about RedHat and other Linux distributions

This module was written mainly to help Debian packaging. Adding support for other distribution should be straightforward. PRs are welcome.