Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: MeTTa Library Pack
Source: https://github.com/MesTTo/MeTTa-Library-Pack
License: Apache-2.0
Comment: Purpose: the licence of each file in this pack that is not the
 pack's own code alone, with the licence texts shipped beside it: the native
 halves under */support and the code they vendor, and every vendored or
 adapted Prolog and MeTTa file. tools/host-notices/notices.py in MesTTo/MeTTa
 reads it when the WebAssembly host links the halves each support/static.cmake
 names, and refuses a compiled file no paragraph here names, so the map has no
 `Files: *`: a new file in a half needs its own line before a host can ship
 it. extensions/python/tools/librarylicences.py in MesTTo/MeTTa derives each
 library's (package license) row from it: Apache-2.0, the pack's licence for
 its own code, and the licence of every paragraph naming a file of the
 library or a _support file its lib.metta imports; it refuses a file under a
 vendor/ directory that no paragraph names. tests/checks/check_notices_coverage.py
 in MesTTo/MeTTa holds every file of the halves the WebAssembly host stages to
 a paragraph, or to being a licence text one names.

Files: */support/*
Copyright: (C) MesTTo
License: Apache-2.0
License-File: LICENSE NOTICE
Comment: The halves' own code, under the pack's licence; NOTICE carries PeTTa's
 MIT notice, which the pack's LICENSE and NOTICE travel with.

Files: */vendor/VENDOR.md */vendor/README.md */vendor/SHA256SUMS
Copyright: (C) MesTTo
License: Apache-2.0
License-File: LICENSE NOTICE
Comment: Each vendor/ directory's own account of what it holds, where it came
 from and its checksums, written for the pack rather than vendored.

Files: lib_compression/vendor/config.h
Copyright: (C) MesTTo
License: Apache-2.0
License-File: LICENSE NOTICE

Files: lib_string/support/string_native.cpp
Upstream-Name: lib_string's native half
Copyright: (C) MesTTo
           (C) Marshall Clow
           (C) University of Amsterdam
           (C) VU University Amsterdam
           (C) CWI, Amsterdam
           (C) SWI-Prolog Solutions b.v.
License: Apache-2.0 AND BSL-1.0 AND BSD-2-Clause
License-File: LICENSE NOTICE lib_string/vendor/BOOST-LICENSE lib_string/vendor/SWI-LICENSE
Comment: The adapter carries Boost 1.89.0's Knuth-Morris-Pratt search (Copyright
 (c) Marshall Clow 2010-2012) and SWI-Prolog 10.1.13's character-set splitting
 from src/pl-string.c, as lib_string/vendor/VENDOR.md records.

