Blame SOURCES/COPYING

5cdac4
RPM and it's source code are covered under two separate licenses. 
5cdac4
5cdac4
The entire code base may be distributed under the terms of the GNU General
5cdac4
Public License (GPL), which appears immediately below.  Alternatively,
5cdac4
all of the source code in the lib subdirectory of the RPM source code
5cdac4
distribution as well as any code derived from that code may instead be
5cdac4
distributed under the GNU Library General Public License (LGPL), at the
5cdac4
choice of the distributor. The complete text of the LGPL appears
5cdac4
at the bottom of this file.
5cdac4
5cdac4
This alternatively is allowed to enable applications to be linked against
5cdac4
the RPM library (commonly called librpm) without forcing such applications
5cdac4
to be distributed under the GPL. 
5cdac4
5cdac4
Any questions regarding the licensing of RPM should be addressed to
5cdac4
rpm-maint@lists.rpm.org
5cdac4
5cdac4
---------------------------------------------------------------------------
5cdac4
5cdac4
		    GNU GENERAL PUBLIC LICENSE
5cdac4
		       Version 2, June 1991
5cdac4
5cdac4
 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5cdac4
                          675 Mass Ave, Cambridge, MA 02139, USA
5cdac4
 Everyone is permitted to copy and distribute verbatim copies
5cdac4
 of this license document, but changing it is not allowed.
5cdac4
5cdac4
			    Preamble
5cdac4
5cdac4
  The licenses for most software are designed to take away your
5cdac4
freedom to share and change it.  By contrast, the GNU General Public
5cdac4
License is intended to guarantee your freedom to share and change free
5cdac4
software--to make sure the software is free for all its users.  This
5cdac4
General Public License applies to most of the Free Software
5cdac4
Foundation's software and to any other program whose authors commit to
5cdac4
using it.  (Some other Free Software Foundation software is covered by
5cdac4
the GNU Library General Public License instead.)  You can apply it to
5cdac4
your programs, too.
5cdac4
5cdac4
  When we speak of free software, we are referring to freedom, not
5cdac4
price.  Our General Public Licenses are designed to make sure that you
5cdac4
have the freedom to distribute copies of free software (and charge for
5cdac4
this service if you wish), that you receive source code or can get it
5cdac4
if you want it, that you can change the software or use pieces of it
5cdac4
in new free programs; and that you know you can do these things.
5cdac4
5cdac4
  To protect your rights, we need to make restrictions that forbid
5cdac4
anyone to deny you these rights or to ask you to surrender the rights.
5cdac4
These restrictions translate to certain responsibilities for you if you
5cdac4
distribute copies of the software, or if you modify it.
5cdac4
5cdac4
  For example, if you distribute copies of such a program, whether
5cdac4
gratis or for a fee, you must give the recipients all the rights that
5cdac4
you have.  You must make sure that they, too, receive or can get the
5cdac4
source code.  And you must show them these terms so they know their
5cdac4
rights.
5cdac4
5cdac4
  We protect your rights with two steps: (1) copyright the software, and
5cdac4
(2) offer you this license which gives you legal permission to copy,
5cdac4
distribute and/or modify the software.
5cdac4
5cdac4
  Also, for each author's protection and ours, we want to make certain
5cdac4
that everyone understands that there is no warranty for this free
5cdac4
software.  If the software is modified by someone else and passed on, we
5cdac4
want its recipients to know that what they have is not the original, so
5cdac4
that any problems introduced by others will not reflect on the original
5cdac4
authors' reputations.
5cdac4
5cdac4
  Finally, any free program is threatened constantly by software
5cdac4
patents.  We wish to avoid the danger that redistributors of a free
5cdac4
program will individually obtain patent licenses, in effect making the
5cdac4
program proprietary.  To prevent this, we have made it clear that any
5cdac4
patent must be licensed for everyone's free use or not licensed at all.
5cdac4
5cdac4
  The precise terms and conditions for copying, distribution and
5cdac4
modification follow.
5cdac4

5cdac4
		    GNU GENERAL PUBLIC LICENSE
5cdac4
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5cdac4
5cdac4
  0. This License applies to any program or other work which contains
5cdac4
a notice placed by the copyright holder saying it may be distributed
5cdac4
under the terms of this General Public License.  The "Program", below,
5cdac4
refers to any such program or work, and a "work based on the Program"
5cdac4
means either the Program or any derivative work under copyright law:
5cdac4
that is to say, a work containing the Program or a portion of it,
5cdac4
either verbatim or with modifications and/or translated into another
5cdac4
language.  (Hereinafter, translation is included without limitation in
5cdac4
the term "modification".)  Each licensee is addressed as "you".
5cdac4
5cdac4
Activities other than copying, distribution and modification are not
5cdac4
covered by this License; they are outside its scope.  The act of
5cdac4
running the Program is not restricted, and the output from the Program
5cdac4
is covered only if its contents constitute a work based on the
5cdac4
Program (independent of having been made by running the Program).
5cdac4
Whether that is true depends on what the Program does.
5cdac4
5cdac4
  1. You may copy and distribute verbatim copies of the Program's
5cdac4
source code as you receive it, in any medium, provided that you
5cdac4
conspicuously and appropriately publish on each copy an appropriate
5cdac4
copyright notice and disclaimer of warranty; keep intact all the
5cdac4
notices that refer to this License and to the absence of any warranty;
5cdac4
and give any other recipients of the Program a copy of this License
5cdac4
along with the Program.
5cdac4
5cdac4
You may charge a fee for the physical act of transferring a copy, and
5cdac4
you may at your option offer warranty protection in exchange for a fee.
5cdac4
5cdac4
  2. You may modify your copy or copies of the Program or any portion
5cdac4
of it, thus forming a work based on the Program, and copy and
5cdac4
distribute such modifications or work under the terms of Section 1
5cdac4
above, provided that you also meet all of these conditions:
5cdac4
5cdac4
    a) You must cause the modified files to carry prominent notices
5cdac4
    stating that you changed the files and the date of any change.
5cdac4
5cdac4
    b) You must cause any work that you distribute or publish, that in
5cdac4
    whole or in part contains or is derived from the Program or any
5cdac4
    part thereof, to be licensed as a whole at no charge to all third
5cdac4
    parties under the terms of this License.
5cdac4
5cdac4
    c) If the modified program normally reads commands interactively
5cdac4
    when run, you must cause it, when started running for such
5cdac4
    interactive use in the most ordinary way, to print or display an
5cdac4
    announcement including an appropriate copyright notice and a
5cdac4
    notice that there is no warranty (or else, saying that you provide
5cdac4
    a warranty) and that users may redistribute the program under
5cdac4
    these conditions, and telling the user how to view a copy of this
5cdac4
    License.  (Exception: if the Program itself is interactive but
5cdac4
    does not normally print such an announcement, your work based on
5cdac4
    the Program is not required to print an announcement.)
5cdac4

5cdac4
These requirements apply to the modified work as a whole.  If
5cdac4
identifiable sections of that work are not derived from the Program,
5cdac4
and can be reasonably considered independent and separate works in
5cdac4
themselves, then this License, and its terms, do not apply to those
5cdac4
sections when you distribute them as separate works.  But when you
5cdac4
distribute the same sections as part of a whole which is a work based
5cdac4
on the Program, the distribution of the whole must be on the terms of
5cdac4
this License, whose permissions for other licensees extend to the
5cdac4
entire whole, and thus to each and every part regardless of who wrote it.
5cdac4
5cdac4
Thus, it is not the intent of this section to claim rights or contest
5cdac4
your rights to work written entirely by you; rather, the intent is to
5cdac4
exercise the right to control the distribution of derivative or
5cdac4
collective works based on the Program.
5cdac4
5cdac4
In addition, mere aggregation of another work not based on the Program
5cdac4
with the Program (or with a work based on the Program) on a volume of
5cdac4
a storage or distribution medium does not bring the other work under
5cdac4
the scope of this License.
5cdac4
5cdac4
  3. You may copy and distribute the Program (or a work based on it,
5cdac4
under Section 2) in object code or executable form under the terms of
5cdac4
Sections 1 and 2 above provided that you also do one of the following:
5cdac4
5cdac4
    a) Accompany it with the complete corresponding machine-readable
5cdac4
    source code, which must be distributed under the terms of Sections
5cdac4
    1 and 2 above on a medium customarily used for software interchange; or,
5cdac4
5cdac4
    b) Accompany it with a written offer, valid for at least three
5cdac4
    years, to give any third party, for a charge no more than your
5cdac4
    cost of physically performing source distribution, a complete
5cdac4
    machine-readable copy of the corresponding source code, to be
5cdac4
    distributed under the terms of Sections 1 and 2 above on a medium
5cdac4
    customarily used for software interchange; or,
5cdac4
5cdac4
    c) Accompany it with the information you received as to the offer
5cdac4
    to distribute corresponding source code.  (This alternative is
5cdac4
    allowed only for noncommercial distribution and only if you
5cdac4
    received the program in object code or executable form with such
5cdac4
    an offer, in accord with Subsection b above.)
5cdac4
5cdac4
The source code for a work means the preferred form of the work for
5cdac4
making modifications to it.  For an executable work, complete source
5cdac4
code means all the source code for all modules it contains, plus any
5cdac4
associated interface definition files, plus the scripts used to
5cdac4
control compilation and installation of the executable.  However, as a
5cdac4
special exception, the source code distributed need not include
5cdac4
anything that is normally distributed (in either source or binary
5cdac4
form) with the major components (compiler, kernel, and so on) of the
5cdac4
operating system on which the executable runs, unless that component
5cdac4
itself accompanies the executable.
5cdac4
5cdac4
If distribution of executable or object code is made by offering
5cdac4
access to copy from a designated place, then offering equivalent
5cdac4
access to copy the source code from the same place counts as
5cdac4
distribution of the source code, even though third parties are not
5cdac4
compelled to copy the source along with the object code.
5cdac4

5cdac4
  4. You may not copy, modify, sublicense, or distribute the Program
5cdac4
except as expressly provided under this License.  Any attempt
5cdac4
otherwise to copy, modify, sublicense or distribute the Program is
5cdac4
void, and will automatically terminate your rights under this License.
5cdac4
However, parties who have received copies, or rights, from you under
5cdac4
this License will not have their licenses terminated so long as such
5cdac4
parties remain in full compliance.
5cdac4
5cdac4
  5. You are not required to accept this License, since you have not
5cdac4
signed it.  However, nothing else grants you permission to modify or
5cdac4
distribute the Program or its derivative works.  These actions are
5cdac4
prohibited by law if you do not accept this License.  Therefore, by
5cdac4
modifying or distributing the Program (or any work based on the
5cdac4
Program), you indicate your acceptance of this License to do so, and
5cdac4
all its terms and conditions for copying, distributing or modifying
5cdac4
the Program or works based on it.
5cdac4
5cdac4
  6. Each time you redistribute the Program (or any work based on the
5cdac4
Program), the recipient automatically receives a license from the
5cdac4
original licensor to copy, distribute or modify the Program subject to
5cdac4
these terms and conditions.  You may not impose any further
5cdac4
restrictions on the recipients' exercise of the rights granted herein.
5cdac4
You are not responsible for enforcing compliance by third parties to
5cdac4
this License.
5cdac4
5cdac4
  7. If, as a consequence of a court judgment or allegation of patent
5cdac4
infringement or for any other reason (not limited to patent issues),
5cdac4
conditions are imposed on you (whether by court order, agreement or
5cdac4
otherwise) that contradict the conditions of this License, they do not
5cdac4
excuse you from the conditions of this License.  If you cannot
5cdac4
distribute so as to satisfy simultaneously your obligations under this
5cdac4
License and any other pertinent obligations, then as a consequence you
5cdac4
may not distribute the Program at all.  For example, if a patent
5cdac4
license would not permit royalty-free redistribution of the Program by
5cdac4
all those who receive copies directly or indirectly through you, then
5cdac4
the only way you could satisfy both it and this License would be to
5cdac4
refrain entirely from distribution of the Program.
5cdac4
5cdac4
If any portion of this section is held invalid or unenforceable under
5cdac4
any particular circumstance, the balance of the section is intended to
5cdac4
apply and the section as a whole is intended to apply in other
5cdac4
circumstances.
5cdac4
5cdac4
It is not the purpose of this section to induce you to infringe any
5cdac4
patents or other property right claims or to contest validity of any
5cdac4
such claims; this section has the sole purpose of protecting the
5cdac4
integrity of the free software distribution system, which is
5cdac4
implemented by public license practices.  Many people have made
5cdac4
generous contributions to the wide range of software distributed
5cdac4
through that system in reliance on consistent application of that
5cdac4
system; it is up to the author/donor to decide if he or she is willing
5cdac4
to distribute software through any other system and a licensee cannot
5cdac4
impose that choice.
5cdac4
5cdac4
This section is intended to make thoroughly clear what is believed to
5cdac4
be a consequence of the rest of this License.
5cdac4

5cdac4
  8. If the distribution and/or use of the Program is restricted in
5cdac4
certain countries either by patents or by copyrighted interfaces, the
5cdac4
original copyright holder who places the Program under this License
5cdac4
may add an explicit geographical distribution limitation excluding
5cdac4
those countries, so that distribution is permitted only in or among
5cdac4
countries not thus excluded.  In such case, this License incorporates
5cdac4
the limitation as if written in the body of this License.
5cdac4
5cdac4
  9. The Free Software Foundation may publish revised and/or new versions
5cdac4
of the General Public License from time to time.  Such new versions will
5cdac4
be similar in spirit to the present version, but may differ in detail to
5cdac4
address new problems or concerns.
5cdac4
5cdac4
Each version is given a distinguishing version number.  If the Program
5cdac4
specifies a version number of this License which applies to it and "any
5cdac4
later version", you have the option of following the terms and conditions
5cdac4
either of that version or of any later version published by the Free
5cdac4
Software Foundation.  If the Program does not specify a version number of
5cdac4
this License, you may choose any version ever published by the Free Software
5cdac4
Foundation.
5cdac4
5cdac4
  10. If you wish to incorporate parts of the Program into other free
5cdac4
programs whose distribution conditions are different, write to the author
5cdac4
to ask for permission.  For software which is copyrighted by the Free
5cdac4
Software Foundation, write to the Free Software Foundation; we sometimes
5cdac4
make exceptions for this.  Our decision will be guided by the two goals
5cdac4
of preserving the free status of all derivatives of our free software and
5cdac4
of promoting the sharing and reuse of software generally.
5cdac4
5cdac4
			    NO WARRANTY
5cdac4
5cdac4
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
5cdac4
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
5cdac4
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
5cdac4
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
5cdac4
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
5cdac4
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
5cdac4
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
5cdac4
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
5cdac4
REPAIR OR CORRECTION.
5cdac4
5cdac4
  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
5cdac4
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
5cdac4
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
5cdac4
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
5cdac4
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
5cdac4
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
5cdac4
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
5cdac4
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
5cdac4
POSSIBILITY OF SUCH DAMAGES.
5cdac4
5cdac4
		     END OF TERMS AND CONDITIONS
5cdac4

5cdac4
	    How to Apply These Terms to Your New Programs
5cdac4
5cdac4
  If you develop a new program, and you want it to be of the greatest
5cdac4
possible use to the public, the best way to achieve this is to make it
5cdac4
free software which everyone can redistribute and change under these terms.
5cdac4
5cdac4
  To do so, attach the following notices to the program.  It is safest
5cdac4
to attach them to the start of each source file to most effectively
5cdac4
convey the exclusion of warranty; and each file should have at least
5cdac4
the "copyright" line and a pointer to where the full notice is found.
5cdac4
5cdac4
    <one line to give the program's name and a brief idea of what it does.>
5cdac4
    Copyright (C) 19yy  <name of author>
5cdac4
5cdac4
    This program is free software; you can redistribute it and/or modify
5cdac4
    it under the terms of the GNU General Public License as published by
5cdac4
    the Free Software Foundation; either version 2 of the License, or
5cdac4
    (at your option) any later version.
5cdac4
5cdac4
    This program is distributed in the hope that it will be useful,
5cdac4
    but WITHOUT ANY WARRANTY; without even the implied warranty of
5cdac4
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5cdac4
    GNU General Public License for more details.
5cdac4
5cdac4
    You should have received a copy of the GNU General Public License
5cdac4
    along with this program; if not, write to the Free Software
5cdac4
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
5cdac4
5cdac4
Also add information on how to contact you by electronic and paper mail.
5cdac4
5cdac4
If the program is interactive, make it output a short notice like this
5cdac4
when it starts in an interactive mode:
5cdac4
5cdac4
    Gnomovision version 69, Copyright (C) 19yy name of author
5cdac4
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
5cdac4
    This is free software, and you are welcome to redistribute it
5cdac4
    under certain conditions; type `show c' for details.
5cdac4
5cdac4
The hypothetical commands `show w' and `show c' should show the appropriate
5cdac4
parts of the General Public License.  Of course, the commands you use may
5cdac4
be called something other than `show w' and `show c'; they could even be
5cdac4
mouse-clicks or menu items--whatever suits your program.
5cdac4
5cdac4
You should also get your employer (if you work as a programmer) or your
5cdac4
school, if any, to sign a "copyright disclaimer" for the program, if
5cdac4
necessary.  Here is a sample; alter the names:
5cdac4
5cdac4
  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
