木兰宽松许可证, 第2版

2020年1月 http://license.coscl.org.cn/

您对"软件"的复制、使用、修改及分发受木兰宽松许可证，第2版（"本许可证"）的如下条款的约束：

0. 定义

"软件"是指由"贡献者"按照本许可证授权许可的本许可证下特定软件及其相关文档。

"贡献者"是指将受本许可证约束的软件创建、修改或分发的自然人或法人实体。

"分发"是指通过任何媒介向他人转交或提供软件的行为，以及将软件运行于服务器供远程访问的行为。

"修改"是指对软件进行增删改查等操作，包括但不限于对软件的源代码、可执行文件、相关文档或其组合进行改动。

"衍生作品"是指基于软件整体或部分修改、翻译、演绎而产生的作品。

"贡献者"是指将受本许可证约束的软件创建、修改或分发的自然人或法人实体。

1. 授予版权许可

在您遵守本许可证条款的前提下，每个"贡献者"授予您永久的、全球性的、免费的、非独占的、不可撤销的版权许可，以复制、使用、修改、分发其"贡献"的软件，以及将其"贡献"的软件用于制作衍生作品。

2. 授予专利许可

在您遵守本许可证条款的前提下，每个"贡献者"授予您永久的、全球性的、免费的、非独占的、不可撤销的（根据本许可证的条款撤销的除外）专利许可，以制造、委托制造、使用、许诺销售、销售、进口其"贡献"的软件，以及以其他方式转移其"贡献"的软件。

3. 无商标许可

本许可证不授予您使用"贡献者"的名称、商标、服务标志或产品名称的商标许可，但您为满足第4条规定的声明义务而使用的除外。

4. 分发限制

您可以在任何媒介中将"软件"以源程序形式或可执行形式重新分发，但您必须满足以下条件：

（1）您必须向接收者提供本许可证的副本；并且

（2）您必须向接收者提供"软件"的源代码，或者保留一份在合理条件下提供"软件"源代码的书面要约，该要约的有效期不少于3年；并且

（3）您必须要求接收者对本许可证下的权利和义务进行保留，并在其再分发时向其接收者提供本许可证的副本。

5. 责任限制

在适用法律允许的最大范围内，"软件"按"原样"提供，不提供任何明示或暗示的保证，包括但不限于对适销性、特定用途适用性和非侵权的保证。在任何情况下，"贡献者"或版权所有者不对任何人因使用"软件"或因使用"软件"而造成的任何索赔、损害或其他责任负责，无论这些追责来自合同、侵权或其他法律依据，也无论这些追责是起因于"软件"或"软件"的使用或其他有关行为。

6. 语言

本许可证以中英文双语表述，两种语言具有同等法律效力。如两种语言版本存在任何不一致，以中文版为准。

条款结束

如何将木兰宽松许可证，第2版，应用到您的软件

如果您希望将木兰宽松许可证，第2版应用于您的软件，为了方便接收者查阅，建议您完成如下三步：

1. 请您补充如下通知中的姓名和联系方式，以代替方括号中的内容。

2. 请您在软件包的一级目录下创建以"LICENSE"命名的文件，将完整许可证文本放入该文件中。

3. 请您在软件包中的每个源文件头部，补充如下版权声明和许可声明：

Copyright (c) [2026] [kiber234324]

本软件依据木兰宽松许可证，第2版（MulanPSL-2.0）授权。

您可以复制、发行和修改本软件，但您必须对本软件的分发予以同样的授权，并保留本许可证声明、版权声明和声明中的免责条款。

MulanPSL-2.0 协议具体内容请参见 LICENSE 文件。

Mulan Permissive Software License, Version 2

Mulan Permissive Software License, Version 2 (MulanPSL-2.0)

January 2020 http://license.coscl.org.cn/

Your reproduction, use, modification and distribution of the Software shall be subject to Mulan Permissive Software License, Version 2 (this License) with the following terms and conditions:

0. Definition

"Software" means the software and its related documentation licensed under this License by the Contributor.

"Contributor" means the natural person or legal entity that creates, modifies, or distributes the Software under this License.

"Distribution" means the act of transferring or providing the Software to others through any medium, and the act of running the Software on a server for remote access.

"Modification" means any operation of adding, deleting, modifying, searching, etc. on the Software, including but not limited to modifications to the source code, executable files, related documents, or any combination thereof.

"Derivative Works" means works created based on the Software in whole or in part through modification, translation, or adaptation.

1. Grant of Copyright License

Subject to the terms and conditions of this License, each Contributor hereby grants you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, distribute the Software contributed by it, and to prepare Derivative Works of the Software contributed by it.

2. Grant of Patent License

Subject to the terms and conditions of this License, each Contributor hereby grants you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this License) patent license to make, have made, use, offer to sell, sell, import the Software contributed by it, and otherwise transfer the Software contributed by it.

3. No Trademark License

This License does not grant you the right to use any Contributor's name, trademark, service mark, or product name, except as required for the notice obligations under Section 4.

4. Distribution Restrictions

You may redistribute the Software in any medium, in source code or executable form, provided that you meet the following conditions:

(1) You must provide recipients with a copy of this License; and

(2) You must provide recipients with the source code of the Software, or retain a written offer to provide the source code of the Software under reasonable conditions, which shall be valid for no less than 3 years; and

(3) You must require recipients to retain the rights and obligations under this License, and provide recipients with a copy of this License upon redistribution.

5. Limitation of Liability

To the maximum extent permitted by applicable law, the Software is provided "as is", without any express or implied warranties, including but not limited to warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall any Contributor or copyright holder be liable for any claims, damages or other liabilities, whether in contract, tort or otherwise, arising from the use of the Software or the use of the Software or other dealings with the Software.

6. Language

THIS LICENSE IS PROVIDED IN BOTH CHINESE AND ENGLISH, AND BOTH VERSIONS SHALL HAVE THE SAME LEGAL EFFECT. IN CASE OF ANY INCONSISTENCY BETWEEN THE TWO VERSIONS, THE CHINESE VERSION SHALL PREVAIL.

END OF THE TERMS AND CONDITIONS
