LGPL-2.1 27 KB

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