File Coverage

blib/lib/Software/License/LGPL_2_1.pm
Criterion Covered Total %
statement 13 14 92.8
branch n/a
condition n/a
subroutine 7 8 87.5
pod 5 5 100.0
total 25 27 92.5


line stmt bran cond sub pod time code
1 10     10   15162 use strict;
  10         17  
  10         215  
2 10     10   48 use warnings;
  10         16  
  10         353  
3             $Software::License::LGPL_2_1::VERSION = '0.104002';
4             use parent 'Software::License';
5 10     10   44 # ABSTRACT: GNU Lesser General Public License, Version 2.1
  10         17  
  10         61  
6              
7              
8 23     23 1 150 1;
9 0     0 1 0  
10 43     43 1 123 =pod
11 42     42 1 86  
12 43     43 1 92 =encoding UTF-8
13              
14             =head1 NAME
15              
16             Software::License::LGPL_2_1 - GNU Lesser General Public License, Version 2.1
17              
18             =head1 VERSION
19              
20             version 0.104002
21              
22             =head1 PERL VERSION
23              
24             This module is part of CPAN toolchain, or is treated as such. As such, it
25             follows the agreement of the Perl Toolchain Gang to require no newer version of
26             perl than v5.8.1. This version may change by agreement of the Toolchain Gang,
27             but for now is governed by the L<Lancaster
28             Consensus|https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
29             of 2013.
30              
31             =head1 AUTHOR
32              
33             Ricardo Signes <rjbs@semiotic.systems>
34              
35             =head1 COPYRIGHT AND LICENSE
36              
37             This software is copyright (c) 2022 by Ricardo Signes.
38              
39             This is free software; you can redistribute it and/or modify it under
40             the same terms as the Perl 5 programming language system itself.
41              
42             =cut
43              
44             __LICENSE__
45             The GNU Lesser General Public License (LGPL)
46             Version 2.1, February 1999
47              
48             (The master copy of this license lives on the GNU website.)
49              
50             Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59
51             51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
52              
53             Everyone is permitted to copy and distribute verbatim copies
54             of this license document, but changing it is not allowed.
55              
56             [This is the first released version of the Lesser GPL. It also
57             counts as the successor of the GNU Library Public License,
58             version 2, hence the version number 2.1.]
59              
60             Preamble
61              
62             The licenses for most software are designed to take away
63             your freedom to share and change it. By contrast, the GNU
64             General Public Licenses are intended to guarantee your
65             freedom to share and change free software--to make sure the
66             software is free for all its users.
67              
68             This license, the Lesser General Public License, applies to
69             some specially designated software packages--typically
70             libraries--of the Free Software Foundation and other authors
71             who decide to use it. You can use it too, but we suggest you
72             first think carefully about whether this license or the ordinary
73             General Public License is the better strategy to use in any
74             particular case, based on the explanations below.
75              
76             When we speak of free software, we are referring to freedom
77             of use, not price. Our General Public Licenses are designed
78             to make sure that you have the freedom to distribute copies
79             of free software (and charge for this service if you wish); that
80             you receive source code or can get it if you want it; that you
81             can change the software and use pieces of it in new free
82             programs; and that you are informed that you can do these
83             things.
84              
85             To protect your rights, we need to make restrictions that
86             forbid distributors to deny you these rights or to ask you to
87             surrender these rights. These restrictions translate to certain
88             responsibilities for you if you distribute copies of the library
89             or if you modify it.
90              
91             For example, if you distribute copies of the library, whether
92             gratis or for a fee, you must give the recipients all the rights
93             that we gave you. You must make sure that they, too,
94             receive or can get the source code. If you link other code
95             with the library, you must provide complete object files to the
96             recipients, so that they can relink them with the library after
97             making changes to the library and recompiling it. And you
98             must show them these terms so they know their rights.
99              
100             We protect your rights with a two-step method: (1) we
101             copyright the library, and (2) we offer you this license, which
102             gives you legal permission to copy, distribute and/or modify
103             the library.
104              
105             To protect each distributor, we want to make it very clear
106             that there is no warranty for the free library. Also, if the
107             library is modified by someone else and passed on, the
108             recipients should know that what they have is not the original
109             version, so that the original author's reputation will not be
110             affected by problems that might be introduced by others.
111              
112             Finally, software patents pose a constant threat to the
113             existence of any free program. We wish to make sure that a
114             company cannot effectively restrict the users of a free
115             program by obtaining a restrictive license from a patent
116             holder. Therefore, we insist that any patent license obtained
117             for a version of the library must be consistent with the full
118             freedom of use specified in this license.
119              
120             Most GNU software, including some libraries, is covered by
121             the ordinary GNU General Public License. This license, the
122             GNU Lesser General Public License, applies to certain
123             designated libraries, and is quite different from the ordinary
124             General Public License. We use this license for certain
125             libraries in order to permit linking those libraries into non-free
126             programs.
127              
128             When a program is linked with a library, whether statically or
129             using a shared library, the combination of the two is legally
130             speaking a combined work, a derivative of the original library.
131             The ordinary General Public License therefore permits such
132             linking only if the entire combination fits its criteria of
133             freedom. The Lesser General Public License permits more
134             lax criteria for linking other code with the library.
135              
136             We call this license the "Lesser" General Public License
137             because it does Less to protect the user's freedom than the
138             ordinary General Public License. It also provides other free
139             software developers Less of an advantage over competing
140             non-free programs. These disadvantages are the reason we
141             use the ordinary General Public License for many libraries.
142             However, the Lesser license provides advantages in certain
143             special circumstances.
144              
145             For example, on rare occasions, there may be a special
146             need to encourage the widest possible use of a certain
147             library, so that it becomes a de-facto standard. To achieve
148             this, non-free programs must be allowed to use the library. A
149             more frequent case is that a free library does the same job
150             as widely used non-free libraries. In this case, there is little
151             to gain by limiting the free library to free software only, so we
152             use the Lesser General Public License.
153              
154             In other cases, permission to use a particular library in
155             non-free programs enables a greater number of people to use
156             a large body of free software. For example, permission to
157             use the GNU C Library in non-free programs enables many
158             more people to use the whole GNU operating system, as
159             well as its variant, the GNU/Linux operating system.
160              
161             Although the Lesser General Public License is Less
162             protective of the users' freedom, it does ensure that the user
163             of a program that is linked with the Library has the freedom
164             and the wherewithal to run that program using a modified
165             version of the Library.
166              
167             The precise terms and conditions for copying, distribution
168             and modification follow. Pay close attention to the difference
169             between a "work based on the library" and a "work that uses
170             the library". The former contains code derived from the
171             library, whereas the latter must be combined with the library
172             in order to run.
173              
174             TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION
175             AND MODIFICATION
176              
177             0. This License Agreement applies to any software library or
178             other program which contains a notice placed by the
179             copyright holder or other authorized party saying it may be
180             distributed under the terms of this Lesser General Public
181             License (also called "this License"). Each licensee is
182             addressed as "you".
183              
184             A "library" means a collection of software functions and/or
185             data prepared so as to be conveniently linked with
186             application programs (which use some of those functions
187             and data) to form executables.
188              
189             The "Library", below, refers to any such software library or
190             work which has been distributed under these terms. A "work
191             based on the Library" means either the Library or any
192             derivative work under copyright law: that is to say, a work
193             containing the Library or a portion of it, either verbatim or with
194             modifications and/or translated straightforwardly into another
195             language. (Hereinafter, translation is included without
196             limitation in the term "modification".)
197              
198             "Source code" for a work means the preferred form of the
199             work for making modifications to it. For a library, complete
200             source code means all the source code for all modules it
201             contains, plus any associated interface definition files, plus
202             the scripts used to control compilation and installation of the
203             library.
204              
205             Activities other than copying, distribution and modification
206             are not covered by this License; they are outside its scope.
207             The act of running a program using the Library is not
208             restricted, and output from such a program is covered only if
209             its contents constitute a work based on the Library
210             (independent of the use of the Library in a tool for writing it).
211             Whether that is true depends on what the Library does and
212             what the program that uses the Library does.
213              
214             1. You may copy and distribute verbatim copies of the
215             Library's complete source code as you receive it, in any
216             medium, provided that you conspicuously and appropriately
217             publish on each copy an appropriate copyright notice and
218             disclaimer of warranty; keep intact all the notices that refer
219             to this License and to the absence of any warranty; and
220             distribute a copy of this License along with the Library.
221              
222             You may charge a fee for the physical act of transferring a
223             copy, and you may at your option offer warranty protection in
224             exchange for a fee.
225              
226             2. You may modify your copy or copies of the Library or any
227             portion of it, thus forming a work based on the Library, and
228             copy and distribute such modifications or work under the
229             terms of Section 1 above, provided that you also meet all of
230             these conditions:
231              
232             a) The modified work must itself be a software
233             library.
234             b) You must cause the files modified to carry
235             prominent notices stating that you changed the
236             files and the date of any change.
237             c) You must cause the whole of the work to be
238             licensed at no charge to all third parties under
239             the terms of this License.
240             d) If a facility in the modified Library refers to a
241             function or a table of data to be supplied by an
242             application program that uses the facility, other
243             than as an argument passed when the facility
244             is invoked, then you must make a good faith
245             effort to ensure that, in the event an application
246             does not supply such function or table, the
247             facility still operates, and performs whatever
248             part of its purpose remains meaningful.
249              
250             (For example, a function in a library to
251             compute square roots has a purpose that is
252             entirely well-defined independent of the
253             application. Therefore, Subsection 2d requires
254             that any application-supplied function or table
255             used by this function must be optional: if the
256             application does not supply it, the square root
257             function must still compute square roots.)
258              
259             These requirements apply to the modified work
260             as a whole. If identifiable sections of that work
261             are not derived from the Library, and can be
262             reasonably considered independent and
263             separate works in themselves, then this
264             License, and its terms, do not apply to those
265             sections when you distribute them as separate
266             works. But when you distribute the same
267             sections as part of a whole which is a work
268             based on the Library, the distribution of the
269             whole must be on the terms of this License,
270             whose permissions for other licensees extend
271             to the entire whole, and thus to each and every
272             part regardless of who wrote it.
273              
274             Thus, it is not the intent of this section to claim
275             rights or contest your rights to work written
276             entirely by you; rather, the intent is to exercise
277             the right to control the distribution of derivative
278             or collective works based on the Library.
279              
280             In addition, mere aggregation of another work
281             not based on the Library with the Library (or
282             with a work based on the Library) on a volume
283             of a storage or distribution medium does not
284             bring the other work under the scope of this
285             License.
286              
287             3. You may opt to apply the terms of the ordinary GNU
288             General Public License instead of this License to a given
289             copy of the Library. To do this, you must alter all the notices
290             that refer to this License, so that they refer to the ordinary
291             GNU General Public License, version 2, instead of to this
292             License. (If a newer version than version 2 of the ordinary
293             GNU General Public License has appeared, then you can
294             specify that version instead if you wish.) Do not make any
295             other change in these notices.
296              
297             Once this change is made in a given copy, it is irreversible
298             for that copy, so the ordinary GNU General Public License
299             applies to all subsequent copies and derivative works made
300             from that copy.
301              
302             This option is useful when you wish to copy part of the code
303             of the Library into a program that is not a library.
304              
305             4. You may copy and distribute the Library (or a portion or
306             derivative of it, under Section 2) in object code or executable
307             form under the terms of Sections 1 and 2 above provided that
308             you accompany it with the complete corresponding
309             machine-readable source code, which must be distributed
310             under the terms of Sections 1 and 2 above on a medium
311             customarily used for software interchange.
312              
313             If distribution of object code is made by offering access to
314             copy from a designated place, then offering equivalent
315             access to copy the source code from the same place
316             satisfies the requirement to distribute the source code, even
317             though third parties are not compelled to copy the source
318             along with the object code.
319              
320             5. A program that contains no derivative of any portion of the
321             Library, but is designed to work with the Library by being
322             compiled or linked with it, is called a "work that uses the
323             Library". Such a work, in isolation, is not a derivative work of
324             the Library, and therefore falls outside the scope of this
325             License.
326              
327             However, linking a "work that uses the Library" with the
328             Library creates an executable that is a derivative of the
329             Library (because it contains portions of the Library), rather
330             than a "work that uses the library". The executable is
331             therefore covered by this License. Section 6 states terms for
332             distribution of such executables.
333              
334             When a "work that uses the Library" uses material from a
335             header file that is part of the Library, the object code for the
336             work may be a derivative work of the Library even though the
337             source code is not. Whether this is true is especially
338             significant if the work can be linked without the Library, or if
339             the work is itself a library. The threshold for this to be true is
340             not precisely defined by law.
341              
342             If such an object file uses only numerical parameters, data
343             structure layouts and accessors, and small macros and
344             small inline functions (ten lines or less in length), then the
345             use of the object file is unrestricted, regardless of whether it
346             is legally a derivative work. (Executables containing this
347             object code plus portions of the Library will still fall under
348             Section 6.)
349              
350             Otherwise, if the work is a derivative of the Library, you may
351             distribute the object code for the work under the terms of
352             Section 6. Any executables containing that work also fall
353             under Section 6, whether or not they are linked directly with
354             the Library itself.
355              
356             6. As an exception to the Sections above, you may also
357             combine or link a "work that uses the Library" with the
358             Library to produce a work containing portions of the Library,
359             and distribute that work under terms of your choice, provided
360             that the terms permit modification of the work for the
361             customer's own use and reverse engineering for debugging
362             such modifications.
363              
364             You must give prominent notice with each copy of the work
365             that the Library is used in it and that the Library and its use
366             are covered by this License. You must supply a copy of this
367             License. If the work during execution displays copyright
368             notices, you must include the copyright notice for the Library
369             among them, as well as a reference directing the user to the
370             copy of this License. Also, you must do one of these things:
371              
372             a) Accompany the work with the complete
373             corresponding machine-readable source code
374             for the Library including whatever changes were
375             used in the work (which must be distributed
376             under Sections 1 and 2 above); and, if the work
377             is an executable linked with the Library, with
378             the complete machine-readable "work that
379             uses the Library", as object code and/or
380             source code, so that the user can modify the
381             Library and then relink to produce a modified
382             executable containing the modified Library. (It
383             is understood that the user who changes the
384             contents of definitions files in the Library will
385             not necessarily be able to recompile the
386             application to use the modified definitions.)
387              
388             b) Use a suitable shared library mechanism for
389             linking with the Library. A suitable mechanism
390             is one that (1) uses at run time a copy of the
391             library already present on the user's computer
392             system, rather than copying library functions
393             into the executable, and (2) will operate
394             properly with a modified version of the library, if
395             the user installs one, as long as the modified
396             version is interface-compatible with the version
397             that the work was made with.
398              
399             c) Accompany the work with a written offer,
400             valid for at least three years, to give the same
401             user the materials specified in Subsection 6a,
402             above, for a charge no more than the cost of
403             performing this distribution.
404              
405             d) If distribution of the work is made by offering
406             access to copy from a designated place, offer
407             equivalent access to copy the above specified
408             materials from the same place.
409              
410             e) Verify that the user has already received a
411             copy of these materials or that you have
412             already sent this user a copy.
413              
414             For an executable, the required form of the "work that uses
415             the Library" must include any data and utility programs
416             needed for reproducing the executable from it. However, as a
417             special exception, the materials to be distributed need not
418             include anything that is normally distributed (in either source
419             or binary form) with the major components (compiler, kernel,
420             and so on) of the operating system on which the executable
421             runs, unless that component itself accompanies the
422             executable.
423              
424             It may happen that this requirement contradicts the license
425             restrictions of other proprietary libraries that do not normally
426             accompany the operating system. Such a contradiction
427             means you cannot use both them and the Library together in
428             an executable that you distribute.
429              
430             7. You may place library facilities that are a work based on
431             the Library side-by-side in a single library together with other
432             library facilities not covered by this License, and distribute
433             such a combined library, provided that the separate
434             distribution of the work based on the Library and of the other
435             library facilities is otherwise permitted, and provided that you
436             do these two things:
437              
438             a) Accompany the combined library with a
439             copy of the same work based on the Library,
440             uncombined with any other library facilities.
441             This must be distributed under the terms of the
442             Sections above.
443              
444             b) Give prominent notice with the combined
445             library of the fact that part of it is a work based
446             on the Library, and explaining where to find the
447             accompanying uncombined form of the same
448             work.
449              
450             8. You may not copy, modify, sublicense, link with, or
451             distribute the Library except as expressly provided under this
452             License. Any attempt otherwise to copy, modify, sublicense,
453             link with, or distribute the Library is void, and will
454             automatically terminate your rights under this License.
455             However, parties who have received copies, or rights, from
456             you under this License will not have their licenses terminated
457             so long as such parties remain in full compliance.
458              
459             9. You are not required to accept this License, since you
460             have not signed it. However, nothing else grants you
461             permission to modify or distribute the Library or its derivative
462             works. These actions are prohibited by law if you do not
463             accept this License. Therefore, by modifying or distributing
464             the Library (or any work based on the Library), you indicate
465             your acceptance of this License to do so, and all its terms
466             and conditions for copying, distributing or modifying the
467             Library or works based on it.
468              
469             10. Each time you redistribute the Library (or any work
470             based on the Library), the recipient automatically receives a
471             license from the original licensor to copy, distribute, link with
472             or modify the Library subject to these terms and conditions.
473             You may not impose any further restrictions on the
474             recipients' exercise of the rights granted herein. You are not
475             responsible for enforcing compliance by third parties with this
476             License.
477              
478             11. If, as a consequence of a court judgment or allegation of
479             patent infringement or for any other reason (not limited to
480             patent issues), conditions are imposed on you (whether by
481             court order, agreement or otherwise) that contradict the
482             conditions of this License, they do not excuse you from the
483             conditions of this License. If you cannot distribute so as to
484             satisfy simultaneously your obligations under this License
485             and any other pertinent obligations, then as a consequence
486             you may not distribute the Library at all. For example, if a
487             patent license would not permit royalty-free redistribution of
488             the Library by all those who receive copies directly or
489             indirectly through you, then the only way you could satisfy
490             both it and this License would be to refrain entirely from
491             distribution of the Library.
492              
493             If any portion of this section is held invalid or unenforceable
494             under any particular circumstance, the balance of the
495             section is intended to apply, and the section as a whole is
496             intended to apply in other circumstances.
497              
498             It is not the purpose of this section to induce you to infringe
499             any patents or other property right claims or to contest
500             validity of any such claims; this section has the sole purpose
501             of protecting the integrity of the free software distribution
502             system which is implemented by public license practices.
503             Many people have made generous contributions to the wide
504             range of software distributed through that system in reliance
505             on consistent application of that system; it is up to the
506             author/donor to decide if he or she is willing to distribute
507             software through any other system and a licensee cannot
508             impose that choice.
509              
510             This section is intended to make thoroughly clear what is
511             believed to be a consequence of the rest of this License.
512              
513             12. If the distribution and/or use of the Library is restricted in
514             certain countries either by patents or by copyrighted
515             interfaces, the original copyright holder who places the
516             Library under this License may add an explicit geographical
517             distribution limitation excluding those countries, so that
518             distribution is permitted only in or among countries not thus
519             excluded. In such case, this License incorporates the
520             limitation as if written in the body of this License.
521              
522             13. The Free Software Foundation may publish revised
523             and/or new versions of the Lesser General Public License
524             from time to time. Such new versions will be similar in spirit
525             to the present version, but may differ in detail to address new
526             problems or concerns.
527              
528             Each version is given a distinguishing version number. If the
529             Library specifies a version number of this License which
530             applies to it and "any later version", you have the option of
531             following the terms and conditions either of that version or of
532             any later version published by the Free Software Foundation.
533             If the Library does not specify a license version number, you
534             may choose any version ever published by the Free Software
535             Foundation.
536              
537             14. If you wish to incorporate parts of the Library into other
538             free programs whose distribution conditions are incompatible
539             with these, write to the author to ask for permission. For
540             software which is copyrighted by the Free Software
541             Foundation, write to the Free Software Foundation; we
542             sometimes make exceptions for this. Our decision will be
543             guided by the two goals of preserving the free status of all
544             derivatives of our free software and of promoting the sharing
545             and reuse of software generally.
546              
547             NO WARRANTY
548              
549             15. BECAUSE THE LIBRARY IS LICENSED FREE OF
550             CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY,
551             TO THE EXTENT PERMITTED BY APPLICABLE LAW.
552             EXCEPT WHEN OTHERWISE STATED IN WRITING THE
553             COPYRIGHT HOLDERS AND/OR OTHER PARTIES
554             PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY
555             OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
556             INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
557             WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
558             A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
559             QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
560             YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU
561             ASSUME THE COST OF ALL NECESSARY SERVICING,
562             REPAIR OR CORRECTION.
563              
564             16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE
565             LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
566             HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
567             AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED
568             ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING
569             ANY GENERAL, SPECIAL, INCIDENTAL OR
570             CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
571             OR INABILITY TO USE THE LIBRARY (INCLUDING BUT
572             NOT LIMITED TO LOSS OF DATA OR DATA BEING
573             RENDERED INACCURATE OR LOSSES SUSTAINED BY
574             YOU OR THIRD PARTIES OR A FAILURE OF THE
575             LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE),
576             EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
577             ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
578              
579             END OF TERMS AND CONDITIONS