LGPL-2.1 27 KB

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