Blame SOURCES/COPYING

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