Files: lib_string/vendor/rapidfuzz/*
Upstream-Name: RapidFuzz C++
Upstream-Version: 3.3.4 (82662f3623b3ca3645e543f677fc32fb8bd1fb95)
Source: https://github.com/rapidfuzz/rapidfuzz-cpp/tree/82662f3623b3ca3645e543f677fc32fb8bd1fb95
Copyright: (C) Max Bachmann
License: MIT
License-File: lib_string/vendor/RAPIDFUZZ-LICENSE

Files: lib_string/vendor/isub.hpp
Upstream-Name: ISub, adapted from SWI-Prolog packages-nlp's isub.c
Upstream-Version: dd69ae95342d7a0429a0f8bcc7deab2bd514570e
Source: https://github.com/SWI-Prolog/packages-nlp/blob/dd69ae95342d7a0429a0f8bcc7deab2bd514570e/isub.c
Copyright: (C) 2004-2011 National and Technical University of Athens
License: LGPL-2.0-or-later
License-File: lib_string/vendor/LGPL-2.0

Files: lib_compression/vendor/archive4pl.c
Upstream-Name: SWI-Prolog packages-archive's archive4pl.c
Upstream-Version: 13a3f4af8f8219e10faf4895ce9fb189bc6aaefd
Source: https://github.com/SWI-Prolog/packages-archive/tree/13a3f4af8f8219e10faf4895ce9fb189bc6aaefd
Copyright: (C) VU University Amsterdam
           (C) SWI-Prolog Solutions b.v.
License: BSD-2-Clause
License-File: lib_compression/vendor/SWI-LICENSE

Files: lib_compression/vendor/archive.h lib_compression/vendor/archive_entry.h
       lib_compression/vendor/archive_read_support_format_zip.c
       lib_compression/vendor/libarchive-3.8.5.tar.gz
Upstream-Name: libarchive
Upstream-Version: 3.8.5 (dd897a78c662a2c7a003e7ec158cea7909557bee)
Source: https://github.com/libarchive/libarchive/tree/dd897a78c662a2c7a003e7ec158cea7909557bee
Copyright: (C) Tim Kientzle
           (C) Martin Matuska
License: BSD-2-Clause
License-File: lib_compression/vendor/LIBARCHIVE-COPYING
Comment: LIBARCHIVE-COPYING is COPYING from libarchive-3.8.5.tar.gz, whose
 account of the snapshot's other licences it carries.

Files: lib_compression/vendor/lz4/*
Upstream-Name: LZ4's public headers
Upstream-Version: 1.10.0 (ebb370ca83af193212df4dcbadcc5d87bc0de2f0)
Source: https://github.com/lz4/lz4/tree/ebb370ca83af193212df4dcbadcc5d87bc0de2f0
Copyright: (C) Yann Collet
License: BSD-2-Clause
License-File: lib_compression/vendor/LZ4-LICENSE

Files: lib_regex/vendor/pcre4pl.c
Upstream-Name: SWI-Prolog packages-pcre's pcre4pl.c
Upstream-Version: 52a0e9486c4770f2fbfac3f4fb8a1cd9e8c77af1
Source: https://github.com/SWI-Prolog/packages-pcre/tree/52a0e9486c4770f2fbfac3f4fb8a1cd9e8c77af1
Copyright: (C) VU University Amsterdam
           (C) SWI-Prolog Solution b.v.
License: BSD-2-Clause
License-File: lib_regex/vendor/SWI-LICENSE
Comment: The second holder is spelled as the file spells it.

Files: lib_regex/vendor/lib_regex_pcre.pl lib_regex/vendor/tests/test_pcre.pl
       lib_regex/vendor/tests/input/pcre_load.pl
Upstream-Name: SWI-Prolog packages-pcre
Upstream-Version: 52a0e9486c4770f2fbfac3f4fb8a1cd9e8c77af1
Source: https://github.com/SWI-Prolog/packages-pcre/tree/52a0e9486c4770f2fbfac3f4fb8a1cd9e8c77af1
Copyright: (C) VU University Amsterdam
           (C) SWI-Prolog Solutions b.v.
License: BSD-2-Clause
License-File: lib_regex/vendor/SWI-LICENSE
Comment: pcre.pl as the private module lib_regex_pcre, and its tests
 (lib_regex/vendor/VENDOR.md).

Files: lib_cli/vendor/lib_cli_optparse.pl
Upstream-Name: SWI-Prolog's library(optparse)
Upstream-Version: fc7ef84b949378b729052c3ade79c90ce5416abb
Source: https://github.com/SWI-Prolog/swipl-devel/blob/fc7ef84b949378b729052c3ade79c90ce5416abb/library/optparse.pl
Copyright: (C) 2011-2015 Marcus Uneson
           (C) 2026 Paulo Moura
License: BSD-2-Clause
License-File: lib_cli/vendor/lib_cli_optparse.pl
Comment: The file's own header carries the licence text. Its option scanner
 adapts Logtalk's command_line_options.lgt at
 9d0906cf4a4344e01d26c6bf2b3d7844fe9856ac under the same terms
 (lib_cli/vendor/VENDOR.md).

Files: lib_string/vendor/string_lines.pl
Upstream-Name: SWI-Prolog's library(strings)
Upstream-Version: fc7ef84b949378b729052c3ade79c90ce5416abb
Source: https://github.com/SWI-Prolog/swipl-devel/blob/fc7ef84b949378b729052c3ade79c90ce5416abb/library/strings.pl
Copyright: (C) 2020 SWI-Prolog Solutions b.v.
License: BSD-2-Clause
License-File: lib_string/vendor/SWI-LICENSE

Files: _support/random.metta
Copyright: (C) MesTTo
           (C) 2018 Developers of the Rand project
           (C) Python Software Foundation
License: Apache-2.0 AND MIT AND PSF-2.0
License-File: LICENSE NOTICE lib_random/vendor/RAND-LICENSE lib_vector/vendor/PYTHON-LICENSE
Comment: The gamma equations adapt rand_distr's gamma.rs at
 d65b9bbf991e56d8a097a35d934e6f93d9194ac0, and the normal and
 inverse-transform formulas were checked against CPython's random.py at
 ebf955df7a89ed0c7968f79faec1de49f61ed7cb, whose licence lib_random's
 vendor/README.md points at (lib_random/vendor/README.md).

Files: lib_statistics/lib.metta _support/statistics.metta
Copyright: (C) MesTTo
           (C) Python Software Foundation
License: Apache-2.0 AND PSF-2.0
License-File: LICENSE NOTICE lib_statistics/vendor/PYTHON-LICENSE
Comment: The exact moment reduction, quantile interpolation and
 geometric-mean log reduction adapt CPython's statistics.py at
 ebf955df7a89ed0c7968f79faec1de49f61ed7cb (lib_statistics/vendor/README.md).

Files: lib_vector/lib_vector.pl
Copyright: (C) MesTTo
           (C) Python Software Foundation
License: Apache-2.0 AND PSF-2.0
License-File: LICENSE NOTICE lib_vector/vendor/PYTHON-LICENSE
Comment: The fraction square root translates CPython 3.14.0's
 statistics._float_sqrt_of_frac and _integer_sqrt_of_frac_rto at
 ebf955df7a89ed0c7968f79faec1de49f61ed7cb (lib_vector/vendor/README.md).

Files: lib_markup/DTD/HTML5.dtd
Class: C
Upstream-Name: WHATWG HTML Living Standard
Upstream-Version: whatwg/html 2f441941fc523877bd9d5cd7de3b91a81a00ca2e, whatwg/html-build 283a3531a61106d07d9a7d9fb3e6f3b9bfd33d70
Source: https://github.com/whatwg/html/blob/2f441941fc523877bd9d5cd7de3b91a81a00ca2e/source
Copyright: (C) WHATWG (Apple, Google, Mozilla, Microsoft)
License: BSD-3-Clause
License-File: lib_markup/DTD/HTML5.dtd
Comment: The SGML DTD markup-parse-html reads, which
 extensions/python/tools/html5dtd.py in MesTTo/MeTTa generates from the
 Standard's element, category and attribute indices and its syntax section,
 and from html-build's entities.json, at those commits. The Standard's own
 notice licenses it under CC BY 4.0 and, "to the extent portions of it are
 incorporated into source code", those portions under the BSD 3-Clause
 License, as section 7.1.1 of the WHATWG IPR Policy
 (https://whatwg.org/ipr-policy) states, so class C decides it: the
 upstream's published notice. The file's header carries that notice and the
 licence's text with WHATWG's copyright line.
