181ad8388SMartin Matuska 281ad8388SMartin MatuskaXZ Utils Licensing 381ad8388SMartin Matuska================== 481ad8388SMartin Matuska 581ad8388SMartin Matuska Different licenses apply to different files in this package. Here 63b35e7eeSXin LI is a summary of which licenses apply to which parts of this package: 781ad8388SMartin Matuska 83b35e7eeSXin LI - liblzma is under the BSD Zero Clause License (0BSD). 981ad8388SMartin Matuska 103b35e7eeSXin LI - The command line tools xz, xzdec, lzmadec, and lzmainfo are 113b35e7eeSXin LI under 0BSD except that, on systems that don't have a usable 123b35e7eeSXin LI getopt_long, GNU getopt_long is compiled and linked in from the 133b35e7eeSXin LI 'lib' directory. The getopt_long code is under GNU LGPLv2.1+. 1481ad8388SMartin Matuska 1581ad8388SMartin Matuska - The scripts to grep, diff, and view compressed files have been 163b35e7eeSXin LI adapted from GNU gzip. These scripts (xzgrep, xzdiff, xzless, 173b35e7eeSXin LI and xzmore) are under GNU GPLv2+. The man pages of the scripts 183b35e7eeSXin LI are under 0BSD; they aren't based on the man pages of GNU gzip. 1981ad8388SMartin Matuska 203b35e7eeSXin LI - Most of the XZ Utils specific documentation that is in 213b35e7eeSXin LI plain text files (like README, INSTALL, PACKAGERS, NEWS, 223b35e7eeSXin LI and ChangeLog) are under 0BSD unless stated otherwise in 233b35e7eeSXin LI the file itself. The files xz-file-format.txt and 243b35e7eeSXin LI lzma-file-format.xt are in the public domain but may 253b35e7eeSXin LI be distributed under the terms of 0BSD too. 2681ad8388SMartin Matuska 273b35e7eeSXin LI - Translated messages and man pages are under 0BSD except that 283b35e7eeSXin LI some old translations are in the public domain. 29c917796cSXin LI 303b35e7eeSXin LI - Test files and test code in the 'tests' directory, and 313b35e7eeSXin LI debugging utilities in the 'debug' directory are under 323b35e7eeSXin LI the BSD Zero Clause License (0BSD). 33c917796cSXin LI 343b35e7eeSXin LI - The GNU Autotools based build system contains files that are 353b35e7eeSXin LI under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses. 363b35e7eeSXin LI These files don't affect the licensing of the binaries being 373b35e7eeSXin LI built. 3881ad8388SMartin Matuska 393b35e7eeSXin LI - The 'extra' directory contains files that are under various 403b35e7eeSXin LI free software licenses. These aren't built or installed as 413b35e7eeSXin LI part of XZ Utils. 4281ad8388SMartin Matuska 43*128836d3SXin LI The following command may be helpful in finding per-file license 44*128836d3SXin LI information. It works on xz.git and on a clean file tree extracted 45*128836d3SXin LI from a release tarball. 46*128836d3SXin LI 47*128836d3SXin LI sh build-aux/license-check.sh -v 48*128836d3SXin LI 493b35e7eeSXin LI For the files under the BSD Zero Clause License (0BSD), if 503b35e7eeSXin LI a copyright notice is needed, the following is sufficient: 5181ad8388SMartin Matuska 523b35e7eeSXin LI Copyright (C) The XZ Utils authors and contributors 5381ad8388SMartin Matuska 543b35e7eeSXin LI If you copy significant amounts of 0BSD-licensed code from XZ Utils 5581ad8388SMartin Matuska into your project, acknowledging this somewhere in your software is 5681ad8388SMartin Matuska polite (especially if it is proprietary, non-free software), but 573b35e7eeSXin LI it is not legally required by the license terms. Here is an example 583b35e7eeSXin LI of a good notice to put into "about box" or into documentation: 5981ad8388SMartin Matuska 602f9cd13dSXin LI This software includes code from XZ Utils <https://tukaani.org/xz/>. 6181ad8388SMartin Matuska 6281ad8388SMartin Matuska The following license texts are included in the following files: 633b35e7eeSXin LI - COPYING.0BSD: BSD Zero Clause License 6481ad8388SMartin Matuska - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1 6581ad8388SMartin Matuska - COPYING.GPLv2: GNU General Public License version 2 6681ad8388SMartin Matuska - COPYING.GPLv3: GNU General Public License version 3 6781ad8388SMartin Matuska 683b35e7eeSXin LI If you have questions, don't hesitate to ask for more information. 693b35e7eeSXin LI The contact information is in the README file. 7081ad8388SMartin Matuska 71