5cdac4
  `Gnomovision' (which makes passes at compilers) written by James Hacker.
5cdac4
5cdac4
  <signature of Ty Coon>, 1 April 1989
5cdac4
  Ty Coon, President of Vice
5cdac4
5cdac4
This General Public License does not permit incorporating your program into
5cdac4
proprietary programs.  If your program is a subroutine library, you may
5cdac4
consider it more useful to permit linking proprietary applications with the
5cdac4
library.  If this is what you want to do, use the GNU Library General
5cdac4
Public License instead of this License.
5cdac4
5cdac4
---------------------------------------------------------------------------
5cdac4
5cdac4
		  GNU LIBRARY GENERAL PUBLIC LICENSE
5cdac4
		       Version 2, June 1991
5cdac4
5cdac4
 Copyright (C) 1991 Free Software Foundation, Inc.
5cdac4
                    675 Mass Ave, Cambridge, MA 02139, USA
5cdac4
 Everyone is permitted to copy and distribute verbatim copies
5cdac4
 of this license document, but changing it is not allowed.
5cdac4
5cdac4
[This is the first released version of the library GPL.  It is
5cdac4
 numbered 2 because it goes with version 2 of the ordinary GPL.]
5cdac4
5cdac4
			    Preamble
5cdac4
5cdac4
  The licenses for most software are designed to take away your
5cdac4
freedom to share and change it.  By contrast, the GNU General Public
5cdac4
Licenses are intended to guarantee your freedom to share and change
5cdac4
free software--to make sure the software is free for all its users.
5cdac4
5cdac4
  This license, the Library General Public License, applies to some
5cdac4
specially designated Free Software Foundation software, and to any
5cdac4
other libraries whose authors decide to use it.  You can use it for
5cdac4
your libraries, too.
5cdac4
5cdac4
  When we speak of free software, we are referring to freedom, not
5cdac4
price.  Our General Public Licenses are designed to make sure that you
5cdac4
have the freedom to distribute copies of free software (and charge for
5cdac4
this service if you wish), that you receive source code or can get it
5cdac4
if you want it, that you can change the software or use pieces of it
5cdac4
in new free programs; and that you know you can do these things.
5cdac4
5cdac4
  To protect your rights, we need to make restrictions that forbid
5cdac4
anyone to deny you these rights or to ask you to surrender the rights.
5cdac4
These restrictions translate to certain responsibilities for you if
5cdac4
you distribute copies of the library, or if you modify it.
5cdac4
5cdac4
  For example, if you distribute copies of the library, whether gratis
5cdac4
or for a fee, you must give the recipients all the rights that we gave
5cdac4
you.  You must make sure that they, too, receive or can get the source
5cdac4
code.  If you link a program with the library, you must provide
5cdac4
complete object files to the recipients so that they can relink them
5cdac4
with the library, after making changes to the library and recompiling
5cdac4
it.  And you must show them these terms so they know their rights.
5cdac4
5cdac4
  Our method of protecting your rights has two steps: (1) copyright
5cdac4
the library, and (2) offer you this license which gives you legal
5cdac4
permission to copy, distribute and/or modify the library.
5cdac4
5cdac4
  Also, for each distributor's protection, we want to make certain
5cdac4
that everyone understands that there is no warranty for this free
5cdac4
library.  If the library is modified by someone else and passed on, we
5cdac4
want its recipients to know that what they have is not the original
5cdac4
version, so that any problems introduced by others will not reflect on
5cdac4
the original authors' reputations.
5cdac4

5cdac4
  Finally, any free program is threatened constantly by software
5cdac4
patents.  We wish to avoid the danger that companies distributing free
5cdac4
software will individually obtain patent licenses, thus in effect
5cdac4
transforming the program into proprietary software.  To prevent this,
5cdac4
we have made it clear that any patent must be licensed for everyone's
5cdac4
free use or not licensed at all.
5cdac4
5cdac4
  Most GNU software, including some libraries, is covered by the ordinary
5cdac4
GNU General Public License, which was designed for utility programs.  This
5cdac4
license, the GNU Library General Public License, applies to certain
5cdac4
designated libraries.  This license is quite different from the ordinary
5cdac4
one; be sure to read it in full, and don't assume that anything in it is
5cdac4
the same as in the ordinary license.
5cdac4
5cdac4
  The reason we have a separate public license for some libraries is that
5cdac4
they blur the distinction we usually make between modifying or adding to a
5cdac4
program and simply using it.  Linking a program with a library, without
5cdac4
changing the library, is in some sense simply using the library, and is
5cdac4
analogous to running a utility program or application program.  However, in
5cdac4
a textual and legal sense, the linked executable is a combined work, a
5cdac4
derivative of the original library, and the ordinary General Public License
5cdac4
treats it as such.
5cdac4
5cdac4
  Because of this blurred distinction, using the ordinary General
5cdac4
Public License for libraries did not effectively promote software
5cdac4
sharing, because most developers did not use the libraries.  We
5cdac4
concluded that weaker conditions might promote sharing better.
5cdac4
5cdac4
  However, unrestricted linking of non-free programs would deprive the
5cdac4
users of those programs of all benefit from the free status of the
5cdac4
libraries themselves.  This Library General Public License is intended to
5cdac4
permit developers of non-free programs to use free libraries, while
5cdac4
preserving your freedom as a user of such programs to change the free
5cdac4
libraries that are incorporated in them.  (We have not seen how to achieve
5cdac4
this as regards changes in header files, but we have achieved it as regards
5cdac4
changes in the actual functions of the Library.)  The hope is that this
5cdac4
will lead to faster development of free libraries.
5cdac4
5cdac4
  The precise terms and conditions for copying, distribution and
5cdac4
modification follow.  Pay close attention to the difference between a
5cdac4
"work based on the library" and a "work that uses the library".  The
5cdac4
former contains code derived from the library, while the latter only
5cdac4
works together with the library.
5cdac4
5cdac4
  Note that it is possible for a library to be covered by the ordinary
5cdac4
General Public License rather than by this special one.
5cdac4

5cdac4
		  GNU LIBRARY GENERAL PUBLIC LICENSE
5cdac4
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5cdac4
5cdac4
  0. This License Agreement applies to any software library which
5cdac4
contains a notice placed by the copyright holder or other authorized
5cdac4
party saying it may be distributed under the terms of this Library
5cdac4
General Public License (also called "this License").  Each licensee is
5cdac4
addressed as "you".
5cdac4
5cdac4
  A "library" means a collection of software functions and/or data
5cdac4
prepared so as to be conveniently linked with application programs
5cdac4
(which use some of those functions and data) to form executables.
5cdac4
5cdac4
  The "Library", below, refers to any such software library or work
5cdac4
which has been distributed under these terms.  A "work based on the
5cdac4
Library" means either the Library or any derivative work under
5cdac4
copyright law: that is to say, a work containing the Library or a
5cdac4
portion of it, either verbatim or with modifications and/or translated
5cdac4
straightforwardly into another language.  (Hereinafter, translation is
5cdac4
included without limitation in the term "modification".)
5cdac4
5cdac4
  "Source code" for a work means the preferred form of the work for
5cdac4
making modifications to it.  For a library, complete source code means
5cdac4
all the source code for all modules it contains, plus any associated
5cdac4
interface definition files, plus the scripts used to control compilation
5cdac4
and installation of the library.
5cdac4
5cdac4
  Activities other than copying, distribution and modification are not
5cdac4
covered by this License; they are outside its scope.  The act of
5cdac4
running a program using the Library is not restricted, and output from
5cdac4
such a program is covered only if its contents constitute a work based
5cdac4
on the Library (independent of the use of the Library in a tool for
5cdac4
writing it).  Whether that is true depends on what the Library does
5cdac4
and what the program that uses the Library does.
5cdac4
  
5cdac4
  1. You may copy and distribute verbatim copies of the Library's
5cdac4
complete source code as you receive it, in any medium, provided that
5cdac4
you conspicuously and appropriately publish on each copy an
5cdac4
appropriate copyright notice and disclaimer of warranty; keep intact
5cdac4
all the notices that refer to this License and to the absence of any
5cdac4
warranty; and distribute a copy of this License along with the
5cdac4
Library.
5cdac4
5cdac4
  You may charge a fee for the physical act of transferring a copy,
5cdac4
and you may at your option offer warranty protection in exchange for a
5cdac4
fee.
5cdac4

5cdac4
  2. You may modify your copy or copies of the Library or any portion
5cdac4
of it, thus forming a work based on the Library, and copy and
5cdac4
distribute such modifications or work under the terms of Section 1
5cdac4
above, provided that you also meet all of these conditions:
5cdac4
5cdac4
    a) The modified work must itself be a software library.
5cdac4
5cdac4
    b) You must cause the files modified to carry prominent notices
5cdac4
    stating that you changed the files and the date of any change.
5cdac4
5cdac4
    c) You must cause the whole of the work to be licensed at no
5cdac4
    charge to all third parties under the terms of this License.
5cdac4
5cdac4
    d) If a facility in the modified Library refers to a function or a
5cdac4
    table of data to be supplied by an application program that uses
5cdac4
    the facility, other than as an argument passed when the facility
5cdac4
    is invoked, then you must make a good faith effort to ensure that,
5cdac4
    in the event an application does not supply such function or
5cdac4
    table, the facility still operates, and performs whatever part of
5cdac4
    its purpose remains meaningful.
5cdac4
5cdac4
    (For example, a function in a library to compute square roots has
5cdac4
    a purpose that is entirely well-defined independent of the
5cdac4
    application.  Therefore, Subsection 2d requires that any
5cdac4
    application-supplied function or table used by this function must
5cdac4
    be optional: if the application does not supply it, the square
5cdac4
    root function must still compute square roots.)
5cdac4
5cdac4
These requirements apply to the modified work as a whole.  If
5cdac4
identifiable sections of that work are not derived from the Library,
5cdac4
and can be reasonably considered independent and separate works in
5cdac4
themselves, then this License, and its terms, do not apply to those
5cdac4
sections when you distribute them as separate works.  But when you
5cdac4
distribute the same sections as part of a whole which is a work based
5cdac4
on the Library, the distribution of the whole must be on the terms of
5cdac4
this License, whose permissions for other licensees extend to the
5cdac4
entire whole, and thus to each and every part regardless of who wrote
5cdac4
it.
5cdac4
5cdac4
Thus, it is not the intent of this section to claim rights or contest
5cdac4
your rights to work written entirely by you; rather, the intent is to
5cdac4
exercise the right to control the distribution of derivative or
5cdac4
collective works based on the Library.
5cdac4
5cdac4
In addition, mere aggregation of another work not based on the Library
5cdac4
with the Library (or with a work based on the Library) on a volume of
5cdac4
a storage or distribution medium does not bring the other work under
5cdac4
the scope of this License.
5cdac4
5cdac4
  3. You may opt to apply the terms of the ordinary GNU General Public
5cdac4
License instead of this License to a given copy of the Library.  To do
5cdac4
this, you must alter all the notices that refer to this License, so
5cdac4
that they refer to the ordinary GNU General Public License, version 2,
5cdac4
instead of to this License.  (If a newer version than version 2 of the
5cdac4
ordinary GNU General Public License has appeared, then you can specify
5cdac4
that version instead if you wish.)  Do not make any other change in
5cdac4
these notices.
5cdac4

5cdac4
  Once this change is made in a given copy, it is irreversible for
5cdac4
that copy, so the ordinary GNU General Public License applies to all
5cdac4
subsequent copies and derivative works made from that copy.
5cdac4
5cdac4
  This option is useful when you wish to copy part of the code of
5cdac4
the Library into a program that is not a library.
5cdac4
5cdac4
  4. You may copy and distribute the Library (or a portion or
5cdac4
derivative of it, under Section 2) in object code or executable form
5cdac4
under the terms of Sections 1 and 2 above provided that you accompany
5cdac4
it with the complete corresponding machine-readable source code, which
5cdac4
must be distributed under the terms of Sections 1 and 2 above on a
5cdac4
medium customarily used for software interchange.
5cdac4
5cdac4
  If distribution of object code is made by offering access to copy
5cdac4
from a designated place, then offering equivalent access to copy the
5cdac4
source code from the same place satisfies the requirement to
5cdac4
distribute the source code, even though third parties are not
5cdac4
compelled to copy the source along with the object code.
5cdac4
5cdac4
  5. A program that contains no derivative of any portion of the
5cdac4
Library, but is designed to work with the Library by being compiled or
5cdac4
linked with it, is called a "work that uses the Library".  Such a
5cdac4
work, in isolation, is not a derivative work of the Library, and
5cdac4
therefore falls outside the scope of this License.
5cdac4
5cdac4
  However, linking a "work that uses the Library" with the Library
5cdac4
creates an executable that is a derivative of the Library (because it
5cdac4
contains portions of the Library), rather than a "work that uses the
5cdac4
library".  The executable is therefore covered by this License.
5cdac4
Section 6 states terms for distribution of such executables.
5cdac4
5cdac4
  When a "work that uses the Library" uses material from a header file
5cdac4
that is part of the Library, the object code for the work may be a
5cdac4
derivative work of the Library even though the source code is not.
5cdac4
Whether this is true is especially significant if the work can be
5cdac4
linked without the Library, or if the work is itself a library.  The
5cdac4
threshold for this to be true is not precisely defined by law.
5cdac4
5cdac4
  If such an object file uses only numerical parameters, data
5cdac4
structure layouts and accessors, and small macros and small inline
5cdac4
functions (ten lines or less in length), then the use of the object
5cdac4
file is unrestricted, regardless of whether it is legally a derivative
5cdac4
work.  (Executables containing this object code plus portions of the
5cdac4
Library will still fall under Section 6.)
5cdac4
5cdac4
  Otherwise, if the work is a derivative of the Library, you may
5cdac4
distribute the object code for the work under the terms of Section 6.
5cdac4
Any executables containing that work also fall under Section 6,
5cdac4
whether or not they are linked directly with the Library itself.
5cdac4

5cdac4
  6. As an exception to the Sections above, you may also compile or
5cdac4
link a "work that uses the Library" with the Library to produce a
5cdac4
work containing portions of the Library, and distribute that work
5cdac4
under terms of your choice, provided that the terms permit
5cdac4
modification of the work for the customer's own use and reverse
5cdac4
engineering for debugging such modifications.
5cdac4
5cdac4
  You must give prominent notice with each copy of the work that the
5cdac4
Library is used in it and that the Library and its use are covered by
5cdac4
this License.  You must supply a copy of this License.  If the work
5cdac4
during execution displays copyright notices, you must include the
5cdac4
copyright notice for the Library among them, as well as a reference
5cdac4
directing the user to the copy of this License.  Also, you must do one
5cdac4
of these things:
5cdac4
5cdac4
    a) Accompany the work with the complete corresponding
5cdac4
    machine-readable source code for the Library including whatever
5cdac4
    changes were used in the work (which must be distributed under
5cdac4
    Sections 1 and 2 above); and, if the work is an executable linked
5cdac4
    with the Library, with the complete machine-readable "work that
5cdac4
    uses the Library", as object code and/or source code, so that the
5cdac4
    user can modify the Library and then relink to produce a modified
5cdac4
    executable containing the modified Library.  (It is understood
5cdac4
    that the user who changes the contents of definitions files in the
5cdac4
    Library will not necessarily be able to recompile the application
5cdac4
    to use the modified definitions.)
5cdac4
5cdac4
    b) Accompany the work with a written offer, valid for at
5cdac4
    least three years, to give the same user the materials
5cdac4
    specified in Subsection 6a, above, for a charge no more
5cdac4
    than the cost of performing this distribution.
5cdac4
5cdac4
    c) If distribution of the work is made by offering access to copy
5cdac4
    from a designated place, offer equivalent access to copy the above
5cdac4
    specified materials from the same place.
5cdac4
5cdac4
    d) Verify that the user has already received a copy of these
5cdac4
    materials or that you have already sent this user a copy.
5cdac4
5cdac4
  For an executable, the required form of the "work that uses the
5cdac4
Library" must include any data and utility programs needed for
5cdac4
reproducing the executable from it.  However, as a special exception,
5cdac4
the source code distributed need not include anything that is normally
5cdac4
distributed (in either source or binary form) with the major
5cdac4
components (compiler, kernel, and so on) of the operating system on
5cdac4
which the executable runs, unless that component itself accompanies
5cdac4
the executable.
5cdac4
5cdac4
  It may happen that this requirement contradicts the license
5cdac4
restrictions of other proprietary libraries that do not normally
5cdac4
accompany the operating system.  Such a contradiction means you cannot
5cdac4
use both them and the Library together in an executable that you
5cdac4
distribute.
5cdac4

5cdac4
  7. You may place library facilities that are a work based on the
5cdac4
Library side-by-side in a single library together with other library
5cdac4
facilities not covered by this License, and distribute such a combined
5cdac4
library, provided that the separate distribution of the work based on
5cdac4
the Library and of the other library facilities is otherwise
5cdac4
permitted, and provided that you do these two things:
5cdac4
5cdac4
    a) Accompany the combined library with a copy of the same work
5cdac4
    based on the Library, uncombined with any other library
5cdac4
    facilities.  This must be distributed under the terms of the
5cdac4
    Sections above.
5cdac4
5cdac4
    b) Give prominent notice with the combined library of the fact
5cdac4
    that part of it is a work based on the Library, and explaining
5cdac4
    where to find the accompanying uncombined form of the same work.
5cdac4
5cdac4
  8. You may not copy, modify, sublicense, link with, or distribute
5cdac4
the Library except as expressly provided under this License.  Any
5cdac4
attempt otherwise to copy, modify, sublicense, link with, or
5cdac4
distribute the Library is void, and will automatically terminate your
5cdac4
rights under this License.  However, parties who have received copies,
5cdac4
or rights, from you under this License will not have their licenses
5cdac4
terminated so long as such parties remain in full compliance.
5cdac4
5cdac4
  9. You are not required to accept this License, since you have not
5cdac4
signed it.  However, nothing else grants you permission to modify or
5cdac4
distribute the Library or its derivative works.  These actions are
5cdac4
prohibited by law if you do not accept this License.  Therefore, by
5cdac4
modifying or distributing the Library (or any work based on the
5cdac4
Library), you indicate your acceptance of this License to do so, and
5cdac4
all its terms and conditions for copying, distributing or modifying
5cdac4
the Library or works based on it.
5cdac4
5cdac4
  10. Each time you redistribute the Library (or any work based on the
5cdac4
Library), the recipient automatically receives a license from the
5cdac4
original licensor to copy, distribute, link with or modify the Library
5cdac4
subject to these terms and conditions.  You may not impose any further
5cdac4
restrictions on the recipients' exercise of the rights granted herein.
5cdac4
You are not responsible for enforcing compliance by third parties to
5cdac4
this License.
5cdac4

5cdac4
  11. If, as a consequence of a court judgment or allegation of patent
5cdac4
infringement or for any other reason (not limited to patent issues),
5cdac4
conditions are imposed on you (whether by court order, agreement or
5cdac4
otherwise) that contradict the conditions of this License, they do not
5cdac4
excuse you from the conditions of this License.  If you cannot
5cdac4
distribute so as to satisfy simultaneously your obligations under this
5cdac4
License and any other pertinent obligations, then as a consequence you
5cdac4
may not distribute the Library at all.  For example, if a patent
5cdac4
license would not permit royalty-free redistribution of the Library by
5cdac4
all those who receive copies directly or indirectly through you, then
5cdac4
the only way you could satisfy both it and this License would be to
5cdac4
refrain entirely from distribution of the Library.
5cdac4
5cdac4
If any portion of this section is held invalid or unenforceable under any
5cdac4
particular circumstance, the balance of the section is intended to apply,
5cdac4
and the section as a whole is intended to apply in other circumstances.
5cdac4
5cdac4
It is not the purpose of this section to induce you to infringe any
5cdac4
patents or other property right claims or to contest validity of any
5cdac4
such claims; this section has the sole purpose of protecting the
5cdac4
integrity of the free software distribution system which is
5cdac4
implemented by public license practices.  Many people have made
5cdac4
generous contributions to the wide range of software distributed
5cdac4
through that system in reliance on consistent application of that
5cdac4
system; it is up to the author/donor to decide if he or she is willing
5cdac4
to distribute software through any other system and a licensee cannot
5cdac4
impose that choice.
5cdac4
5cdac4
This section is intended to make thoroughly clear what is believed to
5cdac4
be a consequence of the rest of this License.
5cdac4
5cdac4
  12. If the distribution and/or use of the Library is restricted in
5cdac4
certain countries either by patents or by copyrighted interfaces, the
5cdac4
original copyright holder who places the Library under this License may add
5cdac4
an explicit geographical distribution limitation excluding those countries,
5cdac4
so that distribution is permitted only in or among countries not thus
5cdac4
excluded.  In such case, this License incorporates the limitation as if
5cdac4
written in the body of this License.
5cdac4
5cdac4
  13. The Free Software Foundation may publish revised and/or new
5cdac4
versions of the Library General Public License from time to time.
5cdac4
Such new versions will be similar in spirit to the present version,
5cdac4
but may differ in detail to address new problems or concerns.
5cdac4
5cdac4
Each version is given a distinguishing version number.  If the Library
5cdac4
specifies a version number of this License which applies to it and
5cdac4
"any later version", you have the option of following the terms and
5cdac4
conditions either of that version or of any later version published by
5cdac4
the Free Software Foundation.  If the Library does not specify a
5cdac4
license version number, you may choose any version ever published by
5cdac4
the Free Software Foundation.
5cdac4

5cdac4
  14. If you wish to incorporate parts of the Library into other free
5cdac4
programs whose distribution conditions are incompatible with these,
5cdac4
write to the author to ask for permission.  For software which is
5cdac4
copyrighted by the Free Software Foundation, write to the Free
5cdac4
Software Foundation; we sometimes make exceptions for this.  Our
5cdac4
decision will be guided by the two goals of preserving the free status
5cdac4
of all derivatives of our free software and of promoting the sharing
5cdac4
and reuse of software generally.
5cdac4
5cdac4
			    NO WARRANTY
5cdac4
5cdac4
  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
5cdac4
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
5cdac4
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
5cdac4
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
5cdac4
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
5cdac4
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
5cdac4
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
5cdac4
LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
5cdac4
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
5cdac4
5cdac4
  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
5cdac4
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
5cdac4
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
5cdac4
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
5cdac4
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
5cdac4
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
5cdac4
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
5cdac4
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
5cdac4
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
5cdac4
DAMAGES.
5cdac4
5cdac4
		     END OF TERMS AND CONDITIONS
5cdac4

5cdac4
     Appendix: How to Apply These Terms to Your New Libraries
5cdac4
5cdac4
  If you develop a new library, and you want it to be of the greatest
5cdac4
possible use to the public, we recommend making it free software that
5cdac4
everyone can redistribute and change.  You can do so by permitting
5cdac4
redistribution under these terms (or, alternatively, under the terms of the
5cdac4
ordinary General Public License).
5cdac4
5cdac4
  To apply these terms, attach the following notices to the library.  It is
5cdac4
safest to attach them to the start of each source file to most effectively
5cdac4
convey the exclusion of warranty; and each file should have at least the
5cdac4
"copyright" line and a pointer to where the full notice is found.
5cdac4
5cdac4
    <one line to give the library's name and a brief idea of what it does.>
5cdac4
    Copyright (C) <year>  <name of author>
5cdac4
5cdac4
    This library is free software; you can redistribute it and/or
5cdac4
    modify it under the terms of the GNU Library General Public
5cdac4
    License as published by the Free Software Foundation; either
5cdac4
    version 2 of the License, or (at your option) any later version.
5cdac4
5cdac4
    This library is distributed in the hope that it will be useful,
5cdac4
    but WITHOUT ANY WARRANTY; without even the implied warranty of
5cdac4
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5cdac4
    Library General Public License for more details.
5cdac4
5cdac4
    You should have received a copy of the GNU Library General Public
5cdac4
    License along with this library; if not, write to the Free
5cdac4
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
5cdac4
5cdac4
Also add information on how to contact you by electronic and paper mail.
5cdac4
5cdac4
You should also get your employer (if you work as a programmer) or your
5cdac4
school, if any, to sign a "copyright disclaimer" for the library, if
5cdac4
necessary.  Here is a sample; alter the names:
5cdac4
5cdac4
  Yoyodyne, Inc., hereby disclaims all copyright interest in the
5cdac4
  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
5cdac4
5cdac4
  <signature of Ty Coon>, 1 April 1990
5cdac4
  Ty Coon, President of Vice
5cdac4
5cdac4
That's all there is to it!