Software::License (3)
Leading comments
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) Standard preamble: ========================================================================
NAME
Software::License - packages that provide templated software licensesVERSION
version 0.103012SYNOPSIS
my $license = Software::License::Discordian->new({ holder => 'Ricardo Signes', }); print $output_fh $license->fulltext;
METHODS
new
my $license = $subclass->new(\%arg);
This method returns a new license object for the given license class. Valid arguments are:
holder - the holder of the copyright; required year - the year of copyright; defaults to current year
year
holder
These methods are attribute readers.name
This method returns the name of the license, suitable for shoving in the middle of a sentence, generally with a leading capitalized ``The.''url
This method returns theURL
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.
notice
This 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.summary
This method returns a summary of the license. This summary must refer to a file containing the whole license. On Debian system, the file containing the whole license will be in "/usr/share/common-licenses/" directory. (Available only on Debian)debian_text
This method returns a summary of the license (if available) or the full text of the license (Available only on Debian)license
This method returns the full text of the license.fulltext
This method returns the complete text of the license, preceded by the copyright notice.version
This method returns the version of the license. If the license is not versioned, this method will return false.meta_name
This method returns the string that should be used for this license in theCPAN
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_name
This method returns the string that should be used for this license in theCPAN
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.
LOOKING UP LICENSE CLASSES
If you have an entry in aMETA
.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
- *
- register licenses with aliases to allow $registry->get('gpl', 2);
SEE ALSO
The specific license:- *
- Software::License::AGPL_3
- *
- Software::License::Apache_1_1
- *
- Software::License::Apache_2_0
- *
- Software::License::Artistic_1_0
- *
- Software::License::Artistic_2_0
- *
- Software::License::BSD
- *
- Software::License::CC0_1_0
- *
- Software::License::Custom
- *
- Software::License::FreeBSD
- *
- Software::License::GFDL_1_2
- *
- Software::License::GFDL_1_3
- *
- Software::License::GPL_1
- *
- Software::License::GPL_2
- *
- Software::License::GPL_3
- *
- Software::License::LGPL_2_1
- *
- Software::License::LGPL_3_0
- *
- Software::License::MIT
- *
- Software::License::Mozilla_1_0
- *
- Software::License::Mozilla_1_1
- *
- Software::License::Mozilla_2_0
- *
- Software::License::None
- *
- Software::License::OpenSSL
- *
- Software::License::Perl_5
- *
- Software::License::PostgreSQL
- *
- Software::License::QPL_1_0
- *
- Software::License::SSLeay
- *
- Software::License::Sun
- *
- Software::License::Zlib
AUTHOR
Ricardo Signes <rjbs@cpan.org>CONTRIBUTORS
- *
- Bernardo Rechea <brbpub@gmail.com>
- *
- Bernhard Amann <bernhard@icsi.berkeley.edu>
- *
- bowtie <bowtie@cpan.org>
- *
- Brian Cassidy <bricas@cpan.org>
- *
- Brian Phillips <bphillips@digitalriver.com>
- *
- Craig Scrivner <scrivner@geology.cwu.edu>
- *
- Dave Rolsky <autarch@urth.org>
- *
- David E. Wheeler <david@justatheory.com>
- *
- David Golden <dagolden@cpan.org>
- *
- Dominique Dumont <dod@debian.org>
- *
- Dylan William Hardison <dylan@hardison.net>
- *
- Flavio Poletti <flavio@polettix.it>
- *
- Florian Ragwitz <rafl@debian.org>
- *
- Graham Knop <haarg@haarg.org>
- *
- Kenichi Ishigaki <ishigaki@cpan.org>
- *
- magnolia <magnolia.k@me.com>
- *
- mikegrb <mgreb@linode.com>
- *
- Shlomi Fish <shlomif@iglu.org.il>
- *
-
Syohei YOSHIDA<syohex@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 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.