|
NAMESoftware::License - packages that provide templated software licensesVERSIONversion 0.104001SYNOPSISmy $license = Software::License::Discordian->new({ holder => 'Ricardo Signes', }); print $output_fh $license->fulltext; METHODSnewmy $license = $subclass->new(\%arg); This method returns a new license object for the given license class. Valid arguments are:
"program" and "Program" arguments may be specified both, either one or none. Each argument, if not specified, is defaulted to another one, or to properly capitalized "this program", if both arguments are omitted. yearholderThese methods are attribute readers.programName of software for using in the middle of a sentence.The method returns value of "program" constructor argument (if it evaluates as true, i. e. defined, non-empty, non-zero), or value of "Program" constructor argument (if it is true), or "this program" as the last resort. ProgramName of software for using in the middle of a sentence.The method returns value of "Program" constructor argument (if it is true), or value of "program" constructor argument (if it is true), or "This program" as the last resort. nameThis method returns the name of the license, suitable for shoving in the middle of a sentence, generally with a leading capitalized "The."urlThis method returns the URL at which a canonical text of the license can be found, if one is available. If possible, this will point at plain text, but it may point to an HTML resource.noticeThis method returns a snippet of text, usually a few lines, indicating the copyright holder and year of copyright, as well as an indication of the license under which the software is distributed.licenseThis method returns the full text of the license.fulltextThis method returns the complete text of the license, preceded by the copyright notice.versionThis method returns the version of the license. If the license is not versioned, this method will return false.meta_nameThis method returns the string that should be used for this license in the CPAN META.yml file, according to the CPAN Meta spec v1, or undef if there is no known string to use.This method may also be invoked as "meta_yml_name" for legacy reasons. meta2_nameThis method returns the string that should be used for this license in the CPAN META.json or META.yml file, according to the CPAN Meta spec v2, or undef if there is no known string to use. If this method does not exist, and "meta_name" returns open_source, restricted, unrestricted, or unknown, that value will be used.spdx_expressionThis method should return the string with the spdx identifier as indicated by <https://spdx.org/licenses/>LOOKING UP LICENSE CLASSESIf you have an entry in a META.yml or META.json file, or similar metadata, and want to look up the Software::License class to use, there are useful tools in Software::LicenseUtils.TODO
SEE ALSOThe specific license:
Extra licenses are maintained on CPAN in separate modules. The App::Software::License module comes with a script software-license <https://metacpan.org/pod/distribution/App-Software-License/script/software-license>, which provides a command-line interface to Software::License. AUTHORRicardo Signes <rjbs@semiotic.systems>CONTRIBUTORS
COPYRIGHT AND LICENSEThis software is copyright (c) 2021 by Ricardo Signes.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |