Blame SOURCES/COPYING

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