Blame SOURCES/COPYING

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