1Software::License(3) User Contributed Perl Documentation Software::License(3)
2
3
4
6 Software::License - packages that provide templated software licenses
7
9 version 0.103014
10
12 my $license = Software::License::Discordian->new({
13 holder => 'Ricardo Signes',
14 });
15
16 print $output_fh $license->fulltext;
17
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
71 spdx_expression
72 This method should return the string with the spdx identifier as
73 indicated by <https://spdx.org/licenses/>
74
76 If you have an entry in a META.yml or META.json file, or similar
77 metadata, and want to look up the Software::License class to use, there
78 are useful tools in Software::LicenseUtils.
79
81 · register licenses with aliases to allow $registry->get('gpl', 2);
82
84 The specific license:
85
86 · Software::License::AGPL_3
87
88 · Software::License::Apache_1_1
89
90 · Software::License::Apache_2_0
91
92 · Software::License::Artistic_1_0
93
94 · Software::License::Artistic_2_0
95
96 · Software::License::BSD
97
98 · Software::License::CC0_1_0
99
100 · Software::License::Custom
101
102 · Software::License::EUPL_1_1
103
104 · Software::License::EUPL_1_2
105
106 · Software::License::FreeBSD
107
108 · Software::License::GFDL_1_2
109
110 · Software::License::GFDL_1_3
111
112 · Software::License::GPL_1
113
114 · Software::License::GPL_2
115
116 · Software::License::GPL_3
117
118 · Software::License::LGPL_2_1
119
120 · Software::License::LGPL_3_0
121
122 · Software::License::MIT
123
124 · Software::License::Mozilla_1_0
125
126 · Software::License::Mozilla_1_1
127
128 · Software::License::Mozilla_2_0
129
130 · Software::License::None
131
132 · Software::License::OpenSSL
133
134 · Software::License::Perl_5
135
136 · Software::License::PostgreSQL
137
138 · Software::License::QPL_1_0
139
140 · Software::License::SSLeay
141
142 · Software::License::Sun
143
144 · Software::License::Zlib
145
146 The App::Software::License module comes with a script software-license
147 <https://metacpan.org/pod/distribution/App-Software-
148 License/script/software-license>, which provides a command-line
149 interface to Software::License.
150
152 Ricardo Signes <rjbs@cpan.org>
153
155 · Alex Kapranoff <kappa@yandex.ru>
156
157 · Bernardo Rechea <brbpub@gmail.com>
158
159 · Bernhard Amann <bernhard@icsi.berkeley.edu>
160
161 · bowtie <bowtie@cpan.org>
162
163 · Brian Cassidy <bricas@cpan.org>
164
165 · Brian Phillips <bphillips@digitalriver.com>
166
167 · Craig Scrivner <scrivner@geology.cwu.edu>
168
169 · Curtis Brandt <curtis@cpan.org>
170
171 · Dave Rolsky <autarch@urth.org>
172
173 · David E. Wheeler <david@justatheory.com>
174
175 · David Golden <dagolden@cpan.org>
176
177 · Dominique Dumont <dod@debian.org>
178
179 · Dylan William Hardison <dylan@hardison.net>
180
181 · Flavio Poletti <flavio@polettix.it>
182
183 · Florian Ragwitz <rafl@debian.org>
184
185 · Graham Knop <haarg@haarg.org>
186
187 · Karen Etheridge <ether@cpan.org>
188
189 · Kenichi Ishigaki <ishigaki@cpan.org>
190
191 · Leon Timmermans <fawaka@gmail.com>
192
193 · magnolia <magnolia.k@me.com>
194
195 · mikegrb <mgreb@linode.com>
196
197 · Neil Bowers <neil@bowers.com>
198
199 · Olivier Mengué <dolmen@cpan.org>
200
201 · Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>
202
203 · Shlomi Fish <shlomif@iglu.org.il>
204
205 · Syohei YOSHIDA <syohex@gmail.com>
206
207 · Wesley Schwengle <wesley@schwengle.net>
208
210 This software is copyright (c) 2018 by Ricardo Signes.
211
212 This is free software; you can redistribute it and/or modify it under
213 the same terms as the Perl 5 programming language system itself.
214
215
216
217perl v5.32.0 2020-07-28 Software::License(3)