1207753Smm
2207753SmmXZ Utils Licensing
3207753Smm==================
4207753Smm
5207753Smm    Different licenses apply to different files in this package. Here
6207753Smm    is a rough summary of which licenses apply to which parts of this
7207753Smm    package (but check the individual files to be sure!):
8207753Smm
9207753Smm      - liblzma is in the public domain.
10207753Smm
11207753Smm      - xz, xzdec, and lzmadec command line tools are in the public
12207753Smm        domain unless GNU getopt_long had to be compiled and linked
13207753Smm        in from the lib directory. The getopt_long code is under
14207753Smm        GNU LGPLv2.1+.
15207753Smm
16207753Smm      - The scripts to grep, diff, and view compressed files have been
17207753Smm        adapted from gzip. These scripts and their documentation are
18207753Smm        under GNU GPLv2+.
19207753Smm
20207753Smm      - All the documentation in the doc directory and most of the
21207753Smm        XZ Utils specific documentation files in other directories
22207753Smm        are in the public domain.
23207753Smm
24207753Smm      - Translated messages are in the public domain.
25207753Smm
26207753Smm      - The build system contains public domain files, and files that
27207753Smm        are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
28207753Smm        in the binaries being built.
29207753Smm
30207753Smm      - Test files and test code in the tests directory, and debugging
31207753Smm        utilities in the debug directory are in the public domain.
32207753Smm
33207753Smm      - The extra directory may contain public domain files, and files
34207753Smm        that are under various free software licenses.
35207753Smm
36207753Smm    You can do whatever you want with the files that have been put into
37207753Smm    the public domain. If you find public domain legally problematic,
38207753Smm    take the previous sentence as a license grant. If you still find
39207753Smm    the lack of copyright legally problematic, you have too many
40207753Smm    lawyers.
41207753Smm
42207753Smm    As usual, this software is provided "as is", without any warranty.
43207753Smm
44207753Smm    If you copy significant amounts of public domain code from XZ Utils
45207753Smm    into your project, acknowledging this somewhere in your software is
46207753Smm    polite (especially if it is proprietary, non-free software), but
47207753Smm    naturally it is not legally required. Here is an example of a good
48207753Smm    notice to put into "about box" or into documentation:
49207753Smm
50334607Sdelphij        This software includes code from XZ Utils <https://tukaani.org/xz/>.
51207753Smm
52207753Smm    The following license texts are included in the following files:
53207753Smm      - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
54207753Smm      - COPYING.GPLv2: GNU General Public License version 2
55207753Smm      - COPYING.GPLv3: GNU General Public License version 3
56207753Smm
57207753Smm    Note that the toolchain (compiler, linker etc.) may add some code
58207753Smm    pieces that are copyrighted. Thus, it is possible that e.g. liblzma
59207753Smm    binary wouldn't actually be in the public domain in its entirety
60207753Smm    even though it contains no copyrighted code from the XZ Utils source
61207753Smm    package.
62207753Smm
63207753Smm    If you have questions, don't hesitate to ask the author(s) for more
64207753Smm    information.
65207753Smm
66