SPDX-License-Identifier: GPL-2.0-or-later WITH SANE-exception

Copyright (c) 2026 sp1130n-open contributors

The SP-1130N implementation and its synthetic tests are distributed under the
GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See COPYING for the full GNU General
Public License.

As a special exception, the authors of SANE give permission for additional
uses of the libraries contained in this release of SANE.

The exception is that, if you link a SANE library with other files to produce
an executable, this does not by itself cause the resulting executable to be
covered by the GNU General Public License. Your use of that executable is in
no way restricted on account of linking the SANE library code into it.

This exception does not, however, invalidate any other reasons why the
executable file might be covered by the GNU General Public License.

If you submit changes to SANE to the maintainers to be included in a
subsequent release, you agree by submitting the changes that those changes
may be distributed with this exception intact.

If you write modifications of your own for SANE, it is your choice whether
to permit this exception to apply to your modifications. If you do not wish
that, delete this exception notice.

Existing SANE files and external libraries retain their own notices.
Earlier versions of the SP-1130N code were published under MIT. The original
notice is retained below for that incorporated code; this does not revoke
the MIT permissions granted for those earlier versions.

Original MIT Notice

Copyright (c) 2026 sp1130n-open contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
