Blame SOURCES/COPYING

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