1Software::License(3)  User Contributed Perl Documentation Software::License(3)
2
3
4

NAME

6       Software::License - packages that provide templated software licenses
7

VERSION

9       version 0.103002
10

SYNOPSIS

12         my $license = Software::License::Discordian->new({
13           holder => 'Ricardo Signes',
14         });
15
16         print $output_fh $license->fulltext;
17

METHODS

19   new
20         my $license = $subclass->new(\%arg);
21
22       This method returns a new license object for the given license class.
23       Valid arguments are:
24
25         holder - the holder of the copyright; required
26         year   - the year of copyright; defaults to current year
27
28   year
29   holder
30       These methods are attribute readers.
31
32   name
33       This method returns the name of the license, suitable for shoving in
34       the middle of a sentence, generally with a leading capitalized "The."
35
36   url
37       This method returns the URL at which a canonical text of the license
38       can be found, if one is available.  If possible, this will point at
39       plain text, but it may point to an HTML resource.
40
41   notice
42       This method returns a snippet of text, usually a few lines, indicating
43       the copyright holder and year of copyright, as well as an indication of
44       the license under which the software is distributed.
45
46   license
47       This method returns the full text of the license.
48
49   fulltext
50       This method returns the complete text of the license, preceded by the
51       copyright notice.
52
53   version
54       This method returns the version of the license.  If the license is not
55       versioned, this method will return false.
56
57   meta_name
58       This method returns the string that should be used for this license in
59       the CPAN META.yml file, according to the CPAN Meta spec v1, or undef if
60       there is no known string to use.
61
62       This method may also be invoked as "meta_yml_name" for legacy reasons.
63
64   meta2_name
65       This method returns the string that should be used for this license in
66       the CPAN META.json or META.yml file, according to the CPAN Meta spec
67       v2, or undef if there is no known string to use.  If this method does
68       not exist, and "meta_name" returns open_source, restricted,
69       unrestricted, or unknown, that value will be used.
70

LOOKING UP LICENSE CLASSES

72       If you have an entry in a META.yml or META.json file, or similar
73       metadata, and want to look up the Software::License class to use, there
74       are useful tools in Software::LicenseUtils.
75

TODO

77       ·   register licenses with aliases to allow $registry->get('gpl', 2);
78

SEE ALSO

80       The specific license:
81
82       ·   Software::License::AGPL_3
83
84       ·   Software::License::Apache_1_1
85
86       ·   Software::License::Apache_2_0
87
88       ·   Software::License::Artistic_1_0
89
90       ·   Software::License::Artistic_2_0
91
92       ·   Software::License::BSD
93
94       ·   Software::License::CC0
95
96       ·   Software::License::FreeBSD
97
98       ·   Software::License::GFDL_1_2
99
100       ·   Software::License::GPL_1
101
102       ·   Software::License::GPL_2
103
104       ·   Software::License::GPL_3
105
106       ·   Software::License::LGPL_2_1
107
108       ·   Software::License::LGPL_3_0
109
110       ·   Software::License::MIT
111
112       ·   Software::License::Mozilla_1_0
113
114       ·   Software::License::Mozilla_1_1
115
116       ·   Software::License::None
117
118       ·   Software::License::OpenSSL
119
120       ·   Software::License::Perl_5
121
122       ·   Software::License::QPL_1_0
123
124       ·   Software::License::SSLeay
125
126       ·   Software::License::Sun
127
128       ·   Software::License::Zlib
129

AUTHOR

131       Ricardo Signes <rjbs@cpan.org>
132
134       This software is copyright (c) 2011 by Ricardo Signes.
135
136       This is free software; you can redistribute it and/or modify it under
137       the same terms as the Perl 5 programming language system itself.
138
139
140
141perl v5.12.3                      2011-06-02              Software::License(3)
Impressum