COPYING revision 207753
1285809Sscottl
2285809SscottlXZ Utils Licensing
3285809Sscottl==================
4285809Sscottl
5285809Sscottl    Different licenses apply to different files in this package. Here
6285809Sscottl    is a rough summary of which licenses apply to which parts of this
7285809Sscottl    package (but check the individual files to be sure!):
8285809Sscottl
9285809Sscottl      - liblzma is in the public domain.
10285809Sscottl
11285809Sscottl      - xz, xzdec, and lzmadec command line tools are in the public
12285809Sscottl        domain unless GNU getopt_long had to be compiled and linked
13285809Sscottl        in from the lib directory. The getopt_long code is under
14285809Sscottl        GNU LGPLv2.1+.
15285809Sscottl
16285809Sscottl      - The scripts to grep, diff, and view compressed files have been
17285809Sscottl        adapted from gzip. These scripts and their documentation are
18285809Sscottl        under GNU GPLv2+.
19285809Sscottl
20285809Sscottl      - All the documentation in the doc directory and most of the
21285809Sscottl        XZ Utils specific documentation files in other directories
22285809Sscottl        are in the public domain.
23285809Sscottl
24285809Sscottl      - Translated messages are in the public domain.
25285809Sscottl
26285809Sscottl      - The build system contains public domain files, and files that
27285809Sscottl        are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
28285809Sscottl        in the binaries being built.
29285809Sscottl
30285809Sscottl      - Test files and test code in the tests directory, and debugging
31285809Sscottl        utilities in the debug directory are in the public domain.
32285809Sscottl
33285809Sscottl      - The extra directory may contain public domain files, and files
34285809Sscottl        that are under various free software licenses.
35285809Sscottl
36285809Sscottl    You can do whatever you want with the files that have been put into
37285809Sscottl    the public domain. If you find public domain legally problematic,
38285809Sscottl    take the previous sentence as a license grant. If you still find
39285809Sscottl    the lack of copyright legally problematic, you have too many
40285809Sscottl    lawyers.
41285809Sscottl
42285809Sscottl    As usual, this software is provided "as is", without any warranty.
43285809Sscottl
44285809Sscottl    If you copy significant amounts of public domain code from XZ Utils
45285809Sscottl    into your project, acknowledging this somewhere in your software is
46285809Sscottl    polite (especially if it is proprietary, non-free software), but
47285809Sscottl    naturally it is not legally required. Here is an example of a good
48285809Sscottl    notice to put into "about box" or into documentation:
49285809Sscottl
50285809Sscottl        This software includes code from XZ Utils <http://tukaani.org/xz/>.
51285809Sscottl
52285809Sscottl    The following license texts are included in the following files:
53285809Sscottl      - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
54285809Sscottl      - COPYING.GPLv2: GNU General Public License version 2
55285809Sscottl      - COPYING.GPLv3: GNU General Public License version 3
56285809Sscottl
57285809Sscottl    Note that the toolchain (compiler, linker etc.) may add some code
58285809Sscottl    pieces that are copyrighted. Thus, it is possible that e.g. liblzma
59285809Sscottl    binary wouldn't actually be in the public domain in its entirety
60285809Sscottl    even though it contains no copyrighted code from the XZ Utils source
61285809Sscottl    package.
62285809Sscottl
63285809Sscottl    If you have questions, don't hesitate to ask the author(s) for more
64285809Sscottl    information.
65285809Sscottl
66285809Sscottl