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