mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-04-28 03:02:51 +00:00
Initial commit
This commit is contained in:
130
LICENSE
Normal file
130
LICENSE
Normal file
@@ -0,0 +1,130 @@
|
||||
|
||||
木兰宽松许可证, 第2版
|
||||
|
||||
木兰宽松许可证, 第2版
|
||||
|
||||
2020年1月 http://license.coscl.org.cn/MulanPSL2
|
||||
|
||||
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
|
||||
|
||||
0. 定义
|
||||
|
||||
“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
|
||||
|
||||
“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
|
||||
|
||||
“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
|
||||
|
||||
“法人实体” 是指提交贡献的机构及其“关联实体”。
|
||||
|
||||
“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
|
||||
|
||||
1. 授予版权许可
|
||||
|
||||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
|
||||
|
||||
2. 授予专利许可
|
||||
|
||||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
|
||||
|
||||
3. 无商标许可
|
||||
|
||||
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。
|
||||
|
||||
4. 分发限制
|
||||
|
||||
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
|
||||
|
||||
5. 免责声明与责任限制
|
||||
|
||||
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
|
||||
|
||||
6. 语言
|
||||
|
||||
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
|
||||
|
||||
条款结束
|
||||
|
||||
如何将木兰宽松许可证,第2版,应用到您的软件
|
||||
|
||||
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
|
||||
|
||||
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
|
||||
|
||||
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
|
||||
|
||||
3, 请将如下声明文本放入每个源文件的头部注释中。
|
||||
|
||||
Copyright (c) [Year] [name of copyright holder]
|
||||
[Software Name] is licensed under Mulan PSL v2.
|
||||
You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
You may obtain a copy of Mulan PSL v2 at:
|
||||
http://license.coscl.org.cn/MulanPSL2
|
||||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
See the Mulan PSL v2 for more details.
|
||||
|
||||
Mulan Permissive Software License,Version 2
|
||||
|
||||
Mulan Permissive Software License,Version 2 (Mulan PSL v2)
|
||||
|
||||
January 2020 http://license.coscl.org.cn/MulanPSL2
|
||||
|
||||
Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
|
||||
|
||||
0. Definition
|
||||
|
||||
Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
|
||||
|
||||
Contribution means the copyrightable work licensed by a particular Contributor under this License.
|
||||
|
||||
Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
|
||||
|
||||
Legal Entity means the entity making a Contribution and all its Affiliates.
|
||||
|
||||
Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
|
||||
|
||||
1. Grant of Copyright License
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
|
||||
|
||||
2. Grant of Patent License
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
|
||||
|
||||
3. No Trademark License
|
||||
|
||||
No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4.
|
||||
|
||||
4. Distribution Restriction
|
||||
|
||||
You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
|
||||
|
||||
5. Disclaimer of Warranty and Limitation of Liability
|
||||
|
||||
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
6. Language
|
||||
|
||||
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
|
||||
|
||||
END OF THE TERMS AND CONDITIONS
|
||||
|
||||
How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software
|
||||
|
||||
To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
|
||||
|
||||
i. Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
|
||||
ii. Create a file named "LICENSE" which contains the whole context of this License in the first directory of your software package;
|
||||
iii. Attach the statement to the appropriate annotated syntax at the beginning of each source file.
|
||||
|
||||
Copyright (c) [Year] [name of copyright holder]
|
||||
[Software Name] is licensed under Mulan PSL v2.
|
||||
You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
You may obtain a copy of Mulan PSL v2 at:
|
||||
http://license.coscl.org.cn/MulanPSL2
|
||||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
See the Mulan PSL v2 for more details.
|
||||
11
LICENSES/BSD-3-Clause.txt
Normal file
11
LICENSES/BSD-3-Clause.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Copyright (c) <year> <owner>.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
121
LICENSES/CC0-1.0.txt
Normal file
121
LICENSES/CC0-1.0.txt
Normal file
@@ -0,0 +1,121 @@
|
||||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
||||
117
LICENSES/GPL-2.0-or-later.txt
Normal file
117
LICENSES/GPL-2.0-or-later.txt
Normal file
@@ -0,0 +1,117 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms of 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 the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
|
||||
232
LICENSES/GPL-3.0-only.txt
Normal file
232
LICENSES/GPL-3.0-only.txt
Normal file
@@ -0,0 +1,232 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 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 the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
176
LICENSES/LGPL-2.1-or-later.txt
Normal file
176
LICENSES/LGPL-2.1-or-later.txt
Normal file
@@ -0,0 +1,176 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
one line to give the library's name and an idea of what it does.
|
||||
Copyright (C) year name of author
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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 the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in
|
||||
the library `Frob' (a library for tweaking knobs) written
|
||||
by James Random Hacker.
|
||||
|
||||
signature of Ty Coon, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
That's all there is to it!
|
||||
18
LICENSES/MIT.txt
Normal file
18
LICENSES/MIT.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
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.
|
||||
130
LICENSES/MulanPSL-2.0.txt
Normal file
130
LICENSES/MulanPSL-2.0.txt
Normal file
@@ -0,0 +1,130 @@
|
||||
|
||||
木兰宽松许可证, 第2版
|
||||
|
||||
木兰宽松许可证, 第2版
|
||||
|
||||
2020年1月 http://license.coscl.org.cn/MulanPSL2
|
||||
|
||||
您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束:
|
||||
|
||||
0. 定义
|
||||
|
||||
“软件” 是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。
|
||||
|
||||
“贡献” 是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。
|
||||
|
||||
“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。
|
||||
|
||||
“法人实体” 是指提交贡献的机构及其“关联实体”。
|
||||
|
||||
“关联实体” 是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。
|
||||
|
||||
1. 授予版权许可
|
||||
|
||||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。
|
||||
|
||||
2. 授予专利许可
|
||||
|
||||
每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。
|
||||
|
||||
3. 无商标许可
|
||||
|
||||
“本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。
|
||||
|
||||
4. 分发限制
|
||||
|
||||
您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。
|
||||
|
||||
5. 免责声明与责任限制
|
||||
|
||||
“软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。
|
||||
|
||||
6. 语言
|
||||
|
||||
“本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。
|
||||
|
||||
条款结束
|
||||
|
||||
如何将木兰宽松许可证,第2版,应用到您的软件
|
||||
|
||||
如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步:
|
||||
|
||||
1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;
|
||||
|
||||
2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;
|
||||
|
||||
3, 请将如下声明文本放入每个源文件的头部注释中。
|
||||
|
||||
Copyright (c) [Year] [name of copyright holder]
|
||||
[Software Name] is licensed under Mulan PSL v2.
|
||||
You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
You may obtain a copy of Mulan PSL v2 at:
|
||||
http://license.coscl.org.cn/MulanPSL2
|
||||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
See the Mulan PSL v2 for more details.
|
||||
|
||||
Mulan Permissive Software License,Version 2
|
||||
|
||||
Mulan Permissive Software License,Version 2 (Mulan PSL v2)
|
||||
|
||||
January 2020 http://license.coscl.org.cn/MulanPSL2
|
||||
|
||||
Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:
|
||||
|
||||
0. Definition
|
||||
|
||||
Software means the program and related documents which are licensed under this License and comprise all Contribution(s).
|
||||
|
||||
Contribution means the copyrightable work licensed by a particular Contributor under this License.
|
||||
|
||||
Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License.
|
||||
|
||||
Legal Entity means the entity making a Contribution and all its Affiliates.
|
||||
|
||||
Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity.
|
||||
|
||||
1. Grant of Copyright License
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not.
|
||||
|
||||
2. Grant of Patent License
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken.
|
||||
|
||||
3. No Trademark License
|
||||
|
||||
No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4.
|
||||
|
||||
4. Distribution Restriction
|
||||
|
||||
You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software.
|
||||
|
||||
5. Disclaimer of Warranty and Limitation of Liability
|
||||
|
||||
THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
6. Language
|
||||
|
||||
THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL.
|
||||
|
||||
END OF THE TERMS AND CONDITIONS
|
||||
|
||||
How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software
|
||||
|
||||
To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps:
|
||||
|
||||
i. Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner;
|
||||
ii. Create a file named "LICENSE" which contains the whole context of this License in the first directory of your software package;
|
||||
iii. Attach the statement to the appropriate annotated syntax at the beginning of each source file.
|
||||
|
||||
Copyright (c) [Year] [name of copyright holder]
|
||||
[Software Name] is licensed under Mulan PSL v2.
|
||||
You can use this software according to the terms and conditions of the Mulan PSL v2.
|
||||
You may obtain a copy of Mulan PSL v2 at:
|
||||
http://license.coscl.org.cn/MulanPSL2
|
||||
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
See the Mulan PSL v2 for more details.
|
||||
10
README.md
Normal file
10
README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# openRuyi Repo
|
||||
|
||||
This openRuyi Repo contains build configurations and scripts for all packages made available in the openRuyi repository.
|
||||
|
||||
> [!NOTE]
|
||||
> openRuyi is currently in active development. Expect breaking changes, and use at your own risk.
|
||||
|
||||
## Further Readings
|
||||
|
||||
Please check our project wiki.
|
||||
37
REUSE.toml
Normal file
37
REUSE.toml
Normal file
@@ -0,0 +1,37 @@
|
||||
version = 1
|
||||
[[annotations]]
|
||||
path = [
|
||||
"**.patch",
|
||||
"**.diff",
|
||||
"**.tmpfiles",
|
||||
"**.sysusers",
|
||||
"**.service",
|
||||
"**.timer",
|
||||
"**/_multibuild",
|
||||
"**.pam",
|
||||
"**.key",
|
||||
"**/_manifest"
|
||||
]
|
||||
SPDX-FileCopyrightText = "NONE"
|
||||
SPDX-License-Identifier = "CC0-1.0"
|
||||
[[annotations]]
|
||||
|
||||
path = ["SPECS/library-python/pyproject-rpm-macros/*.py",
|
||||
"SPECS/library-python/pyproject-rpm-macros/macros.*"]
|
||||
SPDX-FileCopyrightText = "2019 pyproject-rpm-macros contributors"
|
||||
SPDX-License-Identifier = "MIT"
|
||||
[[annotations]]
|
||||
|
||||
path = "SPECS/core/ca-certificates/update-ca-trust.8.txt"
|
||||
SPDX-FileCopyrightText = "2013 Red Hat, Inc."
|
||||
SPDX-License-Identifier = "GPL-2.0-or-later"
|
||||
[[annotations]]
|
||||
|
||||
path = "SPECS/core/pesign/pesign.py"
|
||||
SPDX-FileCopyrightText = "2017 Peter Jones <Peter Jones@random>"
|
||||
SPDX-License-Identifier = "GPL-3.0-only"
|
||||
|
||||
[[annotations]]
|
||||
path = "SPECS/library-python/python-rpm-generators/*"
|
||||
SPDX-FileCopyrightText = "RPM <rpm-maint@lists.rpm.org>"
|
||||
SPDX-License-Identifier = "GPL-2.0-or-later AND LGPL-2.1-or-later"
|
||||
59
SPECS/Catch2/Catch2.spec
Normal file
59
SPECS/Catch2/Catch2.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Jingwiw <wangjingwei@iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: Catch2
|
||||
Version: 3.10.0
|
||||
Release: %autorelease
|
||||
Summary: A modern, C++-native test framework for TDD and BDD
|
||||
License: BSL-1.0
|
||||
URL: https://github.com/catchorg/Catch2
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/catchorg/Catch2/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildSystem: cmake
|
||||
|
||||
BuildOption(conf): -DBUILD_SHARED_LIBS=ON
|
||||
BuildOption(conf): -DBUILD_TESTING=ON
|
||||
BuildOption(conf): -DCATCH_ENABLE_WERROR=OFF
|
||||
BuildOption(conf): -DCATCH_INSTALL_DOCS=OFF
|
||||
BuildOption(conf): -DCATCH_INSTALL_EXTRAS=ON
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: python3
|
||||
|
||||
%description
|
||||
Catch2 is a modern, C++-native, multi-paradigm test framework.
|
||||
This package contains the runtime shared libraries for Catch2.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the Catch2 test framework
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
This package contains all necessary files to develop tests using Catch2,
|
||||
including header files, CMake integration files, and pkg-config files.
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
# The main package owns only the versioned, runtime shared libraries.
|
||||
%{_libdir}/libCatch2.so.*
|
||||
%{_libdir}/libCatch2Main.so.*
|
||||
|
||||
%files devel
|
||||
%doc README.md
|
||||
%{_includedir}/catch2/
|
||||
%{_libdir}/libCatch2.so
|
||||
%{_libdir}/libCatch2Main.so
|
||||
%{_libdir}/cmake/Catch2/
|
||||
%{_datadir}/pkgconfig/catch2.pc
|
||||
%{_datadir}/pkgconfig/catch2-with-main.pc
|
||||
%{_datadir}/Catch2/
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
220
SPECS/abseil-cpp/abseil-cpp.spec
Normal file
220
SPECS/abseil-cpp/abseil-cpp.spec
Normal file
@@ -0,0 +1,220 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: abseil-cpp
|
||||
Version: 20250814.0
|
||||
Release: %autorelease
|
||||
Summary: C++ Common Libraries
|
||||
# The entire source is Apache-2.0, except:
|
||||
# - The following files are LicenseRef-Fedora-Public-Domain:
|
||||
# absl/time/internal/cctz/src/tzfile.h
|
||||
# ** This file is in the public domain, so clarified as of
|
||||
# ** 1996-06-05 by Arthur David Olson.
|
||||
# absl/time/internal/cctz/testdata/zoneinfo/iso3166.tab
|
||||
# # This file is in the public domain, so clarified as of
|
||||
# # 2009-05-17 by Arthur David Olson.
|
||||
# absl/time/internal/cctz/testdata/zoneinfo/zone1970.tab
|
||||
# # This file is in the public domain.
|
||||
License: Apache-2.0 AND LicenseRef-Fedora-Public-Domain
|
||||
URL: https://abseil.io
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
# didn't bring i386 specific patch along with this spec
|
||||
# we didn't add support for s390x and ppc64 either
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gmock-devel gtest-devel
|
||||
BuildSystem: cmake
|
||||
|
||||
BuildOption(conf): -GNinja
|
||||
BuildOption(conf): -DABSL_USE_EXTERNAL_GOOGLETEST:BOOL=ON
|
||||
BuildOption(conf): -DABSL_FIND_GOOGLETEST:BOOL=ON
|
||||
BuildOption(conf): -DABSL_ENABLE_INSTALL:BOOL=ON
|
||||
BuildOption(conf): -DABSL_BUILD_TESTING:BOOL=ON
|
||||
BuildOption(conf): -DABSL_BUILD_TEST_HELPERS:BOOL=ON
|
||||
BuildOption(conf): -DCMAKE_BUILD_TYPE:STRING=None
|
||||
BuildOption(conf): -DCMAKE_CXX_STANDARD:STRING=17
|
||||
|
||||
# The contents of absl/time/internal/cctz are derived from
|
||||
# https://github.com/google/cctz (https://src.fedoraproject.org/rpms/cctz), but
|
||||
# have been forked with Abseil-specific changes. It is not obvious from which
|
||||
# particular version of CCTZ these sources are derived. Upstream was asked
|
||||
# about a path to supporting a system copy as required by bundling guidelines:
|
||||
# Please comment on CCTZ bundling
|
||||
# https://github.com/abseil/abseil-cpp/discussions/1415
|
||||
# They refused, for the time being, as follows:
|
||||
# “[…] we have no plans to change this decision, but we reserve the right to
|
||||
# change our minds.”
|
||||
Provides: bundled(cctz)
|
||||
|
||||
%description
|
||||
Abseil is an open-source collection of C++ library code designed to augment
|
||||
the C++ standard library. The Abseil library code is collected from
|
||||
Google's own C++ code base, has been extensively tested and used in
|
||||
production, and is the same code we depend on in our daily coding lives.
|
||||
|
||||
In some cases, Abseil provides pieces missing from the C++ standard; in
|
||||
others, Abseil provides alternatives to the standard for special needs we've
|
||||
found through usage in the Google code base. We denote those cases clearly
|
||||
within the library code we provide you.
|
||||
|
||||
Abseil is not meant to be a competitor to the standard library; we've just
|
||||
found that many of these utilities serve a purpose within our code base,
|
||||
and we now want to provide those resources to the C++ community as a whole.
|
||||
|
||||
%package testing
|
||||
Summary: Libraries needed for running tests on the installed %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Provides: bundled(cctz)
|
||||
|
||||
%description testing
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-testing = %{version}-%{release}
|
||||
|
||||
# Some of the headers from CCTZ are part of the -devel subpackage. See the
|
||||
# corresponding virtual Provides in the base package for full details.
|
||||
Provides: bundled(cctz)
|
||||
|
||||
%description devel
|
||||
Development headers for %{name}
|
||||
|
||||
%files
|
||||
%global lib_version 2508.0.0
|
||||
%license LICENSE
|
||||
%doc FAQ.md README.md UPGRADES.md
|
||||
# All shared libraries except installed TESTONLY libraries; see the %%files
|
||||
# list for the -testing subpackage for those.
|
||||
%{_libdir}/libabsl_base.so.%{lib_version}
|
||||
%{_libdir}/libabsl_city.so.%{lib_version}
|
||||
%{_libdir}/libabsl_civil_time.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cord.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cord_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cordz_functions.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cordz_handle.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cordz_info.so.%{lib_version}
|
||||
%{_libdir}/libabsl_cordz_sample_token.so.%{lib_version}
|
||||
%{_libdir}/libabsl_crc32c.so.%{lib_version}
|
||||
%{_libdir}/libabsl_crc_cord_state.so.%{lib_version}
|
||||
%{_libdir}/libabsl_crc_cpu_detect.so.%{lib_version}
|
||||
%{_libdir}/libabsl_crc_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_debugging_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_decode_rust_punycode.so.%{lib_version}
|
||||
%{_libdir}/libabsl_demangle_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_demangle_rust.so.%{lib_version}
|
||||
%{_libdir}/libabsl_die_if_null.so.%{lib_version}
|
||||
%{_libdir}/libabsl_examine_stack.so.%{lib_version}
|
||||
%{_libdir}/libabsl_exponential_biased.so.%{lib_version}
|
||||
%{_libdir}/libabsl_failure_signal_handler.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_commandlineflag.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_commandlineflag_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_config.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_marshalling.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_parse.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_private_handle_accessor.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_program_name.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_reflection.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_usage.so.%{lib_version}
|
||||
%{_libdir}/libabsl_flags_usage_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_graphcycles_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_hash.so.%{lib_version}
|
||||
%{_libdir}/libabsl_hashtable_profiler.so.%{lib_version}
|
||||
%{_libdir}/libabsl_hashtablez_sampler.so.%{lib_version}
|
||||
%{_libdir}/libabsl_int128.so.%{lib_version}
|
||||
%{_libdir}/libabsl_kernel_timeout_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_leak_check.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_flags.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_globals.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_initialize.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_check_op.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_conditions.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_fnmatch.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_format.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_globals.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_log_sink_set.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_message.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_nullguard.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_proto.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_structured_proto.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_severity.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_sink.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_entry.so.%{lib_version}
|
||||
%{_libdir}/libabsl_malloc_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_periodic_sampler.so.%{lib_version}
|
||||
%{_libdir}/libabsl_poison.so.%{lib_version}
|
||||
%{_libdir}/libabsl_profile_builder.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_distributions.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_distribution_test_util.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_entropy_pool.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_platform.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_randen.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_randen_hwaes.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_randen_hwaes_impl.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_randen_slow.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_internal_seed_material.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_seed_gen_exception.so.%{lib_version}
|
||||
%{_libdir}/libabsl_random_seed_sequences.so.%{lib_version}
|
||||
%{_libdir}/libabsl_raw_hash_set.so.%{lib_version}
|
||||
%{_libdir}/libabsl_raw_logging_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_scoped_set_env.so.%{lib_version}
|
||||
%{_libdir}/libabsl_spinlock_wait.so.%{lib_version}
|
||||
%{_libdir}/libabsl_stacktrace.so.%{lib_version}
|
||||
%{_libdir}/libabsl_status.so.%{lib_version}
|
||||
%{_libdir}/libabsl_statusor.so.%{lib_version}
|
||||
%{_libdir}/libabsl_str_format_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_strerror.so.%{lib_version}
|
||||
%{_libdir}/libabsl_strings.so.%{lib_version}
|
||||
%{_libdir}/libabsl_strings_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_string_view.so.%{lib_version}
|
||||
%{_libdir}/libabsl_symbolize.so.%{lib_version}
|
||||
%{_libdir}/libabsl_synchronization.so.%{lib_version}
|
||||
%{_libdir}/libabsl_throw_delegate.so.%{lib_version}
|
||||
%{_libdir}/libabsl_time.so.%{lib_version}
|
||||
%{_libdir}/libabsl_time_zone.so.%{lib_version}
|
||||
%{_libdir}/libabsl_tracing_internal.so.%{lib_version}
|
||||
%{_libdir}/libabsl_utf8_for_code_point.so.%{lib_version}
|
||||
%{_libdir}/libabsl_vlog_config_internal.so.%{lib_version}
|
||||
|
||||
%files testing
|
||||
# TESTONLY libraries (that are actually installed):
|
||||
# absl/base/CMakeLists.txt
|
||||
%{_libdir}/libabsl_exception_safety_testing.so.%{lib_version}
|
||||
%{_libdir}/libabsl_atomic_hook_test_helper.so.%{lib_version}
|
||||
%{_libdir}/libabsl_spinlock_test_common.so.%{lib_version}
|
||||
# absl/container/CMakeLists.txt
|
||||
%{_libdir}/libabsl_test_instance_tracker.so.%{lib_version}
|
||||
%{_libdir}/libabsl_hash_generator_testing.so.%{lib_version}
|
||||
# absl/debugging/CMakeLists.txt
|
||||
%{_libdir}/libabsl_stack_consumption.so.%{lib_version}
|
||||
# absl/log/CMakeLists.txt
|
||||
%{_libdir}/libabsl_log_internal_test_actions.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_test_helpers.so.%{lib_version}
|
||||
%{_libdir}/libabsl_log_internal_test_matchers.so.%{lib_version}
|
||||
%{_libdir}/libabsl_scoped_mock_log.so.%{lib_version}
|
||||
# absl/status/CMakeLists.txt
|
||||
%{_libdir}/libabsl_status_matchers.so.%{lib_version}
|
||||
# absl/strings/CMakeLists.txt
|
||||
%{_libdir}/libabsl_pow10_helper.so.%{lib_version}
|
||||
# absl/synchronization/CMakeLists.txt
|
||||
%{_libdir}/libabsl_per_thread_sem_test_common.so.%{lib_version}
|
||||
# absl/time/CMakeLists.txt
|
||||
%{_libdir}/libabsl_time_internal_test_util.so.%{lib_version}
|
||||
|
||||
%files devel
|
||||
%{_includedir}/absl
|
||||
%{_libdir}/libabsl_*.so
|
||||
%{_libdir}/cmake/absl
|
||||
%{_libdir}/pkgconfig/absl_*.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
77
SPECS/acl/acl.spec
Normal file
77
SPECS/acl/acl.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: acl
|
||||
Summary: Commands for Manipulating POSIX Access Control Lists
|
||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||
Version: 2.3.2
|
||||
Release: %autorelease
|
||||
URL: https://savannah.nongnu.org/projects/acl
|
||||
#!RemoteAsset
|
||||
Source: https://download.savannah.nongnu.org/releases/acl/acl-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://download.savannah.nongnu.org/releases/acl/acl-%{version}.tar.xz.sig
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
|
||||
BuildOption(conf): --disable-static --docdir=%_defaultdocdir/%name
|
||||
|
||||
%description
|
||||
getfacl and setfacl commands for retrieving and setting POSIX access
|
||||
control lists.
|
||||
|
||||
%package devel
|
||||
Summary: Header files for the POSIX ACL library
|
||||
Requires: %name = %version
|
||||
Requires: glibc-devel
|
||||
Provides: acl-devel = %version
|
||||
Obsoletes: acl-devel < %version
|
||||
|
||||
%description devel
|
||||
This package contains all necessary include files and libraries needed
|
||||
to develop applications that require libacl.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fiv
|
||||
|
||||
%install -p
|
||||
rm -rvf %buildroot/%_defaultdocdir/%name
|
||||
|
||||
%install -a
|
||||
# Avoid illegal package names
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
||||
%find_lang %{name} --generate-subpackages
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license doc/COPYING
|
||||
%doc doc/extensions.txt doc/libacl.txt doc/CHANGES
|
||||
%{_docdir}/acl
|
||||
%license doc/COPYING.LGPL
|
||||
%_libdir/libacl.so.1*
|
||||
%_bindir/chacl
|
||||
%_bindir/getfacl
|
||||
%_bindir/setfacl
|
||||
%_mandir/man1/*.1*
|
||||
%_mandir/man5/*.5*
|
||||
|
||||
%files devel
|
||||
%_includedir/acl/
|
||||
%_includedir/sys/acl.h
|
||||
%_libdir/libacl.so
|
||||
%_mandir/man3/*.3*
|
||||
%_libdir/pkgconfig/libacl.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
116
SPECS/alsa-lib/alsa-lib.spec
Normal file
116
SPECS/alsa-lib/alsa-lib.spec
Normal file
@@ -0,0 +1,116 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Dingli Zhang <dingli@iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: alsa-lib
|
||||
Version: 1.2.14
|
||||
Release: %autorelease
|
||||
Summary: The Advanced Linux Sound Architecture (ALSA) library
|
||||
License: LGPL-2.1-or-later
|
||||
URL: http://www.alsa-project.org/
|
||||
#!RemoteAsset
|
||||
Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
|
||||
Source1: asound.conf
|
||||
Source2: modprobe-dist-alsa.conf
|
||||
Source3: modprobe-dist-oss.conf
|
||||
|
||||
BuildSystem: autotools
|
||||
|
||||
# configure options
|
||||
BuildOption(conf): --disable-aload
|
||||
BuildOption(conf): --with-plugindir=%{_libdir}/alsa-lib
|
||||
BuildOption(conf): --disable-alisp
|
||||
BuildOption(build): V=1
|
||||
BuildOption(install): DESTDIR=%{buildroot}
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
|
||||
functionality to the Linux operating system.
|
||||
|
||||
This package includes the ALSA runtime libraries to simplify application
|
||||
programming and provide higher level functionality as well as support for
|
||||
the older OSS API, providing binary compatibility for most OSS programs.
|
||||
|
||||
%package devel
|
||||
Summary: Development files from the ALSA library
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
|
||||
functionality to the Linux operating system.
|
||||
|
||||
This package includes the ALSA development libraries for developing
|
||||
against the ALSA libraries and interfaces.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%conf -p
|
||||
autoreconf -vif
|
||||
|
||||
%build -p
|
||||
# Set custom LTO flags (needed for symbol versioning)
|
||||
%define _lto_cflags -flto -ffat-lto-objects -flto-partition=none
|
||||
|
||||
# fix libtool rpath
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool || :
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool || :
|
||||
|
||||
%build -a
|
||||
%make_build doc
|
||||
|
||||
%install -a
|
||||
# Install global configuration files
|
||||
mkdir -p -m 755 %{buildroot}/etc
|
||||
install -p -m 644 %{SOURCE1} %{buildroot}/etc
|
||||
|
||||
# Install the modprobe files for ALSA
|
||||
mkdir -p -m 755 %{buildroot}%{_prefix}/lib/modprobe.d
|
||||
install -p -m 644 %{SOURCE2} %{buildroot}%{_prefix}/lib/modprobe.d/dist-alsa.conf
|
||||
# bug#926973, place this file to the doc directory
|
||||
install -p -m 644 %{SOURCE3} .
|
||||
|
||||
# Remove libtool archives
|
||||
find %{buildroot} -name '*.la' -delete
|
||||
|
||||
# Remove /usr/include/asoundlib.h
|
||||
rm -f %{buildroot}%{_includedir}/asoundlib.h
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc doc/asoundrc.txt modprobe-dist-oss.conf
|
||||
%config %{_sysconfdir}/asound.conf
|
||||
%{_libdir}/libasound.so.*
|
||||
%{_libdir}/libatopology.so.*
|
||||
%{_bindir}/aserver
|
||||
#{_libdir}/alsa-lib/
|
||||
%{_datadir}/alsa/
|
||||
%exclude %{_datadir}/alsa/ucm
|
||||
%exclude %{_datadir}/alsa/ucm2
|
||||
%exclude %{_datadir}/alsa/topology
|
||||
%{_prefix}/lib/modprobe.d/dist-*
|
||||
|
||||
%files devel
|
||||
%doc TODO doc/doxygen/
|
||||
%{_includedir}/alsa/
|
||||
%{_includedir}/sys/asoundlib.h
|
||||
%{_libdir}/libasound.so
|
||||
%{_libdir}/libatopology.so
|
||||
%{_libdir}/pkgconfig/alsa.pc
|
||||
%{_libdir}/pkgconfig/alsa-topology.pc
|
||||
%{_datadir}/aclocal/alsa.m4
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
3
SPECS/alsa-lib/asound.conf
Normal file
3
SPECS/alsa-lib/asound.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# Place your global alsa-lib configuration here...
|
||||
#
|
||||
9
SPECS/alsa-lib/modprobe-dist-alsa.conf
Normal file
9
SPECS/alsa-lib/modprobe-dist-alsa.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# ALSA Sound Support
|
||||
#
|
||||
# We want to ensure that snd-seq is always loaded for those who want to use
|
||||
# the sequencer interface, but we can't do this automatically through udev
|
||||
# at the moment...so we have this rule (just for the moment).
|
||||
#
|
||||
# Remove the following line if you don't want the sequencer.
|
||||
|
||||
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-seq
|
||||
8
SPECS/alsa-lib/modprobe-dist-oss.conf
Normal file
8
SPECS/alsa-lib/modprobe-dist-oss.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
# OSS Sound Support
|
||||
# This has been disabled in F11 onwards because it can interfere with the
|
||||
# PulseAudio sound service (a legacy OSS application can prevent PulseAudio
|
||||
# applications from playing sound by preventing PulseAudio from (re-)opening
|
||||
# the sound device). To re-enable support, copy this file to
|
||||
# the /etc/modprobe.d directory.
|
||||
#
|
||||
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-pcm-oss && /sbin/modprobe snd-seq-device && /sbin/modprobe snd-seq-oss
|
||||
84
SPECS/argon2/argon2.spec
Normal file
84
SPECS/argon2/argon2.spec
Normal file
@@ -0,0 +1,84 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global _test_target test
|
||||
%global libname libargon2
|
||||
Name: argon2
|
||||
Version: 20190702
|
||||
Release: %autorelease
|
||||
Summary: The password-hashing tools
|
||||
License: CC0-1.0 OR Apache-2.0
|
||||
URL: https://github.com/P-H-C/phc-winner-argon2
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(build): -j1
|
||||
BuildOption(build): CFLAGS="%{optflags} -Iinclude"
|
||||
|
||||
BuildOption(install): PREFIX=%{_prefix}
|
||||
BuildOption(install): LIBRARY_REL=%{_lib}
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
Requires: %{libname} = %{version}
|
||||
|
||||
%description
|
||||
Argon2 is a password-hashing function that can be used to hash passwords
|
||||
for credential storage, key derivation, or other applications.
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: The password-hashing library
|
||||
|
||||
%description -n %{libname}
|
||||
This package contains the shared library for the Argon2 password-hashing function.
|
||||
|
||||
%package -n %{libname}-devel
|
||||
Summary: Development files for %{libname}
|
||||
Requires: %{libname} = %{version}
|
||||
|
||||
%description -n %{libname}-devel
|
||||
This package contains libraries and header files for
|
||||
developing applications that use %{libname}.
|
||||
|
||||
%prep -a
|
||||
# Honours default RPM build options and library path, do not use -march=native
|
||||
sed -e '/^CFLAGS/s:^CFLAGS:LDFLAGS=%{build_ldflags}\nCFLAGS:' \
|
||||
-e 's:-O3 -Wall:%{optflags}:' \
|
||||
-e '/^LIBRARY_REL/s:lib:%{_lib}:' \
|
||||
-e 's:-march=\$(OPTTARGET) :${CFLAGS} :' \
|
||||
-e 's:CFLAGS += -march=\$(OPTTARGET)::' \
|
||||
-i Makefile
|
||||
|
||||
# Fix pkgconfig file
|
||||
sed -e 's:lib/@HOST_MULTIARCH@:%{_lib}:;s/@UPSTREAM_VER@/%{version}/' -i %{libname}.pc.in
|
||||
|
||||
# No configure
|
||||
%conf
|
||||
|
||||
%install -a
|
||||
rm %{buildroot}%{_libdir}/%{libname}.a
|
||||
install -Dpm 644 %{libname}.pc %{buildroot}%{_libdir}/pkgconfig/%{libname}.pc
|
||||
chmod -x %{buildroot}%{_includedir}/%{name}.h
|
||||
|
||||
%ldconfig_scriptlets -n %{libname}
|
||||
|
||||
%files
|
||||
%{_bindir}/argon2
|
||||
|
||||
%files -n %{libname}
|
||||
%license LICENSE
|
||||
%{_libdir}/libargon2.so.*
|
||||
|
||||
%files -n %{libname}-devel
|
||||
%doc *md
|
||||
%{_includedir}/%{name}.h
|
||||
%{_libdir}/libargon2.so
|
||||
%{_libdir}/pkgconfig/%{libname}.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
40
SPECS/asn1c/asn1c.spec
Normal file
40
SPECS/asn1c/asn1c.spec
Normal file
@@ -0,0 +1,40 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: asn1c
|
||||
Version: 0.9.28
|
||||
Release: %autorelease
|
||||
Summary: ASN.1 Compiler
|
||||
License: BSD-2-Clause
|
||||
URL: http://lionet.info/asn1c/
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/vlm/asn1c/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison flex
|
||||
BuildRequires: libtool
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
Compiles ASN.1 data structures into C source structures that can be
|
||||
simply marshalled to/unmarshalled from various encoding rules.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fiv
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc BUGS ChangeLog FAQ README.md TODO doc/asn1c-quick.pdf doc/asn1c-usage.pdf
|
||||
%{_bindir}/*
|
||||
%{_datadir}/asn1c
|
||||
%{_mandir}/man1/*
|
||||
%doc %{_docdir}/asn1c
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
146
SPECS/atf/atf.spec
Normal file
146
SPECS/atf/atf.spec
Normal file
@@ -0,0 +1,146 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global common_description The Automated Testing Framework (ATF) is a collection of libraries to implement test programs in a variety of languages.
|
||||
|
||||
Name: atf
|
||||
Version: 0.23
|
||||
Release: %autorelease
|
||||
Summary: Automated Testing Framework (metapackage)
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/freebsd/atf
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/freebsd/atf/archive/refs/tags/atf-%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): INSTALL="install -p"
|
||||
BuildOption(conf): --disable-static
|
||||
|
||||
BuildOption(build): pkgtestsdir=%{_libexecdir}/atf/tests
|
||||
BuildOption(build): testsdir=%{_libexecdir}/atf/tests
|
||||
BuildOption(install): pkgtestsdir=%{_libexecdir}/atf/tests
|
||||
BuildOption(install): testsdir=%{_libexecdir}/atf/tests
|
||||
|
||||
BuildRequires: automake gcc-c++ libtool make
|
||||
|
||||
%description
|
||||
This is a metapackage for the Automated Testing Framework (ATF).
|
||||
It ensures all core components are installed.
|
||||
|
||||
|
||||
%package tests
|
||||
Summary: Automated Testing Framework - Test suite
|
||||
Requires: libatf-c = %{version}
|
||||
Requires: libatf-c++ = %{version}
|
||||
Requires: libatf-sh = %{version}
|
||||
Requires: libatf-c-devel = %{version}
|
||||
Requires: libatf-c++-devel = %{version}
|
||||
Requires: libatf-sh-devel = %{version}
|
||||
|
||||
%description tests
|
||||
%{common_description}
|
||||
This package installs the run-time tests for all the components of ATF.
|
||||
|
||||
%package -n libatf-c
|
||||
Summary: Automated Testing Framework - C bindings
|
||||
|
||||
%description -n libatf-c
|
||||
%{common_description}
|
||||
This package provides the run-time libraries for tests using the ATF C bindings.
|
||||
|
||||
%package -n libatf-c-devel
|
||||
Summary: Development files for ATF C bindings
|
||||
Requires: libatf-c = %{version}
|
||||
%description -n libatf-c-devel
|
||||
%{common_description}
|
||||
This package provides the files to develop tests using the ATF C bindings.
|
||||
|
||||
%package -n libatf-c++
|
||||
Summary: Automated Testing Framework - C++ bindings
|
||||
|
||||
%description -n libatf-c++
|
||||
%{common_description}
|
||||
This package provides the run-time libraries for tests using the ATF C++ bindings.
|
||||
|
||||
%package -n libatf-c++-devel
|
||||
Summary: Development files for ATF C++ bindings
|
||||
Requires: libatf-c-devel = %{version}
|
||||
Requires: libatf-c++ = %{version}
|
||||
|
||||
%description -n libatf-c++-devel
|
||||
%{common_description}
|
||||
This package provides the files to develop tests using the ATF C++ bindings.
|
||||
|
||||
%package -n libatf-sh
|
||||
Summary: Automated Testing Framework - POSIX shell bindings
|
||||
Requires: libatf-c++ = %{version}
|
||||
|
||||
%description -n libatf-sh
|
||||
%{common_description}
|
||||
This package provides the run-time libraries for tests using the ATF shell bindings.
|
||||
|
||||
%package -n libatf-sh-devel
|
||||
Summary: Development files for ATF POSIX shell bindings
|
||||
Requires: libatf-sh = %{version}
|
||||
|
||||
%description -n libatf-sh-devel
|
||||
%{common_description}
|
||||
This package provides the files to develop tests using the ATF shell bindings.
|
||||
|
||||
%conf -p
|
||||
autoreconf -is
|
||||
|
||||
%install -a
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%files
|
||||
%doc %{_docdir}/atf
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/atf/tests
|
||||
%{_mandir}/man7/atf.7*
|
||||
|
||||
%files -n libatf-c
|
||||
%{_libdir}/libatf-c.so.1*
|
||||
%{_mandir}/man1/atf-test-program.1*
|
||||
%{_mandir}/man4/atf-test-case.4*
|
||||
%{_mandir}/man3/atf-c.3*
|
||||
|
||||
%files -n libatf-c-devel
|
||||
%{_datadir}/aclocal/atf-c.m4
|
||||
%{_datadir}/aclocal/atf-common.m4
|
||||
%{_includedir}/atf-c.h
|
||||
%{_includedir}/atf-c/
|
||||
%{_libdir}/libatf-c.so
|
||||
%{_libdir}/pkgconfig/atf-c.pc
|
||||
|
||||
%files -n libatf-c++
|
||||
%{_libdir}/libatf-c++.so.2*
|
||||
%{_mandir}/man3/atf-c++.3*
|
||||
|
||||
%files -n libatf-c++-devel
|
||||
%{_datadir}/aclocal/atf-c++.m4
|
||||
%{_includedir}/atf-c++.hpp
|
||||
%{_includedir}/atf-c++/
|
||||
%{_libdir}/libatf-c++.so
|
||||
%{_libdir}/pkgconfig/atf-c++.pc
|
||||
|
||||
%files -n libatf-sh
|
||||
%{_bindir}/atf-sh
|
||||
%dir %{_datadir}/atf
|
||||
%{_datadir}/atf/
|
||||
%{_libexecdir}/atf-check
|
||||
%{_mandir}/man1/atf-sh.1*
|
||||
%{_mandir}/man3/atf-sh.3*
|
||||
|
||||
%files -n libatf-sh-devel
|
||||
%{_datadir}/aclocal/atf-sh.m4
|
||||
%{_libdir}/pkgconfig/atf-sh.pc
|
||||
%{_mandir}/man1/atf-check.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
@@ -0,0 +1,55 @@
|
||||
From 20576addae44d7256617806e4504524e0d1c9b13 Mon Sep 17 00:00:00 2001
|
||||
From: Shijie Luo <luoshijie1@huawei.com>
|
||||
Date: Sun, 15 Mar 2020 14:15:42 -0400
|
||||
Subject: [PATCH 7/7] bypass wrong output when enabled selinux
|
||||
|
||||
When enforced selinux, excuting command getfattr may output something
|
||||
about selinux. Bypass these messages to make testcases go success.
|
||||
|
||||
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
|
||||
---
|
||||
test/run | 20 +++++++++++++-------
|
||||
1 file changed, 13 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/test/run b/test/run
|
||||
index 07e916c..7e46a70 100755
|
||||
--- a/test/run
|
||||
+++ b/test/run
|
||||
@@ -160,21 +160,27 @@ sub process_test($$$$) {
|
||||
map { s/\s/\\$&/g; $_ } @$p), " -- ";
|
||||
my $result = exec_test($prog, $in);
|
||||
my @good = ();
|
||||
- my $nmax = (@$out > @$result) ? @$out : @$result;
|
||||
- for (my $n=0; $n < $nmax; $n++) {
|
||||
+ my $nmax = @$out;
|
||||
+ my $mmax = @$result;
|
||||
+ for (my $n=0, my $m=0; $n < $nmax; $n++, $m++) {
|
||||
my $use_re;
|
||||
+
|
||||
if (defined $out->[$n] && $out->[$n] =~ /^~ /) {
|
||||
$use_re = 1;
|
||||
$out->[$n] =~ s/^~ //g;
|
||||
}
|
||||
|
||||
- if (!defined($out->[$n]) || !defined($result->[$n]) ||
|
||||
- (!$use_re && $result->[$n] ne $out->[$n]) ||
|
||||
- ( $use_re && $result->[$n] !~ /^$out->[$n]/)) {
|
||||
- push @good, ($use_re ? '!~' : '!=');
|
||||
+ while ($m < $mmax &&
|
||||
+ (!$use_re && $result->[$m] ne $out->[$n]) ||
|
||||
+ ( $use_re && $result->[$m] !~ /^$out->[$n]/)) {
|
||||
+ $m++;
|
||||
+ }
|
||||
+
|
||||
+ if (!defined($result->[$m])) {
|
||||
+ push @good, ($use_re ? '!~' : '!=');
|
||||
}
|
||||
else {
|
||||
- push @good, ($use_re ? '=~' : '==');
|
||||
+ push @good, ($use_re ? '=~' : '==');
|
||||
}
|
||||
}
|
||||
my $good = !(grep /!/, @good);
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
27
SPECS/attr/0002-dont-skip-security.evm-when-copy-xattr.patch
Normal file
27
SPECS/attr/0002-dont-skip-security.evm-when-copy-xattr.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
From 0aa9a1568fc318345c4123fc19f825933f8dcb66 Mon Sep 17 00:00:00 2001
|
||||
From: zhangtianxing3 <zhangtianxing3@huawei.com>
|
||||
Date: Mon, 24 Jan 2022 11:39:36 +0800
|
||||
Subject: [PATCH] dont skip security.evm when copy xattr
|
||||
|
||||
IMA feature need to use security.evm, so we should not skip
|
||||
|
||||
Signed-off-by: lixiaokeng <lixiaokeng@huawei.com>
|
||||
Signed-off-by: volcanodragon <linfeilong@huawei.com>
|
||||
---
|
||||
xattr.conf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xattr.conf b/xattr.conf
|
||||
index 1affac5..07d3403 100644
|
||||
--- a/xattr.conf
|
||||
+++ b/xattr.conf
|
||||
@@ -18,5 +18,5 @@ trusted.SGI_DMI_* skip # xfs specific
|
||||
trusted.SGI_MAC_FILE skip # xfs specific
|
||||
xfsroot.* skip # xfs specific; obsolete
|
||||
user.Beagle.* skip # ignore Beagle index data
|
||||
-security.evm skip # may only be written by kernel
|
||||
+#security.evm skip # may only be written by kernel
|
||||
afs.* skip # AFS metadata and ACLs
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
105
SPECS/attr/attr.spec
Normal file
105
SPECS/attr/attr.spec
Normal file
@@ -0,0 +1,105 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%define lname libattr1
|
||||
Name: attr
|
||||
Version: 2.5.2
|
||||
Release: %autorelease
|
||||
Summary: Commands for Manipulating Extended Attributes
|
||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||
Group: System/Filesystems
|
||||
URL: https://savannah.nongnu.org/projects/attr/
|
||||
#!RemoteAsset
|
||||
Source: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz
|
||||
|
||||
Patch1: 0001-bypass-wrong-output-when-enabled-selinux.patch
|
||||
Patch2: 0002-dont-skip-security.evm-when-copy-xattr.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: perl
|
||||
Conflicts: xfsdump < 2.0.0
|
||||
BuildSystem: autotools
|
||||
BuildOption(conf): --enable-static
|
||||
BuildOption(conf): --disable-silent-rules
|
||||
|
||||
%description
|
||||
A set of tools for manipulating extended attributes on file system
|
||||
objects, in particular getfattr(1) and setfattr(1). An attr(1) command
|
||||
is also provided, which is largely compatible with the SGI IRIX tool of
|
||||
the same name.
|
||||
|
||||
%package -n %{lname}
|
||||
Summary: A dynamic library for filesystem extended attribute support
|
||||
Group: System/Libraries
|
||||
Obsoletes: libattr < %{version}-%{release}
|
||||
Provides: libattr = %{version}-%{release}
|
||||
|
||||
%description -n %{lname}
|
||||
This package contains the libattr.so dynamic library, which contains
|
||||
the extended attribute library functions.
|
||||
|
||||
%package -n libattr-devel
|
||||
Summary: Header files for libattr
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{lname} = %{version}
|
||||
Requires: glibc-devel
|
||||
Provides: attr-devel = %{version}-%{release}
|
||||
Obsoletes: attr-devel < %{version}-%{release}
|
||||
|
||||
%description -n libattr-devel
|
||||
This package contains the libraries and header files needed to develop
|
||||
programs which make use of extended attributes. For Linux programs, the
|
||||
documented system call API is the recommended interface, but an SGI
|
||||
IRIX compatibility interface is also provided.
|
||||
|
||||
%package -n libattr-devel-static
|
||||
Summary: Static libraries for libattr development
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libattr-devel = %{version}
|
||||
Provides: libattr-devel:%{_libdir}/libattr.a
|
||||
|
||||
%description -n libattr-devel-static
|
||||
This package contains the static library of libattr which is needed for
|
||||
staticallly linking to programs that make use of extended attributes.
|
||||
|
||||
%check
|
||||
%make_build check
|
||||
|
||||
%install -a
|
||||
# Avoid illegal package names
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
||||
%find_lang %{name} --generate-subpackages
|
||||
|
||||
%ldconfig_scriptlets -n %{lname}
|
||||
|
||||
%files
|
||||
%license doc/COPYING*
|
||||
%doc doc/CHANGES
|
||||
%exclude %{_docdir}/%{name}/CHANGES
|
||||
%exclude %{_docdir}/%{name}/COPYING
|
||||
%exclude %{_docdir}/%{name}/COPYING.LGPL
|
||||
%{_mandir}/man1/*.1*
|
||||
%{_bindir}/attr
|
||||
%{_bindir}/getfattr
|
||||
%{_bindir}/setfattr
|
||||
|
||||
%files -n %{lname}
|
||||
%license doc/COPYING*
|
||||
%{_libdir}/libattr.so.1*
|
||||
%config %{_sysconfdir}/xattr.conf
|
||||
|
||||
%files -n libattr-devel
|
||||
%license doc/COPYING*
|
||||
%{_includedir}/attr/
|
||||
%{_libdir}/pkgconfig/libattr.pc
|
||||
%{_libdir}/libattr.so
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%files -n libattr-devel-static
|
||||
%license doc/COPYING*
|
||||
%{_libdir}/libattr.a
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
111
SPECS/audit/audit.spec
Normal file
111
SPECS/audit/audit.spec
Normal file
@@ -0,0 +1,111 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Jingwiw <wangjingwei@iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: audit
|
||||
Version: 4.0.2
|
||||
Release: %autorelease
|
||||
Summary: Linux kernel audit subsystem utilities
|
||||
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||
URL: https://people.redhat.com/sgrubb/audit/
|
||||
#!RemoteAsset
|
||||
Source: https://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildSystem: autotools
|
||||
BuildOption(conf): --libexecdir=%{_libexecdir}/%{name}
|
||||
BuildOption(conf): --with-apparmor
|
||||
BuildOption(conf): --with-libcap-ng=no
|
||||
BuildOption(conf): --disable-static
|
||||
BuildOption(conf): --with-python3=no
|
||||
BuildOption(conf): --disable-zos-remote
|
||||
|
||||
BuildRequires: autoconf >= 2.12
|
||||
BuildRequires: linux-headers >= 2.6.30
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
Requires: gawk
|
||||
|
||||
%description
|
||||
The audit package contains the user space utilities for storing and
|
||||
processing the records generated by the audit subsystem in the
|
||||
Linux kernel. This package contains the runtime libraries and user space tools.
|
||||
|
||||
%package devel
|
||||
Summary: Header files for the audit framework
|
||||
License: LGPL-2.1-or-later
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
The audit-devel package contains the header files and development libraries
|
||||
needed for developing applications that use the audit framework.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fi
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||
|
||||
%install -a
|
||||
rm -rf %{buildroot}/%{_mandir}/man[578]
|
||||
mkdir -p %{buildroot}/%{_mandir}/man5
|
||||
install -m 0644 docs/libaudit.conf.5 %{buildroot}/%{_mandir}/man5
|
||||
install -m 0644 init.d/libaudit.conf %{buildroot}%{_sysconfdir}
|
||||
install -D -m 0644 ./m4/audit.m4 %{buildroot}%{_datadir}/aclocal/audit.m4
|
||||
|
||||
install -d -m 750 %{buildroot}%{_sysconfdir}/audisp/plugins.d
|
||||
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
# TODO: make test pass.
|
||||
%check
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
# Merged files from libaudit1
|
||||
%{_libdir}/libaudit.so.1
|
||||
%{_libdir}/libaudit.so.1.*
|
||||
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/libaudit.conf
|
||||
%{_libdir}/libauparse.so.0
|
||||
%{_libdir}/libauparse.so.0.*
|
||||
|
||||
%{_sbindir}/*
|
||||
%{_libexecdir}/%{name}/*
|
||||
%config(noreplace) %{_sysconfdir}/audit/*
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/audisp
|
||||
%attr(750,root,root) %dir %{_sysconfdir}/audisp/plugins.d
|
||||
|
||||
%{_bindir}/aulast
|
||||
%{_bindir}/aulastlog
|
||||
%{_bindir}/ausyscall
|
||||
|
||||
%{_unitdir}/audit-rules.service
|
||||
%{_unitdir}/auditd.service
|
||||
|
||||
%dir %{_datadir}/audit-rules
|
||||
%{_datadir}/audit-rules/*.rules
|
||||
%{_datadir}/audit-rules/README-rules
|
||||
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%files devel
|
||||
%doc contrib/plugin
|
||||
%{_libdir}/libaudit.so
|
||||
%{_libdir}/libauparse.so
|
||||
%{_includedir}/libaudit.h
|
||||
%{_includedir}/audit_logging.h
|
||||
%{_includedir}/audit-records.h
|
||||
%{_includedir}/auparse.h
|
||||
%{_includedir}/auparse-defs.h
|
||||
%{_datadir}/aclocal/audit.m4
|
||||
%{_libdir}/pkgconfig/audit.pc
|
||||
%{_libdir}/pkgconfig/auparse.pc
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
108
SPECS/authselect/authselect.spec
Normal file
108
SPECS/authselect/authselect.spec
Normal file
@@ -0,0 +1,108 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: authselect
|
||||
Version: 1.6.1
|
||||
Release: %autorelease
|
||||
Summary: A tool to select system authentication and identity sources
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/authselect/authselect
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/authselect/authselect/archive/%{version}/authselect-%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): --disable-rpath
|
||||
BuildOption(conf): --disable-static
|
||||
BuildOption(conf): --with-completion-dir=%{bash_completions_dir}
|
||||
BuildOption(conf): --with-pythonbin=%{__python3}
|
||||
BuildOption(conf): --disable-nls
|
||||
|
||||
BuildRequires: autoconf automake libtool popt-devel cmocka-devel
|
||||
BuildRequires: m4 python3-devel libselinux-devel chrpath
|
||||
Requires: grep sed systemd gawk coreutils findutils pam >= 1.3.1
|
||||
|
||||
%description
|
||||
Authselect is a tool to configure system authentication and identity sources
|
||||
from a list of supported profiles. It replaces the legacy authconfig tool.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the authselect library
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the development library files and headers for the
|
||||
authselect tool, used for developing front-ends.
|
||||
|
||||
|
||||
%conf -p
|
||||
autoreconf -ivf
|
||||
|
||||
%install -a
|
||||
# fix error 0001: file '/usr/bin/authselect' contains a standard runpath '/usr/lib64' in [/usr/lib64]
|
||||
chrpath -d %{buildroot}%{_bindir}/authselect
|
||||
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
rm -fr %{buildroot}%{_datadir}/doc/%{name}
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%preun
|
||||
# This script must be executed before any files are removed.
|
||||
if [ $1 == 0 ] ; then
|
||||
# Remove authselect symbolic links so all authselect files can be
|
||||
# deleted safely. If this fail, the uninstallation must fail to avoid
|
||||
# breaking the system by removing PAM files. However, the command can
|
||||
# only fail if it can not write to the file system.
|
||||
%{_bindir}/authselect opt-out || exit 1
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
# If this is a new installation select the default configuration.
|
||||
if [ $1 == 1 ] ; then
|
||||
%{_bindir}/authselect select local --force --nobackup &> /dev/null
|
||||
exit 0
|
||||
fi
|
||||
# Apply any changes to profiles (validates configuration first internally)
|
||||
%{_bindir}/authselect apply-changes &> /dev/null
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%dir %{_sysconfdir}/authselect
|
||||
%dir %{_sysconfdir}/authselect/custom
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/authselect.conf
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/dconf-db
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/dconf-locks
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/fingerprint-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/nsswitch.conf
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/password-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/postlogin
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/smartcard-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/authselect/system-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/nsswitch.conf
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/pam.d/fingerprint-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/pam.d/password-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/pam.d/postlogin
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/pam.d/smartcard-auth
|
||||
%ghost %attr(0644,root,root) %{_sysconfdir}/pam.d/system-auth
|
||||
%dir %{_localstatedir}/lib/authselect
|
||||
%ghost %attr(0755,root,root) %{_localstatedir}/lib/authselect/backups/
|
||||
%dir %{_datadir}/authselect
|
||||
%dir %{_datadir}/authselect/vendor
|
||||
%dir %{_datadir}/authselect/default
|
||||
%{_datadir}/authselect/default/*
|
||||
%{_bindir}/authselect
|
||||
%{_libdir}/libauthselect.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/authselect.h
|
||||
%{_libdir}/libauthselect.so
|
||||
%{_libdir}/pkgconfig/authselect.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
34
SPECS/autoconf-archive/autoconf-archive.spec
Normal file
34
SPECS/autoconf-archive/autoconf-archive.spec
Normal file
@@ -0,0 +1,34 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Suyun114 <ziyu.oerv@isrc.iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: autoconf-archive
|
||||
Version: 2024.10.16
|
||||
Release: %autorelease
|
||||
Summary: A Collection of macros for GNU autoconf
|
||||
License: GPL-3.0-or-later WITH Autoconf-exception-3.0
|
||||
URL: https://www.gnu.org/software/autoconf-archive/
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/autoconf-archive/autoconf-archive-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/autoconf-archive/autoconf-archive-%{version}.tar.xz.sig
|
||||
BuildSystem: autotools
|
||||
|
||||
%description
|
||||
The GNU Autoconf Archive is a collection of more than 450 macros for
|
||||
GNU Autoconf that have been contributed as free software by friendly
|
||||
supporters of the cause from all over the Internet.
|
||||
|
||||
%files
|
||||
%doc AUTHORS NEWS README TODO
|
||||
%license COPYING*
|
||||
%{_datadir}/aclocal/*.m4
|
||||
%{_infodir}/autoconf-archive.info*
|
||||
%{_docdir}/autoconf-archive
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
47
SPECS/autoconf/autoconf.spec
Normal file
47
SPECS/autoconf/autoconf.spec
Normal file
@@ -0,0 +1,47 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: autoconf
|
||||
Version: 2.72
|
||||
Release: %autorelease
|
||||
Summary: A GNU Tool for Automatically Configuring Source Code
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://www.gnu.org/software/autoconf
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz.sig
|
||||
Patch0: autoreconf-ltdl.diff
|
||||
BuildRequires: help2man
|
||||
BuildRequires: m4 >= 1.4.16
|
||||
BuildArch: noarch
|
||||
Requires: m4 >= 1.4.16
|
||||
Requires: perl >= 5.10
|
||||
BuildRequires: perl >= 5.10
|
||||
BuildSystem: autotools
|
||||
%description
|
||||
GNU Autoconf is a tool for configuring source code and makefiles. Using
|
||||
autoconf, programmers can create portable and configurable packages,
|
||||
because the person building the package is allowed to specify various
|
||||
configuration options.
|
||||
|
||||
You should install autoconf if you are developing software and would
|
||||
like to create shell scripts to configure your source code packages.
|
||||
|
||||
Note that the autoconf package is not required for the end user who may
|
||||
be configuring software with an autoconf-generated script; autoconf is
|
||||
only required for the generation of the scripts, not their use.
|
||||
|
||||
%files
|
||||
%doc AUTHORS NEWS README TODO
|
||||
%license COPYING
|
||||
%{_bindir}/*
|
||||
%{_datadir}/autoconf
|
||||
%{_infodir}/*.gz
|
||||
%{_mandir}/man1/*.gz
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
21
SPECS/autoconf/autoreconf-ltdl.diff
Normal file
21
SPECS/autoconf/autoreconf-ltdl.diff
Normal file
@@ -0,0 +1,21 @@
|
||||
diff -Pdpru autoconf-2.72/bin/autoreconf.in autoconf-2.72-new/bin/autoreconf.in
|
||||
--- autoconf-2.72/bin/autoreconf.in 2023-12-19 22:13:19.000000000 +0100
|
||||
+++ autoconf-2.72-new/bin/autoreconf.in 2024-02-19 11:01:32.513106786 +0100
|
||||
@@ -595,6 +595,8 @@ sub autoreconf_current_directory ($)
|
||||
'AC_CONFIG_AUX_DIR',
|
||||
'AC_CONFIG_HEADERS',
|
||||
'AC_CONFIG_SUBDIRS',
|
||||
+ 'AC_LIBLTDL_CONVENIENCE',
|
||||
+ 'AC_LIBLTDL_INSTALLABLE',
|
||||
'AC_INIT',
|
||||
'AC_REQUIRE_AUX_FILE',
|
||||
'AC_PROG_LIBTOOL',
|
||||
@@ -620,6 +622,8 @@ sub autoreconf_current_directory ($)
|
||||
|| $macro eq "AM_PROG_LIBTOOL"
|
||||
|| $macro eq "LT_INIT";
|
||||
$uses_libltdl = 1 if $macro eq "LT_CONFIG_LTDL_DIR";
|
||||
+ $uses_libltdl = 1 if $macro eq "AC_LIBLTDL_CONVENIENCE";
|
||||
+ $uses_libltdl = 1 if $macro eq "AC_LIBLTDL_INSTALLABLE";
|
||||
$uses_autoheader = 1 if $macro eq "AC_CONFIG_HEADERS";
|
||||
$uses_automake = 1 if $macro eq "AM_INIT_AUTOMAKE";
|
||||
$uses_intltool = 1 if $macro eq "IT_PROG_INTLTOOL";
|
||||
@@ -0,0 +1,54 @@
|
||||
autofs-5.1.9 - Fix incompatible function pointer types in cyrus-sasl module
|
||||
|
||||
From: Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
Add casts to SASL callbacks to avoid incompatible-pointer-types
|
||||
errors. Avoids a build failure with stricter compilers.
|
||||
|
||||
Signed-off-by: Florian Weimer <fweimer@redhat.com>
|
||||
Signed-off-by: Ian Kent <raven@themaw.net>
|
||||
---
|
||||
CHANGELOG | 2 ++
|
||||
modules/cyrus-sasl.c | 14 +++++++-------
|
||||
2 files changed, 9 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/CHANGELOG b/CHANGELOG
|
||||
index 3e47daa12..fd9d8614a 100644
|
||||
--- a/CHANGELOG
|
||||
+++ b/CHANGELOG
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
+- Fix incompatible function pointer types in cyrus-sasl module.
|
||||
+
|
||||
02/11/2023 autofs-5.1.9
|
||||
- fix kernel mount status notification.
|
||||
- fix fedfs build flags.
|
||||
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
|
||||
index e742eaf8e..78b77942b 100644
|
||||
--- a/modules/cyrus-sasl.c
|
||||
+++ b/modules/cyrus-sasl.c
|
||||
@@ -109,17 +109,17 @@ static int getpass_func(sasl_conn_t *, void *, int, sasl_secret_t **);
|
||||
static int getuser_func(void *, int, const char **, unsigned *);
|
||||
|
||||
static sasl_callback_t callbacks[] = {
|
||||
- { SASL_CB_USER, &getuser_func, NULL },
|
||||
- { SASL_CB_AUTHNAME, &getuser_func, NULL },
|
||||
- { SASL_CB_PASS, &getpass_func, NULL },
|
||||
+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
|
||||
+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
|
||||
+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
|
||||
{ SASL_CB_LIST_END, NULL, NULL },
|
||||
};
|
||||
|
||||
static sasl_callback_t debug_callbacks[] = {
|
||||
- { SASL_CB_LOG, &sasl_log_func, NULL },
|
||||
- { SASL_CB_USER, &getuser_func, NULL },
|
||||
- { SASL_CB_AUTHNAME, &getuser_func, NULL },
|
||||
- { SASL_CB_PASS, &getpass_func, NULL },
|
||||
+ { SASL_CB_LOG, (int(*)(void)) &sasl_log_func, NULL },
|
||||
+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
|
||||
+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
|
||||
+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
|
||||
{ SASL_CB_LIST_END, NULL, NULL },
|
||||
};
|
||||
|
||||
103
SPECS/autofs/autofs.spec
Normal file
103
SPECS/autofs/autofs.spec
Normal file
@@ -0,0 +1,103 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: laokz <zhangkai@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Summary: A tool from automatically mounting and umounting filesystems.
|
||||
Name: autofs
|
||||
Version: 5.1.9
|
||||
Release: %autorelease
|
||||
License: GPL-2.0-or-later
|
||||
#!RemoteAsset
|
||||
Source: https://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-%{version}.tar.gz
|
||||
Patch0: autofs-5.1.9-Fix-incompatible-function-pointer-types-in-cyrus-sasl-module.patch
|
||||
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(libtirpc)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(libnsl)
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: make
|
||||
BuildRequires: m4
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
#BuildRequires: openldap2-devel
|
||||
BuildRequires: cyrus-sasl-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: util-linux
|
||||
BuildRequires: krb5-devel
|
||||
Requires: /bin/bash sed grep /bin/ps
|
||||
|
||||
BuildSystem: autotools
|
||||
BuildOption(conf): --with-systemd
|
||||
BuildOption(conf): --disable-mount-locking
|
||||
BuildOption(conf): --enable-ignore-busy
|
||||
BuildOption(conf): --enable-force-shutdown
|
||||
BuildOption(conf): --without-hesiod
|
||||
BuildOption(conf): --with-libtirpc
|
||||
BuildOption(build): DONTSTRIP=1
|
||||
|
||||
%description
|
||||
autofs is a daemon which automatically mounts filesystems when you use
|
||||
them, and unmounts them later when you are not using them. This can
|
||||
include network filesystems, CD-ROMs, floppies, and so forth.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fiv
|
||||
|
||||
%install
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_unitdir}
|
||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sbindir}
|
||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_libdir}/autofs
|
||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
|
||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/auto.master.d
|
||||
|
||||
make install mandir=%{_mandir} INSTALLROOT=$RPM_BUILD_ROOT
|
||||
echo make -C redhat
|
||||
make -C redhat
|
||||
install -m 644 redhat/autofs.service $RPM_BUILD_ROOT%{_unitdir}/autofs.service
|
||||
install -m 644 redhat/autofs.conf $RPM_BUILD_ROOT%{_sysconfdir}/autofs.conf
|
||||
install -m 644 redhat/autofs.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/autofs
|
||||
install -m 644 samples/auto.master $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
|
||||
install -m 644 samples/auto.misc $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
|
||||
install -m 755 samples/auto.net $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
|
||||
install -m 755 samples/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}/auto.smb
|
||||
install -m 600 samples/autofs_ldap_auth.conf $RPM_BUILD_ROOT%{_sysconfdir}/autofs_ldap_auth.conf
|
||||
|
||||
# No tests.
|
||||
%check
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CREDITS CHANGELOG INSTALL COPY* README* samples/ldap* samples/*.schema
|
||||
%doc samples/am-utils-ldap-id.txt samples/autofs_ldap_auth.conf
|
||||
%config %{_unitdir}/autofs.service
|
||||
%config(noreplace) %{_sysconfdir}/auto.master
|
||||
%config(noreplace) %{_sysconfdir}/autofs.conf
|
||||
%config(noreplace,missingok) %{_sysconfdir}/auto.misc
|
||||
%config(noreplace,missingok) %{_sysconfdir}/auto.net
|
||||
%config(noreplace,missingok) %{_sysconfdir}/auto.smb
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/autofs
|
||||
%config(noreplace) %{_sysconfdir}/autofs_ldap_auth.conf
|
||||
%{_sbindir}/automount
|
||||
%{_libdir}/libautofs.so
|
||||
%dir %{_libdir}/autofs
|
||||
%{_libdir}/autofs/*
|
||||
%{_mandir}/*/*
|
||||
%dir %{_sysconfdir}/auto.master.d
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
44
SPECS/automake/automake.spec
Normal file
44
SPECS/automake/automake.spec
Normal file
@@ -0,0 +1,44 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: automake
|
||||
Version: 1.18.1
|
||||
Release: %autorelease
|
||||
Summary: A Program for Automatically Generating GNU-Style Makefile.in Files
|
||||
# docs ~> GFDL, sources ~> GPLv2+, mkinstalldirs ~> PD and install-sh ~> MIT
|
||||
License: GFDL-1.3-or-later AND GPL-2.0-or-later AND Public-Domain AND MIT
|
||||
URL: https://www.gnu.org/software/automake
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/automake/automake-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/automake/automake-%{version}.tar.xz.sig
|
||||
|
||||
BuildSystem: autotools
|
||||
BuildRequires: autoconf >= 2.69
|
||||
BuildRequires: bison
|
||||
BuildRequires: perl
|
||||
BuildRequires: xz
|
||||
Requires: autoconf >= 2.69
|
||||
Requires: perl
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Automake is a tool for automatically generating "Makefile.in" files
|
||||
from "Makefile.am" files. "Makefile.am" is a series of "make" macro
|
||||
definitions (with rules occasionally thrown in). The generated
|
||||
"Makefile.in" files are compatible with the GNU Makefile standards.
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc %{_docdir}/%{name}
|
||||
%{_bindir}/*
|
||||
%{_infodir}/*
|
||||
%{_mandir}/man1/*
|
||||
%{_datadir}/aclocal*
|
||||
%{_datadir}/automake-*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
55
SPECS/bash-completion/bash-completion.spec
Normal file
55
SPECS/bash-completion/bash-completion.spec
Normal file
@@ -0,0 +1,55 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bash-completion
|
||||
Version: 2.16.0
|
||||
Release: %autorelease
|
||||
Summary: Programmable completion for Bash
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/scop/bash-completion
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
Source1: macros.bash-completion
|
||||
BuildSystem: autotools
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: automake
|
||||
BuildRequires: make
|
||||
|
||||
Requires: bash
|
||||
|
||||
%description
|
||||
bash-completion is a collection of shell functions that take advantage
|
||||
of the programmable completion feature of bash.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains development files for %{name}.
|
||||
|
||||
%install -a
|
||||
# Install macros
|
||||
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.bash-completion
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS CHANGELOG.md CONTRIBUTING.md README.md
|
||||
%doc doc/configuration.md doc/styleguide.md
|
||||
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
|
||||
%{_sysconfdir}/bash_completion.d/000_bash_completion_compat.bash
|
||||
%{_datadir}/bash-completion/
|
||||
%{_rpmconfigdir}/macros.d/macros.bash-completion
|
||||
|
||||
%files devel
|
||||
%{_datadir}/cmake/
|
||||
%{_datadir}/pkgconfig/bash-completion.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
2
SPECS/bash-completion/macros.bash-completion
Normal file
2
SPECS/bash-completion/macros.bash-completion
Normal file
@@ -0,0 +1,2 @@
|
||||
# Do not use %%bash_completion_dir, use %%bash_completions_dir instead!!!
|
||||
%bash_completions_dir %{_datadir}/bash-completion/completions
|
||||
38
SPECS/bash/0001-bash-5.3-patch-1.patch
Normal file
38
SPECS/bash/0001-bash-5.3-patch-1.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From af693115e5bade86cc3a79b3fe7f12f88651c657 Mon Sep 17 00:00:00 2001
|
||||
From: misaka00251 <liuxin@iscas.ac.cn>
|
||||
Date: Thu, 28 Aug 2025 17:59:07 +0800
|
||||
Subject: [PATCH 1/3] bash-5.3 patch 1
|
||||
|
||||
---
|
||||
jobs.c | 2 +-
|
||||
patchlevel.h | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/jobs.c b/jobs.c
|
||||
index 528c90f..cbcc2c1 100644
|
||||
--- a/jobs.c
|
||||
+++ b/jobs.c
|
||||
@@ -3538,7 +3538,7 @@ return_procsub:
|
||||
/* There aren't any dead jobs in the jobs table, but let's see if there's
|
||||
one in bgpids. We can do this in posix mode because we'll remove any
|
||||
one we find from the table, preserving existing semantics. */
|
||||
- if (posixly_correct && (t = bgp_findone ()))
|
||||
+ if (posixly_correct && (flags & JWAIT_WAITING) == 0 && (t = bgp_findone ()))
|
||||
{
|
||||
pid = t->pid;
|
||||
r = t->status;
|
||||
diff --git a/patchlevel.h b/patchlevel.h
|
||||
index 4075274..e473bd5 100644
|
||||
--- a/patchlevel.h
|
||||
+++ b/patchlevel.h
|
||||
@@ -25,6 +25,6 @@
|
||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||
looks for to find the patch level (for the sccs version string). */
|
||||
|
||||
-#define PATCHLEVEL 0
|
||||
+#define PATCHLEVEL 1
|
||||
|
||||
#endif /* _PATCHLEVEL_H_ */
|
||||
--
|
||||
2.50.1
|
||||
|
||||
102
SPECS/bash/0002-bash-5.3-patch-2.patch
Normal file
102
SPECS/bash/0002-bash-5.3-patch-2.patch
Normal file
@@ -0,0 +1,102 @@
|
||||
From 54d213daa7f6ddd46823e6f5919cfd6916886e0b Mon Sep 17 00:00:00 2001
|
||||
From: misaka00251 <liuxin@iscas.ac.cn>
|
||||
Date: Thu, 28 Aug 2025 17:59:22 +0800
|
||||
Subject: [PATCH 2/3] bash-5.3 patch 2
|
||||
|
||||
---
|
||||
lib/sh/anonfile.c | 37 +++----------------------------------
|
||||
patchlevel.h | 2 +-
|
||||
2 files changed, 4 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/lib/sh/anonfile.c b/lib/sh/anonfile.c
|
||||
index c3c3c69..4fe56bd 100644
|
||||
--- a/lib/sh/anonfile.c
|
||||
+++ b/lib/sh/anonfile.c
|
||||
@@ -25,7 +25,7 @@
|
||||
#endif
|
||||
#include <bashtypes.h>
|
||||
|
||||
-#if defined (HAVE_MEMFD_CREATE) || defined (HAVE_SHM_OPEN) || defined (HAVE_SHM_MKSTEMP)
|
||||
+#if defined (HAVE_MEMFD_CREATE) || defined (HAVE_SHM_MKSTEMP)
|
||||
# include <sys/mman.h>
|
||||
#endif
|
||||
#include <filecntl.h>
|
||||
@@ -41,17 +41,7 @@ static int anonunlink (const char *);
|
||||
# define MFD_NOEXEC_SEAL 0
|
||||
#endif
|
||||
|
||||
-#if defined (HAVE_SHM_OPEN)
|
||||
-#ifndef O_NOFOLLOW
|
||||
-# define O_NOFOLLOW 0
|
||||
-#endif
|
||||
-
|
||||
-static int
|
||||
-anonshmunlink (const char *fn)
|
||||
-{
|
||||
- return (shm_unlink (fn));
|
||||
-}
|
||||
-
|
||||
+#if defined (HAVE_SHM_MKSTEMP)
|
||||
static int
|
||||
anonshmopen (const char *name, int flags, char **fn)
|
||||
{
|
||||
@@ -62,35 +52,14 @@ anonshmopen (const char *name, int flags, char **fn)
|
||||
if (fn)
|
||||
*fn = 0;
|
||||
|
||||
-#if defined (HAVE_SHM_MKSTEMP)
|
||||
fname = savestring ("/shm-XXXXXXXXXX");
|
||||
fd = shm_mkstemp (fname);
|
||||
- if (fd < 0)
|
||||
- free (fname);
|
||||
-#endif
|
||||
-
|
||||
- if (fd < 0)
|
||||
- {
|
||||
- fname = sh_mktmpname (name, flags);
|
||||
- fd = shm_open (fname, O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0600);
|
||||
- }
|
||||
-
|
||||
if (fd < 0)
|
||||
{
|
||||
free (fname);
|
||||
return fd;
|
||||
}
|
||||
|
||||
- if (shm_unlink (fname) < 0)
|
||||
- {
|
||||
- int o;
|
||||
- o = errno;
|
||||
- free (fname);
|
||||
- close (fd);
|
||||
- errno = o;
|
||||
- return -1;
|
||||
- }
|
||||
-
|
||||
if (fn)
|
||||
*fn = fname;
|
||||
else
|
||||
@@ -122,7 +91,7 @@ anonopen (const char *name, int flags, char **fn)
|
||||
/* Heuristic */
|
||||
flag = (name && *name == '/') ? MT_TEMPLATE : MT_USETMPDIR;
|
||||
|
||||
-#if defined (HAVE_SHM_OPEN)
|
||||
+#if defined (HAVE_SHM_MKSTEMP)
|
||||
fd = anonshmopen (name, flag, fn);
|
||||
if (fd >= 0)
|
||||
return fd; /* anonshmopen sets *FN appropriately */
|
||||
diff --git a/patchlevel.h b/patchlevel.h
|
||||
index e473bd5..ceabc70 100644
|
||||
--- a/patchlevel.h
|
||||
+++ b/patchlevel.h
|
||||
@@ -25,6 +25,6 @@
|
||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||
looks for to find the patch level (for the sccs version string). */
|
||||
|
||||
-#define PATCHLEVEL 1
|
||||
+#define PATCHLEVEL 2
|
||||
|
||||
#endif /* _PATCHLEVEL_H_ */
|
||||
--
|
||||
2.50.1
|
||||
|
||||
71
SPECS/bash/0003-bash-5.3-patch-3.patch
Normal file
71
SPECS/bash/0003-bash-5.3-patch-3.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
From 310f258fbe98de6ce2ed4fbadf2e72c5b6c5cc99 Mon Sep 17 00:00:00 2001
|
||||
From: misaka00251 <liuxin@iscas.ac.cn>
|
||||
Date: Thu, 28 Aug 2025 17:59:30 +0800
|
||||
Subject: [PATCH 3/3] bash-5.3 patch 3
|
||||
|
||||
---
|
||||
patchlevel.h | 2 +-
|
||||
subst.c | 14 +++++++++++---
|
||||
tests/quotearray.right | 2 +-
|
||||
3 files changed, 13 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/patchlevel.h b/patchlevel.h
|
||||
index ceabc70..a1609dc 100644
|
||||
--- a/patchlevel.h
|
||||
+++ b/patchlevel.h
|
||||
@@ -25,6 +25,6 @@
|
||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||
looks for to find the patch level (for the sccs version string). */
|
||||
|
||||
-#define PATCHLEVEL 2
|
||||
+#define PATCHLEVEL 3
|
||||
|
||||
#endif /* _PATCHLEVEL_H_ */
|
||||
diff --git a/subst.c b/subst.c
|
||||
index e9d3e75..a8ae174 100644
|
||||
--- a/subst.c
|
||||
+++ b/subst.c
|
||||
@@ -3795,9 +3795,9 @@ pos_params (const char *string, int start, int end, int quoted, int pflags)
|
||||
#define EXP_CHAR(s) (s == '$' || s == '`' || s == CTLESC || s == '~')
|
||||
#endif
|
||||
|
||||
-/* We don't perform process substitution in arithmetic expressions, so don't
|
||||
- bother checking for it. */
|
||||
-#define ARITH_EXP_CHAR(s) (s == '$' || s == '`' || s == CTLESC || s == '~')
|
||||
+/* We don't perform process substitution or tilde expansion in arithmetic
|
||||
+ expressions, so don't bother checking for them. */
|
||||
+#define ARITH_EXP_CHAR(s) (s == '$' || s == '`' || s == CTLESC)
|
||||
|
||||
/* If there are any characters in STRING that require full expansion,
|
||||
then call FUNC to expand STRING; otherwise just perform quote
|
||||
@@ -12215,6 +12215,14 @@ string_quote_removal (const char *string, int quoted)
|
||||
*r++ = '\\';
|
||||
break;
|
||||
}
|
||||
+#if defined (ARRAY_VARS)
|
||||
+ /* The only special characters that matter here are []~, since those
|
||||
+ are backslash-quoted in expand_array_subscript but not dequoted
|
||||
+ by the statement following this one. */
|
||||
+ if ((quoted & Q_ARITH) && (c == LBRACK || c == RBRACK || c == '~'))
|
||||
+ ; /* placeholder here */
|
||||
+ else
|
||||
+#endif
|
||||
if (((quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) || dquote) && (sh_syntaxtab[c] & CBSDQUOTE) == 0)
|
||||
*r++ = '\\';
|
||||
/* FALLTHROUGH */
|
||||
diff --git a/tests/quotearray.right b/tests/quotearray.right
|
||||
index a3cc93a..a75ef52 100644
|
||||
--- a/tests/quotearray.right
|
||||
+++ b/tests/quotearray.right
|
||||
@@ -44,7 +44,7 @@ declare -A assoc=(["\` echo >&2 foo\`"]="128" [0]="0" ["]"]="12" ["x],b[\$(echo
|
||||
foo
|
||||
0
|
||||
0
|
||||
-./quotearray1.sub: line 68: 0\],b\[1: arithmetic syntax error: invalid arithmetic operator (error token is "\],b\[1")
|
||||
+./quotearray1.sub: line 68: 0],b[1: arithmetic syntax error: invalid arithmetic operator (error token is "],b[1")
|
||||
declare -a array
|
||||
0
|
||||
0
|
||||
--
|
||||
2.50.1
|
||||
|
||||
108
SPECS/bash/bash.spec
Normal file
108
SPECS/bash/bash.spec
Normal file
@@ -0,0 +1,108 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%define baseversion 5.3
|
||||
%define patchlevel 3
|
||||
|
||||
Name: bash
|
||||
Version: %{baseversion}.%{patchlevel}
|
||||
Release: %autorelease
|
||||
Summary: The GNU Bourne Again shell
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://www.gnu.org/software/bash
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/%{name}/%{name}-%{baseversion}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/%{name}/%{name}-%{baseversion}.tar.gz.sig
|
||||
Source2: dot.bashrc
|
||||
Source3: dot.bash_profile
|
||||
Source4: dot.bash_logout
|
||||
BuildSystem: autotools
|
||||
|
||||
# Official upstream patches
|
||||
# Patches are converted to apply with '-p1'
|
||||
Patch1: 0001-bash-5.3-patch-1.patch
|
||||
Patch2: 0002-bash-5.3-patch-2.patch
|
||||
Patch3: 0003-bash-5.3-patch-3.patch
|
||||
|
||||
# Other patches started from 1000
|
||||
|
||||
BuildOption(conf): --without-bash-malloc
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: glibc-locale
|
||||
BuildRequires: make
|
||||
|
||||
Requires: filesystem
|
||||
Provides: /bin/sh
|
||||
Provides: /bin/bash
|
||||
|
||||
%description
|
||||
The GNU Bourne Again shell (Bash) is a shell or command language
|
||||
interpreter that is compatible with the Bourne shell (sh). Bash
|
||||
incorporates useful features from the Korn shell (ksh) and the C shell
|
||||
(csh). Most sh scripts can be run by bash without modification.
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains development headers for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{baseversion} -p1
|
||||
|
||||
%conf -p
|
||||
autoconf
|
||||
|
||||
%build -p
|
||||
bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/bin\"\'
|
||||
-DSTANDARD_UTILS_PATH=\'\"/usr/bin\"\'
|
||||
-DSYS_BASHRC=\'\"/etc/bash.bashrc\"\'
|
||||
-DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\'
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS
|
||||
-std=gnu17)
|
||||
|
||||
%install -a
|
||||
ln -sf bash %{buildroot}%{_bindir}/sh
|
||||
# user configuration file skeletons
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/skel
|
||||
install -m 640 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bashrc
|
||||
install -m 640 %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.bash_profile
|
||||
install -m 640 %{SOURCE4} %{buildroot}%{_sysconfdir}/skel/.bash_logout
|
||||
sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
|
||||
# Avoid illegal package names
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
||||
%find_lang %{name} --generate-subpackages
|
||||
|
||||
%files
|
||||
%config(noreplace) /etc/skel/.b*
|
||||
%license COPYING
|
||||
%{_bindir}/bash
|
||||
%{_bindir}/sh
|
||||
%{_bindir}/bashbug
|
||||
%{_infodir}/bash.info*
|
||||
%{_mandir}/*/*
|
||||
%dir %{_datadir}/doc/*
|
||||
%{_datadir}/doc/*
|
||||
%{_datadir}/info/*
|
||||
%doc RBASH README
|
||||
%doc doc/{FAQ,INTRO,README,bash{,ref}.html}
|
||||
%{_libdir}/bash/*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
3
SPECS/bash/dot.bash_logout
Normal file
3
SPECS/bash/dot.bash_logout
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# ~/.bash_logout
|
||||
#
|
||||
5
SPECS/bash/dot.bash_profile
Normal file
5
SPECS/bash/dot.bash_profile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
7
SPECS/bash/dot.bashrc
Normal file
7
SPECS/bash/dot.bashrc
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
53
SPECS/bc/bc.spec
Normal file
53
SPECS/bc/bc.spec
Normal file
@@ -0,0 +1,53 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bc
|
||||
Version: 1.08.2
|
||||
Release: %autorelease
|
||||
Summary: GNU Command Line Calculator
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://www.gnu.org/software/bc/
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/bc/bc-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/bc/bc-%{version}.tar.gz.sig
|
||||
BuildRequires: bison
|
||||
BuildRequires: ed
|
||||
BuildRequires: flex
|
||||
BuildRequires: texinfo
|
||||
BuildSystem: autotools
|
||||
|
||||
%description
|
||||
bc is an interpreter that supports numbers of arbitrary precision and
|
||||
the interactive execution of statements. The syntax has some
|
||||
similarities to the C programming language. A standard math library is
|
||||
available through command line options. When used, the math library is
|
||||
read in before any other input files. bc then reads in all other files
|
||||
from the command line, evaluating their contents. Then bc reads from
|
||||
standard input (usually the keyboard).
|
||||
|
||||
The dc program is also included. dc is a calculator that supports
|
||||
reverse-polish notation and allows unlimited precision arithmetic.
|
||||
Macros can also be defined. Normally, dc reads from standard input but
|
||||
can also read in files specified on the command line. A calculator with
|
||||
reverse-polish notation saves numbers to a stack. Arguments to
|
||||
mathematical operations (operands) are "pushed" onto the stack until
|
||||
the next operator is read in, which "pops" its arguments off the stack
|
||||
and "pushes" its results back onto the stack.
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING.LIB COPYING
|
||||
%doc NEWS README FAQ
|
||||
%{_bindir}/bc
|
||||
%{_bindir}/dc
|
||||
%{_infodir}/bc.info*
|
||||
%{_infodir}/dc.info*
|
||||
%{_mandir}/man1/bc.1*
|
||||
%{_mandir}/man1/dc.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
1
SPECS/beakerlib/beakerlib-tmpfiles.conf
Normal file
1
SPECS/beakerlib/beakerlib-tmpfiles.conf
Normal file
@@ -0,0 +1 @@
|
||||
x /var/tmp/beakerlib-*
|
||||
70
SPECS/beakerlib/beakerlib.spec
Normal file
70
SPECS/beakerlib/beakerlib.spec
Normal file
@@ -0,0 +1,70 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: beakerlib
|
||||
Version: 1.31.6
|
||||
Release: %autorelease
|
||||
Summary: A shell-level integration testing library
|
||||
License: GPL-2.0-only
|
||||
URL: https://github.com/%{name}
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/beakerlib/beakerlib/archive/refs/tags/1.31.6.tar.gz
|
||||
Source1: %{name}-tmpfiles.conf
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(build): build
|
||||
BuildOption(install): DESTDIR=%{buildroot}/usr
|
||||
|
||||
BuildRequires: perl
|
||||
BuildRequires: util-linux
|
||||
BuildRequires: make
|
||||
|
||||
Requires: /bin/bash
|
||||
Requires: /bin/sh
|
||||
Requires: coreutils grep gzip iproute sed tar util-linux which
|
||||
Requires: /usr/bin/bc /usr/bin/time
|
||||
Requires: (wget or curl)
|
||||
Requires: nfs-utils
|
||||
Recommends: /usr/bin/perl python3-lxml /usr/bin/xmllint
|
||||
|
||||
%description
|
||||
The BeakerLib project provides a library of shell functions to be used for
|
||||
writing operating system level integration tests.
|
||||
|
||||
%package vim-syntax
|
||||
Summary: Files for syntax highlighting BeakerLib tests in VIM editor
|
||||
Requires: vim
|
||||
BuildRequires: vim
|
||||
BuildRequires: make
|
||||
|
||||
%description vim-syntax
|
||||
Files for syntax highlighting BeakerLib tests in VIM editor
|
||||
|
||||
# No configure
|
||||
%conf
|
||||
|
||||
%install -a
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%files
|
||||
%dir %{_datadir}/beakerlib
|
||||
%dir %{_datadir}/beakerlib/xslt-templates
|
||||
%{_datadir}/beakerlib/dictionary.vim
|
||||
%{_datadir}/beakerlib/*.sh
|
||||
%{_datadir}/beakerlib/xslt-templates/*
|
||||
%{_bindir}/beakerlib-*
|
||||
%{_mandir}/man1/beakerlib*1*
|
||||
%doc %{_docdir}/beakerlib
|
||||
%config %{_tmpfilesdir}/beakerlib.conf
|
||||
|
||||
%files vim-syntax
|
||||
%{_datadir}/vim/vimfiles/after/ftdetect/beakerlib.vim
|
||||
%{_datadir}/vim/vimfiles/after/syntax/beakerlib.vim
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
40
SPECS/bindfs/bindfs.spec
Normal file
40
SPECS/bindfs/bindfs.spec
Normal file
@@ -0,0 +1,40 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bindfs
|
||||
Version: 1.17.7
|
||||
Release: %autorelease
|
||||
Summary: A FUSE filesystem for mirroring a directory with altered permissions
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://bindfs.org/
|
||||
#!RemoteAsset
|
||||
Source: https://bindfs.org/downloads/bindfs-%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: fuse-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: autoconf automake
|
||||
|
||||
Requires: fuse
|
||||
|
||||
%description
|
||||
bindfs is a FUSE filesystem for mirroring a directory to another directory
|
||||
and altering permission bits in the mirror.
|
||||
|
||||
# TODO: enabel when we have ruby.
|
||||
%check
|
||||
|
||||
|
||||
%files
|
||||
%doc ChangeLog README.md
|
||||
%license COPYING
|
||||
%{_bindir}/bindfs
|
||||
%{_mandir}/man1/bindfs.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
174
SPECS/binutils/binutils.spec
Normal file
174
SPECS/binutils/binutils.spec
Normal file
@@ -0,0 +1,174 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: laokz <zhangkai@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
# disable libalternatives for now until it's changed to not
|
||||
# introduce cmake/cunit-tests into the bootstrap cycle
|
||||
%bcond libalternatives 0
|
||||
|
||||
%bcond bootstrap 1
|
||||
|
||||
Name: binutils
|
||||
Summary: GNU Binutils
|
||||
License: GFDL-1.3-only AND GPL-3.0-or-later
|
||||
Version: 2.45
|
||||
Release: %autorelease
|
||||
URL: https://www.gnu.org/software/binutils/
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2.sig
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: bison
|
||||
BuildRequires: dejagnu
|
||||
BuildRequires: flex
|
||||
# for the testsuite
|
||||
BuildRequires: glibc-static
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: zlib-devel-static
|
||||
BuildRequires: libzstd-devel
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
%else
|
||||
PreReq: update-alternatives
|
||||
%endif
|
||||
|
||||
BuildSystem: autotools
|
||||
BuildOption(build): -C build-dir
|
||||
|
||||
%description
|
||||
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
|
||||
size, strings, and strip. These utilities are needed whenever you want
|
||||
to compile a program or kernel.
|
||||
|
||||
%package devel
|
||||
Summary: GNU binutils (BFD development files)
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: binutils = %{version}-%{release}
|
||||
Requires: zlib-devel
|
||||
Requires: libzstd-devel
|
||||
Provides: binutils:${%_includedir}/bfd.h
|
||||
|
||||
%description devel
|
||||
This package includes header files and static libraries necessary to
|
||||
build programs which use the GNU BFD library, which is part of
|
||||
binutils.
|
||||
|
||||
%conf
|
||||
%define _configure ../configure
|
||||
mkdir build-dir
|
||||
cd build-dir
|
||||
%configure --with-bugurl=%{_vendor_bug_url} \
|
||||
--with-separate-debug-dir=%{_prefix}/lib/debug \
|
||||
--with-pic --with-system-zlib \
|
||||
--enable-plugins \
|
||||
--enable-threads \
|
||||
--enable-compressed-debug-sections=gas \
|
||||
--enable-new-dtags \
|
||||
--enable-default-hash-style=both \
|
||||
--enable-compressed-debug-sections=all \
|
||||
--enable-shared \
|
||||
%if %{with bootstrap} && 0%{?do_profiling}
|
||||
--enable-pgo-build=lto \
|
||||
%endif
|
||||
--enable-colored-disassembly
|
||||
%undefine _configure
|
||||
|
||||
|
||||
%install
|
||||
cd build-dir
|
||||
make DESTDIR=%{buildroot} install-info install
|
||||
make DESTDIR=%{buildroot} install-bfd install-opcodes
|
||||
if [ ! -f "%{buildroot}/%_bindir/ld.bfd" ]; then
|
||||
mv "%{buildroot}/%_bindir"/{ld,ld.bfd};
|
||||
else
|
||||
rm -f "%{buildroot}/%_bindir/ld";
|
||||
fi
|
||||
%if ! 0%{with libalternatives}
|
||||
mkdir -p "%{buildroot}/%_sysconfdir/alternatives";
|
||||
# Keep older versions of brp-symlink happy
|
||||
ln -s "%_sysconfdir/alternatives/ld" "%{buildroot}/%_bindir/ld";
|
||||
%else
|
||||
ln -s %{_bindir}/alts "%{buildroot}/%_bindir/ld";
|
||||
mkdir -p %{buildroot}%{_datadir}/libalternatives/ld;
|
||||
cat > %{buildroot}%{_datadir}/libalternatives/ld/1.conf <<EOF
|
||||
binary=%{_bindir}/ld.bfd
|
||||
EOF
|
||||
%endif
|
||||
|
||||
chmod a+x %{buildroot}%{_libdir}/libbfd-*
|
||||
chmod a+x %{buildroot}%{_libdir}/libopcodes-*
|
||||
# No shared linking outside binutils
|
||||
rm %{buildroot}%{_libdir}/lib{bfd,opcodes}.so
|
||||
rm %{buildroot}%{_libdir}/lib{bfd,opcodes,ctf,ctf-nobfd}.la
|
||||
rm -f %{buildroot}%{_libdir}/gprofng/lib*.{l,}a
|
||||
# Remove unwanted files to shut up rpm
|
||||
rm -f %{buildroot}%{_infodir}/configure* $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||
rm -f %{buildroot}%{_mandir}/man1/dlltool.1 $RPM_BUILD_ROOT%{_mandir}/man1/windres.1 $RPM_BUILD_ROOT%{_mandir}/man1/windmc.1
|
||||
cd ..
|
||||
|
||||
%find_lang %{name} --all-name --generate-subpackages
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%if ! %{with libalternatives}
|
||||
"%_sbindir/update-alternatives" --install \
|
||||
"%_bindir/ld" ld "%_bindir/ld.bfd" 2
|
||||
%endif
|
||||
|
||||
%if %{with libalternatives}
|
||||
%pre
|
||||
# removing old update-alternatives entries
|
||||
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
||||
"%_sbindir/update-alternatives" --remove ld "%_bindir/ld.bfd";
|
||||
fi;
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if ! %{with libalternatives}
|
||||
if [ "$1" = 0 ]; then
|
||||
"%_sbindir/update-alternatives" --remove ld "%_bindir/ld.bfd";
|
||||
fi;
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_prefix}/%{_host}/bin/*
|
||||
%{_prefix}/%{_host}/lib/ldscripts
|
||||
%{_libdir}/libsframe.so.*
|
||||
%{_libdir}/libgprofng.so.*
|
||||
%{_libdir}/libctf.so.*
|
||||
%{_libdir}/libctf-nobfd.so.*
|
||||
%dir %{_libdir}/bfd-plugins
|
||||
%{_libdir}/bfd-plugins/libdep.so
|
||||
%{_bindir}/*
|
||||
%if ! 0%{with libalternatives}
|
||||
%ghost %_sysconfdir/alternatives/ld
|
||||
%else
|
||||
%dir %{_datadir}/libalternatives
|
||||
%dir %{_datadir}/libalternatives/ld
|
||||
%{_datadir}/libalternatives/ld/2.conf
|
||||
%endif
|
||||
%doc %{_infodir}/*.gz
|
||||
%{_libdir}/lib*-%{version}*.so
|
||||
%doc %{_mandir}/man1/*.1.gz
|
||||
%dir %{_libdir}/gprofng/
|
||||
%{_libdir}/gprofng/lib*.so
|
||||
%{_sysconfdir}/gprofng.rc
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/lib*.*a
|
||||
%{_libdir}/libctf.so
|
||||
%{_libdir}/libctf-nobfd.so
|
||||
%{_libdir}/libsframe.so
|
||||
%{_libdir}/libgprofng.so
|
||||
%{_docdir}/gprofng/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
53
SPECS/bison/bison.spec
Normal file
53
SPECS/bison/bison.spec
Normal file
@@ -0,0 +1,53 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bison
|
||||
Version: 3.8.2
|
||||
Release: %autorelease
|
||||
Summary: The GNU Parser Generator
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
URL: https://www.gnu.org/software/bison/bison.html
|
||||
#!RemoteAsset
|
||||
Source: https://ftpmirror.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source: https://ftpmirror.gnu.org/gnu/bison/bison-%{version}.tar.xz.sig
|
||||
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
Requires: m4
|
||||
|
||||
%description
|
||||
Bison is a parser generator similar to yacc(1).
|
||||
|
||||
%install -a
|
||||
%find_lang bison-runtime --all-name --generate-subpackages
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README THANKS TODO
|
||||
%exclude %{_docdir}/%{name}/COPYING
|
||||
%exclude %{_docdir}/%{name}/AUTHORS
|
||||
%exclude %{_docdir}/%{name}/NEWS
|
||||
%exclude %{_docdir}/%{name}/README
|
||||
%exclude %{_docdir}/%{name}/THANKS
|
||||
%exclude %{_docdir}/%{name}/TODO
|
||||
%doc %{_docdir}/%{name}/examples
|
||||
%dir %{_datadir}/aclocal
|
||||
%{_bindir}/bison
|
||||
%{_bindir}/yacc
|
||||
%{_libdir}/liby.a
|
||||
%{_datadir}/bison
|
||||
%dir %{_datadir}/aclocal
|
||||
%{_datadir}/aclocal/bison-i18n.m4
|
||||
%{_infodir}/bison.info*.gz
|
||||
%{_mandir}/man1/bison.1%{?ext_man}
|
||||
%{_mandir}/man1/yacc.1%{?ext_man}
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
62
SPECS/blake3/blake3.spec
Normal file
62
SPECS/blake3/blake3.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Mahno <bestwow2014@gmail.com>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: blake3
|
||||
Version: 1.8.2
|
||||
Release: %autorelease
|
||||
Summary: Official C implementation of the BLAKE3 cryptographic hash function
|
||||
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/BLAKE3-team/BLAKE3/
|
||||
#!RemoteAsset
|
||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libasan8 libubsan1
|
||||
# tbb is not enabled, will be supported in the future
|
||||
BuildSystem: cmake
|
||||
BuildOption(conf): -S c
|
||||
|
||||
%description
|
||||
BLAKE3 is a cryptographic hash function that is:
|
||||
- Much faster than MD5, SHA-1, SHA-2, SHA-3, and BLAKE2.
|
||||
- Secure, unlike MD5 and SHA-1. And secure against length extension, unlike
|
||||
SHA-2.
|
||||
- Highly parallelizable across any number of threads and SIMD lanes, because
|
||||
it's a Merkle tree on the inside.
|
||||
- Capable of verified streaming and incremental updates, again because it's a
|
||||
Merkle tree.
|
||||
- A PRF, MAC, KDF, and XOF, as well as a regular hash.
|
||||
- One algorithm with no variants, which is fast on x86-64 and also on smaller
|
||||
architectures.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary} - development files
|
||||
Requires: %{name}
|
||||
|
||||
%description devel
|
||||
Development files for the %{name} library.
|
||||
|
||||
%build -p
|
||||
export ASMFLAGS="%{build_cflags}"
|
||||
|
||||
%files
|
||||
%license LICENSE_A2
|
||||
%{_libdir}/libblake3.so.0
|
||||
%{_libdir}/libblake3.so.%{version}
|
||||
|
||||
%files devel
|
||||
%doc c/example.c
|
||||
%doc c/README.md
|
||||
%{_includedir}/blake3.h
|
||||
%{_libdir}/libblake3.so
|
||||
%{_libdir}/cmake/blake3/
|
||||
%{_libdir}/pkgconfig/libblake3.pc
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
232
SPECS/bluez/bluez.spec
Normal file
232
SPECS/bluez/bluez.spec
Normal file
@@ -0,0 +1,232 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%bcond deprecated 0
|
||||
|
||||
Name: bluez
|
||||
Version: 5.84
|
||||
Release: %autorelease
|
||||
Summary: Bluetooth tools and daemons
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://www.bluez.org/
|
||||
#!RemoteAsset
|
||||
Source: https://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): --enable-tools --enable-library --enable-external-ell
|
||||
BuildOption(conf): --disable-optimization
|
||||
%if %{with deprecated}
|
||||
BuildOption(conf): --enable-deprecated
|
||||
%endif
|
||||
BuildOption(conf): --enable-sixaxis --enable-cups --enable-nfc --enable-mesh
|
||||
BuildOption(conf): --enable-hid2hci --enable-testing --enable-experimental
|
||||
BuildOption(conf): --enable-bap --enable-bass --enable-mcp --enable-micp
|
||||
BuildOption(conf): --enable-csip --enable-vcp
|
||||
BuildOption(conf): --with-systemdsystemunitdir=%{_unitdir}
|
||||
BuildOption(conf): --with-systemduserunitdir=%{_userunitdir}
|
||||
BuildOption(conf): --disable-manpages
|
||||
|
||||
BuildRequires: dbus-devel >= 1.6 glib-devel libical-devel
|
||||
BuildRequires: make readline-devel json-c-devel systemd-devel systemd
|
||||
BuildRequires: cups-devel libtool automake autoconf pkgconfig
|
||||
BuildRequires: pkgconfig(ell)
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
Requires: dbus >= 1.6
|
||||
%systemd_requires
|
||||
|
||||
%description
|
||||
Utilities for use in Bluetooth applications. This is the main package containing
|
||||
the core daemon and utilities.
|
||||
|
||||
%package cups
|
||||
Summary: CUPS printer backend for Bluetooth printers
|
||||
Requires: %{name} = %{version}
|
||||
%description cups
|
||||
This package contains the CUPS backend for Bluetooth printers.
|
||||
|
||||
%if %{with deprecated}
|
||||
%package deprecated
|
||||
Summary: Deprecated Bluetooth applications
|
||||
Requires: %{name} = %{version}
|
||||
%description deprecated
|
||||
Deprecated Bluetooth utilities like hciconfig, hcitool, etc.
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: Development libraries for Bluetooth applications
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
Development libraries and headers for use in Bluetooth applications.
|
||||
|
||||
%package hid2hci
|
||||
Summary: Put HID proxying bluetooth HCI's into HCI mode
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description hid2hci
|
||||
Utility to switch supported Bluetooth devices into regular HCI mode.
|
||||
|
||||
%package mesh
|
||||
Summary: Bluetooth mesh services
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description mesh
|
||||
Services for Bluetooth mesh networking.
|
||||
|
||||
%package obexd
|
||||
Summary: Object Exchange daemon for sharing content
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description obexd
|
||||
Object Exchange daemon for sharing files, contacts etc over Bluetooth.
|
||||
|
||||
%conf -p
|
||||
autoreconf -vif
|
||||
|
||||
%install -a
|
||||
|
||||
# "make install" fails to install gatttool, necessary for Bluetooth Low Energy
|
||||
# Red Hat Bugzilla bug #1141909, Debian bug #720486
|
||||
%if %{with deprecated}
|
||||
install -m0755 attrib/gatttool %{buildroot}%{_bindir}
|
||||
%endif
|
||||
|
||||
# "make install" fails to install avinfo
|
||||
# Red Hat Bugzilla bug #1699680
|
||||
install -m0755 tools/avinfo %{buildroot}%{_bindir}
|
||||
|
||||
# btmgmt is not installed by "make install", but it is useful for debugging
|
||||
# some issues and to set the MAC address on HCIs which don't have their
|
||||
# MAC address configured
|
||||
install -m0755 tools/btmgmt %{buildroot}%{_bindir}
|
||||
|
||||
find %{buildroot} -name '*.la' -delete
|
||||
|
||||
# Remove the cups backend from libdir, and install it in /usr/lib whatever the install
|
||||
if test -d %{buildroot}/usr/lib64/cups ; then
|
||||
install -D -m0755 %{buildroot}/usr/lib64/cups/backend/bluetooth %{buildroot}%_cups_serverbin/backend/bluetooth
|
||||
rm -rf %{buildroot}%{_libdir}/cups
|
||||
fi
|
||||
|
||||
rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/udev/*.rules ${RPM_BUILD_ROOT}/usr/lib/udev/rules.d/*.rules
|
||||
install -D -p -m0644 tools/hid2hci.rules %{buildroot}/%{_udevrulesdir}/97-hid2hci.rules
|
||||
install -d -m0755 %{buildroot}/%{_localstatedir}/lib/bluetooth/mesh
|
||||
|
||||
#copy bluetooth config files
|
||||
install -D -p -m0644 src/main.conf %{buildroot}/etc/bluetooth/main.conf
|
||||
install -D -p -m0644 mesh/mesh-main.conf %{buildroot}/etc/bluetooth/mesh-main.conf
|
||||
install -D -p -m0644 profiles/input/input.conf %{buildroot}/etc/bluetooth/input.conf
|
||||
install -D -p -m0644 profiles/network/network.conf %{buildroot}/etc/bluetooth/network.conf
|
||||
install -d -m 755 %{buildroot}%{_libexecdir}/bluetooth/
|
||||
|
||||
# Install the HCI emulator, useful for testing
|
||||
install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_post bluetooth.service
|
||||
|
||||
%preun
|
||||
%systemd_preun bluetooth.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart bluetooth.service
|
||||
|
||||
%post hid2hci
|
||||
/sbin/udevadm trigger --subsystem-match=usb
|
||||
|
||||
%post mesh
|
||||
%systemd_user_post bluetooth-mesh.service
|
||||
|
||||
%preun mesh
|
||||
%systemd_user_preun bluetooth-mesh.service
|
||||
|
||||
%post obexd
|
||||
%systemd_user_post obex.service
|
||||
|
||||
%preun obexd
|
||||
%systemd_user_preun obex.service
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS ChangeLog
|
||||
%attr(0555, root, root) %dir %{_sysconfdir}/bluetooth
|
||||
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
|
||||
%config(noreplace) %{_sysconfdir}/bluetooth/input.conf
|
||||
%config(noreplace) %{_sysconfdir}/bluetooth/network.conf
|
||||
%{_bindir}/avinfo
|
||||
%{_bindir}/bluemoon
|
||||
%{_bindir}/bluetoothctl
|
||||
%{_bindir}/btattach
|
||||
%{_bindir}/btmgmt
|
||||
%{_bindir}/btmon
|
||||
%{_bindir}/hex2hcd
|
||||
%{_bindir}/mpris-proxy
|
||||
%dir %{_libexecdir}/bluetooth
|
||||
%{_libexecdir}/bluetooth/bluetoothd
|
||||
%attr(0700, root, root) %dir %{_localstatedir}/lib/bluetooth
|
||||
%dir %{_localstatedir}/lib/bluetooth/mesh
|
||||
%{_datadir}/dbus-1/system.d/bluetooth.conf
|
||||
%{_datadir}/dbus-1/system-services/org.bluez.service
|
||||
%{_unitdir}/bluetooth.service
|
||||
%{_userunitdir}/mpris-proxy.service
|
||||
%{_datadir}/zsh/site-functions/_bluetoothctl
|
||||
%{_libdir}/libbluetooth.so.*
|
||||
|
||||
%if %{with deprecated}
|
||||
%files deprecated
|
||||
%{_bindir}/ciptool
|
||||
%{_bindir}/gatttool
|
||||
%{_bindir}/hciattach
|
||||
%{_bindir}/hciconfig
|
||||
%{_bindir}/hcidump
|
||||
%{_bindir}/hcitool
|
||||
%{_bindir}/meshctl
|
||||
%{_bindir}/rfcomm
|
||||
%{_bindir}/sdptool
|
||||
%endif
|
||||
|
||||
|
||||
%files devel
|
||||
%doc doc/*txt
|
||||
%{_bindir}/isotest
|
||||
%{_bindir}/l2test
|
||||
%{_bindir}/l2ping
|
||||
%{_bindir}/rctest
|
||||
%{_libdir}/libbluetooth.so
|
||||
%{_includedir}/bluetooth
|
||||
%{_libdir}/pkgconfig/bluez.pc
|
||||
%dir %{_libexecdir}/bluetooth
|
||||
%{_libexecdir}/bluetooth/btvirt
|
||||
|
||||
%files cups
|
||||
%_cups_serverbin/backend/bluetooth
|
||||
%files hid2hci
|
||||
/usr/lib/udev/hid2hci
|
||||
%{_udevrulesdir}/97-hid2hci.rules
|
||||
|
||||
%files mesh
|
||||
%config(noreplace) %{_sysconfdir}/bluetooth/mesh-main.conf
|
||||
%{_bindir}/mesh-cfgclient
|
||||
%{_bindir}/mesh-cfgtest
|
||||
%{_datadir}/dbus-1/system.d/bluetooth-mesh.conf
|
||||
%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
|
||||
%{_libexecdir}/bluetooth/bluetooth-meshd
|
||||
%{_unitdir}/bluetooth-mesh.service
|
||||
%{_localstatedir}/lib/bluetooth/mesh
|
||||
|
||||
%files obexd
|
||||
%{_libexecdir}/bluetooth/obexd
|
||||
%{_datadir}/dbus-1/services/org.bluez.obex.service
|
||||
/usr/lib/systemd/user/dbus-org.bluez.obex.service
|
||||
%{_datadir}/dbus-1/system.d/obex.conf
|
||||
%{_userunitdir}/obex.service
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
71
SPECS/boost/0001-boost-1.81.0-build-optflags.patch
Normal file
71
SPECS/boost/0001-boost-1.81.0-build-optflags.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
From ebc90bc3e372dc8e5db21f79d2a79e4f5c4d01ee Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Palka <ppalka@redhat.com>
|
||||
Date: Mon, 4 Dec 2023 09:24:20 -0500
|
||||
Subject: [PATCH] Adjust options for Fedora package build
|
||||
|
||||
---
|
||||
tools/build/src/tools/gcc.jam | 30 +++++++++++++++---------------
|
||||
1 file changed, 15 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
|
||||
index 834f5e1bf..c753afc23 100644
|
||||
--- a/tools/build/src/tools/gcc.jam
|
||||
+++ b/tools/build/src/tools/gcc.jam
|
||||
@@ -513,7 +513,7 @@ rule compile.fortran ( targets * : sources * : properties * )
|
||||
|
||||
actions compile.c++ bind PCH_FILE
|
||||
{
|
||||
- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>:T)"
|
||||
+ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>:T)"
|
||||
}
|
||||
|
||||
actions compile.c bind PCH_FILE
|
||||
@@ -523,7 +523,7 @@ actions compile.c bind PCH_FILE
|
||||
|
||||
actions compile.c++.preprocess bind PCH_FILE
|
||||
{
|
||||
- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" "$(>:T)" -E >"$(<)"
|
||||
+ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) $(INCLUDE-GCH)$(_)"$(PCH_FILE:S=)" $(INCLUDE-PCH)$(_)"$(PCH_FILE)" -I"$(INCLUDES)" -include$(_)"$(FORCE_INCLUDES)" "$(>:T)" -E >"$(<)"
|
||||
}
|
||||
|
||||
actions compile.c.preprocess bind PCH_FILE
|
||||
@@ -627,22 +627,22 @@ actions compile.c.pch
|
||||
###
|
||||
|
||||
# Declare flags and action for compilation.
|
||||
-toolset.flags gcc.compile OPTIONS <optimization>off : -O0 ;
|
||||
-toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
|
||||
-toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
|
||||
-toolset.flags gcc.compile OPTIONS <optimization>minimal : -O1 ;
|
||||
+toolset.flags gcc.compile OPTIONS <optimization>off : ;
|
||||
+toolset.flags gcc.compile OPTIONS <optimization>speed : ;
|
||||
+toolset.flags gcc.compile OPTIONS <optimization>space : ;
|
||||
+toolset.flags gcc.compile OPTIONS <optimization>minimal : ;
|
||||
toolset.flags gcc.compile OPTIONS <optimization>debug : -Og ;
|
||||
|
||||
-toolset.flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
|
||||
-toolset.flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
|
||||
-toolset.flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
|
||||
+toolset.flags gcc.compile OPTIONS <inlining>off : ;
|
||||
+toolset.flags gcc.compile OPTIONS <inlining>on : ;
|
||||
+toolset.flags gcc.compile OPTIONS <inlining>full : ;
|
||||
|
||||
-toolset.flags gcc.compile OPTIONS <warnings>off : -w ;
|
||||
-toolset.flags gcc.compile OPTIONS <warnings>on : -Wall ;
|
||||
-toolset.flags gcc.compile OPTIONS <warnings>all : -Wall ;
|
||||
-toolset.flags gcc.compile OPTIONS <warnings>extra : -Wall -Wextra ;
|
||||
-toolset.flags gcc.compile OPTIONS <warnings>pedantic : -Wall -Wextra -pedantic ;
|
||||
-toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings>off : ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings>on : ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings>all : ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings>extra : ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings>pedantic : ;
|
||||
+toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : ;
|
||||
|
||||
toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
|
||||
toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
29
SPECS/boost/0002-boost-1.78.0-no-rpath.patch
Normal file
29
SPECS/boost/0002-boost-1.78.0-no-rpath.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
--- boost_1_73_0/tools/boost_install/boost-install.jam~ 2020-04-24 20:21:50.330267122 +0100
|
||||
+++ boost_1_73_0/tools/boost_install/boost-install.jam 2020-04-24 20:22:16.818360540 +0100
|
||||
@@ -652,25 +652,6 @@
|
||||
"get_filename_component(_BOOST_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
|
||||
: true ;
|
||||
|
||||
- if [ path.is-rooted $(cmakedir) ]
|
||||
- {
|
||||
- local cmakedir-native = [ path-native-fwd $(cmakedir) ] ;
|
||||
-
|
||||
- print.text
|
||||
-
|
||||
- ""
|
||||
- "# If the computed and the original directories are symlink-equivalent, use original"
|
||||
- "if(EXISTS \"$(cmakedir-native)\")"
|
||||
- " get_filename_component(_BOOST_CMAKEDIR_ORIGINAL \"$(cmakedir-native)\" REALPATH)"
|
||||
- " if(_BOOST_CMAKEDIR STREQUAL _BOOST_CMAKEDIR_ORIGINAL)"
|
||||
- " set(_BOOST_CMAKEDIR \"$(cmakedir-native)\")"
|
||||
- " endif()"
|
||||
- " unset(_BOOST_CMAKEDIR_ORIGINAL)"
|
||||
- "endif()"
|
||||
- ""
|
||||
- : true ;
|
||||
- }
|
||||
-
|
||||
get-dir "_BOOST_INCLUDEDIR" : $(includedir) ;
|
||||
|
||||
if $(library-type) = INTERFACE
|
||||
|
||||
26
SPECS/boost/0003-boost-1.78.0-b2-build-flags.patch
Normal file
26
SPECS/boost/0003-boost-1.78.0-b2-build-flags.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From 1ded9b9c219542442b3c10af815e5413a2a89c75 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas W Rodgers <trodgers@redhat.com>
|
||||
Date: Tue, 1 Mar 2022 10:03:34 -0800
|
||||
Subject: [PATCH] Adjust b2 build flags for Fedora Packaging
|
||||
|
||||
---
|
||||
src/engine/build.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/build/src/engine/build.sh b/tools/build/src/engine/build.sh
|
||||
index f1ad08cb..ab58deba 100755
|
||||
--- a/tools/build/src/engine/build.sh
|
||||
+++ b/tools/build/src/engine/build.sh
|
||||
@@ -323,7 +323,7 @@ case "${B2_TOOLSET}" in
|
||||
|
||||
gcc|gcc-*)
|
||||
CXX_VERSION_OPT=${CXX_VERSION_OPT:---version}
|
||||
- B2_CXXFLAGS_RELEASE="-O2 -s"
|
||||
+ B2_CXXFLAGS_RELEASE="${CXXFLAGS} ${LDFLAGS}"
|
||||
B2_CXXFLAGS_DEBUG="-O0 -g"
|
||||
;;
|
||||
|
||||
--
|
||||
2.35.1
|
||||
|
||||
|
||||
144
SPECS/boost/b2.1
Normal file
144
SPECS/boost/b2.1
Normal file
@@ -0,0 +1,144 @@
|
||||
.TH "b2" 1 "Sat Nov 19 2011" "Doxygen" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
b2 \- Command-line utility to build Boost-related C++ projects with Boost\&.Build
|
||||
.SH "SYNOPSIS"
|
||||
.PP
|
||||
\fBb2\fP \fC[-a] [-dx] [-fx] [-jx] [-lx] [-n] [-ox] [-px] [-q] [-sx=y] [-tx] [-v] [--x]\fP
|
||||
.PP
|
||||
\fIb2\fP accepts the following options:
|
||||
.PP
|
||||
\fB-a\fP
|
||||
.br
|
||||
Build all targets, even if they are current
|
||||
.PP
|
||||
\fB-dx\fP
|
||||
.br
|
||||
Set the debug level to x (0-9)
|
||||
.PP
|
||||
\fB-fx\fP
|
||||
.br
|
||||
Read x instead of Jambase
|
||||
.PP
|
||||
\fB-jx\fP
|
||||
.br
|
||||
Run up to x shell commands concurrently
|
||||
.PP
|
||||
\fB-lx\fP
|
||||
.br
|
||||
Limit actions to x number of seconds after which they are stopped
|
||||
.PP
|
||||
\fB-n\fP
|
||||
.br
|
||||
Don't actually execute the updating actions
|
||||
.PP
|
||||
\fB-ox\fP
|
||||
.br
|
||||
Write the updating actions to file x
|
||||
.PP
|
||||
\fB-px\fP
|
||||
.br
|
||||
x=0, pipes action stdout and stderr merged into action output
|
||||
.PP
|
||||
\fB-q\fP
|
||||
.br
|
||||
Quit quickly as soon as a target fails
|
||||
.PP
|
||||
\fB-sx=y\fP
|
||||
.br
|
||||
Set variable x=y, overriding environment
|
||||
.PP
|
||||
\fB-tx\fP
|
||||
.br
|
||||
Rebuild x, even if it is up-to-date
|
||||
.PP
|
||||
\fB-v\fP
|
||||
.br
|
||||
Print the version of b2 and exit
|
||||
.PP
|
||||
\fB--x\fP
|
||||
.br
|
||||
Option is ignored
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
This section provides the information necessary to create your own projects using \fIBoost\&.Build\fP The information provided here is relatively high-level, and Chapter 6, Reference as well as the on-line help system must be used to obtain low-level documentation (see --help)
|
||||
.PP
|
||||
\fIBoost\&.Build\fP actually consists of two parts - \fIBoost\&.Jam\fP, a build engine with its own interpreted language, and \fIBoost\&.Build\fP itself, implemented in \fIBoost\&.Jam's\fP language\&. The chain of events when you type b2 on the command line is as follows:
|
||||
.IP "\(bu" 2
|
||||
\fIBoost\&.Jam\fP tries to find \fIBoost\&.Build\fP and loads the top-level module\&. The exact process is described in the section called “Initialization”
|
||||
.PP
|
||||
.PP
|
||||
.IP "\(bu" 2
|
||||
The top-level module loads user-defined configuration files, \fIuser-config\&.jam\fP and \fIsite-config\&.jam\fP, which define available toolsets
|
||||
.PP
|
||||
.PP
|
||||
.IP "\(bu" 2
|
||||
The \fIJamfile\fP in the current directory is read That in turn might cause reading of further Jamfiles\&. As a result, a tree of projects is created, with targets inside projects
|
||||
.PP
|
||||
.PP
|
||||
.IP "\(bu" 2
|
||||
Finally, using the build request specified on the command line, \fIBoost\&.Build\fP decides which targets should be built and how\&. That information is passed back to \fIBoost\&.Jam\fP, which takes care of actually running the scheduled build action commands
|
||||
.PP
|
||||
.PP
|
||||
So, to be able to successfully use \fIBoost\&.Build\fP, you need to know only four things:
|
||||
.IP "\(bu" 2
|
||||
How to configure \fIBoost\&.Build\fP (http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html)
|
||||
.IP "\(bu" 2
|
||||
How to declare targets in Jamfiles (http://www.boost.org/boost-build2/doc/html/bbv2/overview/targets.html)
|
||||
.IP "\(bu" 2
|
||||
How the build process works (http://www.boost.org/boost-build2/doc/html/bbv2/overview/build_process.html)
|
||||
.PP
|
||||
.PP
|
||||
Some Basics about the \fIBoost\&.Jam\fP language\&. See the section called “Boost\&.Jam Language” (http://www.boost.org/boost-build2/doc/html/bbv2/overview/jam_language.html)
|
||||
.SH "CONCEPTS"
|
||||
.PP
|
||||
\fIBoost\&.Build\fP has a few unique concepts that are introduced in this section\&. The best way to explain the concepts is by comparison with more classical build tools
|
||||
.PP
|
||||
When using any flavour of make, you directly specify targets and commands that are used to create them from other target\&. The below example creates a\&.o from a\&.c using a hardcoded compiler invocation command
|
||||
.PP
|
||||
a\&.o: a\&.c
|
||||
.br
|
||||
g++ -o a\&.o -g a\&.c
|
||||
.PP
|
||||
This is rather low-level description mechanism and it is hard to adjust commands, options, and sets of created targets depending on the used compiler and operating system\&.
|
||||
.PP
|
||||
To improve portability, most modern build system provide a set of higher-level functions that can be used in build description files\&. Consider this example:
|
||||
.PP
|
||||
add_program ('a', 'a\&.c')
|
||||
.br
|
||||
.PP
|
||||
This is a function call that creates targets necessary to create executable file from source file a\&.c\&. Depending on configured properties, different commands line may be used\&. However, \fIadd_program\fP is higher-level, but rather thin level All targets are created immediately when build description is parsed, which makes it impossible to perform multi-variant builds\&. Often, change in any build property requires complete reconfiguration of the build tree
|
||||
.PP
|
||||
In order to support true multivariant builds, Boost\&.Build introduces the concept of metatarget—object that is created when build description is parsed and can be later called with specific build properties to generate actual targets
|
||||
.PP
|
||||
Consider an example:
|
||||
.PP
|
||||
exe a : a\&.cpp ;
|
||||
.br
|
||||
.PP
|
||||
When this declaration is parsed, \fIBoost\&.Build\fP creates a metatarget, but does not yet decides what files must be created, or what commands must be used\&. After all build files are parsed, Boost\&.Build considers properties requested on the command line\&. Supposed you have invoked \fIBoost\&.Build\fP with:
|
||||
.PP
|
||||
\fIb2\fP toolset=gcc toolset=msvc
|
||||
.br
|
||||
.PP
|
||||
In that case, the metatarget will be called twice, once with toolset=gcc and once with toolset=msvc\&. Both invocations will produce concrete targets, that will have different extensions and use different command lines\&. Another key concept is build property\&. Build property is a variable that affects the build process\&. It can be specified on the command line, and is passed when calling a metatarget
|
||||
.PP
|
||||
While all build tools have a similar mechanism, \fIBoost\&.Build\fP differs by requiring that all build properties are declared in advance, and providing a large set of properties with portable semantics
|
||||
.PP
|
||||
The final concept is property propagation\&. Boost\&.Build does not require that every metatarget is called with the same properties\&. Instead, the 'top-level' metatargets are called with the properties specified on the command line Each metatarget can elect to augment or override some properties (in particular, using the requirements mechanism, see the section called “Requirements”: http://www.boost.org/boost-build2/doc/html/bbv2/overview/targets.html#bbv2.overview.targets.requirements) Then, the dependency metatargets are called with modified properties and produce concrete targets that are then used in build process Of course, dependency metatargets maybe in turn modify build properties and have dependencies of their own\&.
|
||||
.PP
|
||||
For more in-depth treatment of the requirements and concepts, you may refer to SYRCoSE 2009 Boost\&.Build article (http://syrcose.ispras.ru/2009/files/04_paper.pdf)\&.
|
||||
.SH "SEE ALSO"
|
||||
.PP
|
||||
\fBboost-libraries\fP(3)
|
||||
.SH "SUPPORT"
|
||||
.PP
|
||||
Please report any bugs to https://svn.boost.org/trac/boost/
|
||||
.SH "COPYRIGHT"
|
||||
.PP
|
||||
Boost Software License - Version 1\&.0 - August 17th, 2003
|
||||
.PP
|
||||
See the LICENSE_1_0\&.txt file for more information on that license, or directly on Internet:
|
||||
.br
|
||||
http://www.boost.org/LICENSE_1_0.txt
|
||||
141
SPECS/boost/boost.spec
Normal file
141
SPECS/boost/boost.spec
Normal file
@@ -0,0 +1,141 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: haswell <haswell@haswells-MacBook-Air.local>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
# works strangely if implemented with:
|
||||
# %define version_enc %(echo "%{version}"|tr \. _)
|
||||
%define version_enc 1_89_0
|
||||
|
||||
Name: boost
|
||||
Summary: The free peer-reviewed portable C++ source libraries
|
||||
Version: 1.89.0
|
||||
Release: %autorelease
|
||||
License: BSL-1.0 AND MIT AND Python-2.0.1
|
||||
URL: http://www.boost.org
|
||||
#!RemoteAsset
|
||||
Source0: https://archives.boost.io/release/%{version}/source/%{name}_%{version_enc}.tar.gz
|
||||
Source1: b2.1
|
||||
# Adjusting build optimization flags for rpm build
|
||||
Patch0: 0001-boost-1.81.0-build-optflags.patch
|
||||
# Remove rpath from builds
|
||||
Patch1: 0002-boost-1.78.0-no-rpath.patch
|
||||
# Modify b2 build flags
|
||||
Patch2: 0003-boost-1.78.0-b2-build-flags.patch
|
||||
|
||||
# to make this package usable ASAP, boost-mpi, boost-numpy
|
||||
# boost-mpich is not built
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: bzip2-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: icu4c-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: zstd-devel
|
||||
# use autotools to reduce abundant % procedures
|
||||
# boost uses its own build system called b2, however
|
||||
BuildSystem: autotools
|
||||
|
||||
%description
|
||||
Boost provides free peer-reviewed portable C++ source libraries. The
|
||||
emphasis is on libraries which work well with the C++ Standard
|
||||
Library, in the hopes of establishing "existing practice" for
|
||||
extensions and providing reference implementations so that the Boost
|
||||
libraries are suitable for eventual standardization. (Some of the
|
||||
libraries have already been included in the C++ 2011 standard and
|
||||
others have been proposed to the C++ Standards Committee for inclusion
|
||||
in future standards.)
|
||||
|
||||
%package build
|
||||
Summary: Cross platform build system for C++ projects
|
||||
|
||||
%description build
|
||||
Boost.Build is an easy way to build C++ projects, everywhere. You name
|
||||
your pieces of executable and libraries and list their sources. Boost.Build
|
||||
takes care about compiling your sources with the right options,
|
||||
creating static and shared libraries, making pieces of executable, and other
|
||||
chores -- whether you are using GCC, MSVC, or a dozen more supported
|
||||
C++ compilers -- on Windows, OSX, Linux and commercial UNIX systems.
|
||||
|
||||
%package devel
|
||||
Summary: The Boost C++ headers and shared development libraries
|
||||
Requires: %{name}
|
||||
Requires: icu4c-devel
|
||||
|
||||
%description devel
|
||||
Headers and shared object symbolic links for the Boost C++ libraries.
|
||||
|
||||
%conf
|
||||
./bootstrap.sh --with-icu
|
||||
%set_build_flags
|
||||
cat > ./tools/build/src/user-config.jam << EOF
|
||||
import os ;
|
||||
# use build system flags
|
||||
local CXXFLAGS = [ os.environ CXXFLAGS ] ;
|
||||
local LDFLAGS = [ os.environ LDFLAGS ] ;
|
||||
using gcc : : : <compileflags>%(CXXFLAGS) <linkflags>%(LDFLAGS) ;
|
||||
# help build system to find python3
|
||||
using python : %{python3_version} : /usr/bin/python3 : /usr/include/python%{python3_version} : : : ;
|
||||
EOF
|
||||
|
||||
%build
|
||||
./b2 -d+2 -q %{?_smp_mflags} \
|
||||
--without-mpi --without-graph_parallel --build-dir=out \
|
||||
variant=release threading=multi debug-symbols=on pch=off \
|
||||
python=%{python3_version} \
|
||||
stage
|
||||
# build Boost.build
|
||||
pushd tools/build
|
||||
./bootstrap.sh
|
||||
popd
|
||||
|
||||
%install
|
||||
./b2 -d+2 -q %{?_smp_mflags} \
|
||||
--without-mpi --without-graph_parallel --build-dir=out \
|
||||
--prefix=%{buildroot}%{_prefix} \
|
||||
--libdir=%{buildroot}%{_libdir} \
|
||||
variant=release threading=multi debug-symbols=on pch=off \
|
||||
python=%{python3_version} \
|
||||
install
|
||||
|
||||
# install Boost.build
|
||||
pushd tools/build
|
||||
./b2 --prefix=%{buildroot}%{_prefix} --bindir=%{buildroot}%{_bindir} install
|
||||
|
||||
# rename b2 to boost-build while keeping a symlink
|
||||
mv %{buildroot}%{_datadir}/b2 %{buildroot}%{_datadir}/boost-build
|
||||
pushd %{buildroot}%{_datadir}
|
||||
ln -s ./boost-build b2
|
||||
popd
|
||||
popd
|
||||
|
||||
# install b2 man pages
|
||||
install -p -m 644 %{SOURCE1} -D %{buildroot}%{_mandir}/man1/b2.1
|
||||
mkdir -p %{buildroot}%{_docdir}/boost
|
||||
|
||||
# cleanup unnecessary files
|
||||
rm -rf %{buildroot}%{_libdir}/lib*.a
|
||||
rm -rf %{buildroot}%{_datadir}/boost_predef
|
||||
|
||||
%files
|
||||
%license LICENSE_1_0.txt
|
||||
%{_libdir}/lib*.so*
|
||||
|
||||
%files build
|
||||
%license LICENSE_1_0.txt
|
||||
%{_datadir}/%{name}-build/
|
||||
%{_datadir}/b2
|
||||
%{_bindir}/b2
|
||||
%{_mandir}/man1/b2.1*
|
||||
|
||||
%files devel
|
||||
%license LICENSE_1_0.txt
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/cmake
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
12
SPECS/boringssl/Fix-install-cmake-prefix-path.patch
Normal file
12
SPECS/boringssl/Fix-install-cmake-prefix-path.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- boringssl-0.20251002.0/CMakeLists.txt
|
||||
+++ boringssl-0.20251002.0/CMakeLists.txt
|
||||
@@ -803,6 +803,6 @@ if(INSTALL_ENABLED)
|
||||
install(EXPORT OpenSSLTargets
|
||||
FILE OpenSSLTargets.cmake
|
||||
NAMESPACE OpenSSL::
|
||||
- DESTINATION lib/cmake/OpenSSL)
|
||||
- install(FILES cmake/OpenSSLConfig.cmake DESTINATION lib/cmake/OpenSSL)
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenSSL)
|
||||
+ install(FILES cmake/OpenSSLConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/OpenSSL)
|
||||
endif()
|
||||
|
||||
60
SPECS/boringssl/boringssl.spec
Normal file
60
SPECS/boringssl/boringssl.spec
Normal file
@@ -0,0 +1,60 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Julian Zhu <julian.oerv@isrc.iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: boringssl
|
||||
Version: 0.20251002.0
|
||||
Release: %autorelease
|
||||
Summary: Fork of OpenSSL that is designed to meet Google's needs.
|
||||
License: Apache-2.0
|
||||
URL: https://boringssl.googlesource.com/boringssl/
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/google/boringssl/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch1: Fix-install-cmake-prefix-path.patch
|
||||
|
||||
BuildSystem: cmake
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ninja
|
||||
|
||||
BuildOption(conf): -GNinja
|
||||
|
||||
# FIXME: Avoid having warnings treated as errors on line asn1_test.cc:2441
|
||||
%global optflags %{optflags} -Wno-array-bounds
|
||||
|
||||
%description
|
||||
Although BoringSSL is an open source project, it is not intended for general
|
||||
use, as OpenSSL is. We don't recommend that third parties depend upon it.
|
||||
Doing so is likely to be frustrating because there are no guarantees of API
|
||||
or ABI stability.
|
||||
|
||||
%package devel
|
||||
Summary: Fork of OpenSSL that is designed to meet Google's needs.
|
||||
|
||||
%description devel
|
||||
Fork of OpenSSL that is designed to meet Google's needs.
|
||||
|
||||
Although BoringSSL is an open source project, it is not intended for general
|
||||
use, as OpenSSL is. We don't recommend that third parties depend upon it.
|
||||
Doing so is likely to be frustrating because there are no guarantees of API
|
||||
or ABI stability.
|
||||
|
||||
|
||||
%files
|
||||
%{_bindir}/bssl
|
||||
%{_libdir}/libcrypto.so
|
||||
%{_libdir}/libssl.so
|
||||
%license LICENSE
|
||||
|
||||
%files devel
|
||||
%{_includedir}/openssl
|
||||
%dir %{_libdir}/cmake
|
||||
%dir %{_libdir}/cmake/OpenSSL
|
||||
%{_libdir}/cmake/OpenSSL/*.cmake
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
73
SPECS/brotli/brotli.spec
Normal file
73
SPECS/brotli/brotli.spec
Normal file
@@ -0,0 +1,73 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: brotli
|
||||
Version: 1.1.0
|
||||
Release: %autorelease
|
||||
Summary: Lossless Compression Algorithm
|
||||
License: MIT
|
||||
URL: https://github.com/google/brotli
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/google/brotli/archive/v%version.tar.gz
|
||||
BuildRequires: cmake >= 2.8.6
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gzip
|
||||
BuildRequires: pkg-config
|
||||
BuildSystem: cmake
|
||||
|
||||
%description
|
||||
This package contains the brotli command line utility to compress and
|
||||
decompress data with the brotli compression algorithm.
|
||||
|
||||
Brotli is a generic-purpose lossless compression algorithm that
|
||||
compresses data using a combination of a modern variant of the LZ77
|
||||
algorithm, Huffman coding and 2nd order context modeling, with a
|
||||
compression ratio comparable to the best currently available
|
||||
general-purpose compression methods. It is similar in speed with
|
||||
deflate but offers more dense compression.
|
||||
|
||||
The specification of the Brotli Compressed Data Format is defined in
|
||||
RFC 7932.
|
||||
|
||||
%package devel
|
||||
Summary: Development and Header Files for Brotli Compression
|
||||
Requires: %{name} = %version-%release
|
||||
|
||||
%description devel
|
||||
Development and headers files for (de)compressing data using the
|
||||
Brotli general purpose lossless compression algorithm.
|
||||
|
||||
The specification of the Brotli Compressed Data Format is defined in
|
||||
RFC 7932.
|
||||
|
||||
%build -p
|
||||
export CFLAGS="%{optflags} -DBROTLI_ENCODER_CLEANUP_ON_OOM"
|
||||
|
||||
%install -a
|
||||
mkdir -p "%buildroot/%{_mandir}/man1" "%buildroot/%{_mandir}/man3"
|
||||
install -pm0644 docs/*.1 "%buildroot/%_mandir/man1/"
|
||||
install -pm0644 docs/*.3 "%buildroot/%_mandir/man3/"
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%_bindir/brotli
|
||||
%_mandir/man1/brotli.1*
|
||||
%_libdir/libbrotlicommon.so.*
|
||||
%_libdir/libbrotlidec.so.*
|
||||
%_libdir/libbrotlienc.so.*
|
||||
|
||||
%files devel
|
||||
%_includedir/brotli/
|
||||
%_libdir/libbrotlicommon.so
|
||||
%_libdir/libbrotlidec.so
|
||||
%_libdir/libbrotlienc.so
|
||||
%_libdir/pkgconfig/*.pc
|
||||
%_mandir/man3/*.3*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
121
SPECS/btrfs-progs/btrfs-progs.spec
Normal file
121
SPECS/btrfs-progs/btrfs-progs.spec
Normal file
@@ -0,0 +1,121 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: btrfs-progs
|
||||
Version: 6.17
|
||||
Release: %autorelease
|
||||
Summary: Userspace programs for btrfs
|
||||
License: GPL-2.0-only AND LGPL-2.1-or-later
|
||||
URL: https://btrfs.wiki.kernel.org/index.php/Main_Page
|
||||
#!RemoteAsset
|
||||
Source: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.xz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): --disable-documentation
|
||||
BuildOption(conf): CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
BuildOption(conf): --with-crypto=libgcrypt
|
||||
|
||||
BuildOption(install): mandir=%{_mandir} bindir=%{_sbindir} libdir=%{_libdir} incdir=%{_includedir}
|
||||
|
||||
BuildRequires: gcc autoconf automake make
|
||||
BuildRequires: pkgconfig(ext2fs) pkgconfig(libacl) lzo-devel
|
||||
BuildRequires: util-linux-devel pkgconfig(zlib) pkgconfig(libudev)
|
||||
BuildRequires: pkgconfig(libgcrypt) >= 1.8.0
|
||||
BuildRequires: pkgconfig(libzstd) >= 1.0.0
|
||||
BuildRequires: python3-devel >= 3.4
|
||||
BuildRequires: python3-setuptools python3-pip
|
||||
|
||||
%description
|
||||
The btrfs-progs package provides userspace programs needed to create,
|
||||
check, and manage btrfs filesystems.
|
||||
|
||||
%package -n libbtrfs
|
||||
Summary: btrfs filesystem-specific runtime library
|
||||
License: GPL-2.0-only
|
||||
|
||||
%description -n libbtrfs
|
||||
This package contains the main library used by btrfs programs.
|
||||
|
||||
%package -n libbtrfsutil
|
||||
Summary: btrfs filesystem-specific runtime utility library
|
||||
License: LGPL-2.1-or-later
|
||||
|
||||
%description -n libbtrfsutil
|
||||
This package contains an alternative utility library for btrfs programs.
|
||||
|
||||
%package devel
|
||||
Summary: btrfs filesystem-specific libraries and headers
|
||||
Requires: btrfs-progs = %{version}
|
||||
Requires: libbtrfs = %{version}
|
||||
Requires: libbtrfsutil = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the libraries and header files needed to
|
||||
develop btrfs filesystem-specific programs.
|
||||
|
||||
%package -n python3-btrfsutil
|
||||
Summary: Python 3 bindings for libbtrfsutil
|
||||
Requires: libbtrfsutil = %{version}
|
||||
|
||||
%description -n python3-btrfsutil
|
||||
This package contains Python 3 bindings to the libbtrfsutil library.
|
||||
|
||||
%conf -p
|
||||
./autogen.sh
|
||||
|
||||
%build -a
|
||||
cd libbtrfsutil/python
|
||||
%pyproject_wheel
|
||||
|
||||
%install -a
|
||||
install -Dpm0644 btrfs-completion %{buildroot}%{_datadir}/bash-completion/completions/btrfs
|
||||
# Nuke the static lib
|
||||
rm -v %{buildroot}%{_libdir}/*.a
|
||||
|
||||
cd libbtrfsutil/python
|
||||
%pyproject_install
|
||||
%pyproject_save_files -L btrfsutil
|
||||
|
||||
%ldconfig_scriptlets -n libbtrfs
|
||||
%ldconfig_scriptlets -n libbtrfsutil
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_sbindir}/btrfsck
|
||||
%{_sbindir}/fsck.btrfs
|
||||
%{_sbindir}/mkfs.btrfs
|
||||
%{_sbindir}/btrfs-image
|
||||
%{_sbindir}/btrfs-convert
|
||||
%{_sbindir}/btrfs-select-super
|
||||
%{_sbindir}/btrfstune
|
||||
%{_sbindir}/btrfs
|
||||
%{_sbindir}/btrfs-map-logical
|
||||
%{_sbindir}/btrfs-find-root
|
||||
%{_udevrulesdir}/64-btrfs-dm.rules
|
||||
%{_udevrulesdir}/64-btrfs-zoned.rules
|
||||
%{_datadir}/bash-completion/completions/btrfs
|
||||
|
||||
%files -n libbtrfs
|
||||
%license COPYING
|
||||
%{_libdir}/libbtrfs.so.0*
|
||||
|
||||
%files -n libbtrfsutil
|
||||
%license libbtrfsutil/COPYING
|
||||
%{_libdir}/libbtrfsutil.so.1*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/btrfs/
|
||||
%{_includedir}/btrfsutil.h
|
||||
%{_libdir}/libbtrfs.so
|
||||
%{_libdir}/libbtrfsutil.so
|
||||
%{_libdir}/pkgconfig/libbtrfsutil.pc
|
||||
|
||||
%files -n python3-btrfsutil -f %{pyproject_files}
|
||||
%license libbtrfsutil/COPYING
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
38
SPECS/bubblewrap/bubblewrap.spec
Normal file
38
SPECS/bubblewrap/bubblewrap.spec
Normal file
@@ -0,0 +1,38 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bubblewrap
|
||||
Version: 0.11.0
|
||||
Release: %autorelease
|
||||
Summary: Core execution tool for unprivileged containers
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://github.com/containers/bubblewrap
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/containers/bubblewrap/releases/download/v%{version}/bubblewrap-%{version}.tar.xz
|
||||
BuildSystem: meson
|
||||
|
||||
# Temporarily disable man page build since no doc tools are available
|
||||
BuildOption(conf): -Dman=disabled
|
||||
BuildRequires: gcc
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig(libcap)
|
||||
BuildRequires: pkgconfig(libselinux)
|
||||
|
||||
%description
|
||||
Bubblewrap (bwrap) is a low-level tool to create sandboxes, using Linux
|
||||
namespaces to isolate processes. It is a core component of container
|
||||
technologies like Flatpak.
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md
|
||||
%{_bindir}/bwrap
|
||||
%{_datadir}/bash-completion/completions/bwrap
|
||||
%{_datadir}/zsh/site-functions/_bwrap
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
49
SPECS/busybox/busybox-1.36.1-no-cbq.patch
Normal file
49
SPECS/busybox/busybox-1.36.1-no-cbq.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
diff -up busybox-1.36.1/networking/tc.c.no-cbq busybox-1.36.1/networking/tc.c
|
||||
--- busybox-1.36.1/networking/tc.c.no-cbq 2024-01-29 10:24:09.135082923 -0500
|
||||
+++ busybox-1.36.1/networking/tc.c 2024-01-29 10:28:12.009502552 -0500
|
||||
@@ -31,7 +31,7 @@
|
||||
//usage: "qdisc [handle QHANDLE] [root|"IF_FEATURE_TC_INGRESS("ingress|")"parent CLASSID]\n"
|
||||
/* //usage: "[estimator INTERVAL TIME_CONSTANT]\n" */
|
||||
//usage: " [[QDISC_KIND] [help|OPTIONS]]\n"
|
||||
-//usage: " QDISC_KIND := [p|b]fifo|tbf|prio|cbq|red|etc.\n"
|
||||
+//usage: " QDISC_KIND := [p|b]fifo|tbf|prio|red|etc.\n"
|
||||
//usage: "qdisc show [dev STRING]"IF_FEATURE_TC_INGRESS(" [ingress]")"\n"
|
||||
//usage: "class [classid CLASSID] [root|parent CLASSID]\n"
|
||||
//usage: " [[QDISC_KIND] [help|OPTIONS] ]\n"
|
||||
@@ -230,7 +230,7 @@ static int cbq_parse_opt(int argc, char
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
-#endif
|
||||
+
|
||||
static int cbq_print_opt(struct rtattr *opt)
|
||||
{
|
||||
struct rtattr *tb[TCA_CBQ_MAX+1];
|
||||
@@ -322,6 +322,7 @@ static int cbq_print_opt(struct rtattr *
|
||||
done:
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static FAST_FUNC int print_qdisc(
|
||||
const struct sockaddr_nl *who UNUSED_PARAM,
|
||||
@@ -373,7 +374,8 @@ static FAST_FUNC int print_qdisc(
|
||||
if (qqq == 0) { /* pfifo_fast aka prio */
|
||||
prio_print_opt(tb[TCA_OPTIONS]);
|
||||
} else if (qqq == 1) { /* class based queuing */
|
||||
- cbq_print_opt(tb[TCA_OPTIONS]);
|
||||
+ /* cbq_print_opt(tb[TCA_OPTIONS]); */
|
||||
+ printf("cbq not supported");
|
||||
} else {
|
||||
/* don't know how to print options for this qdisc */
|
||||
printf("(options for %s)", name);
|
||||
@@ -444,7 +446,8 @@ static FAST_FUNC int print_class(
|
||||
/* nothing. */ /*prio_print_opt(tb[TCA_OPTIONS]);*/
|
||||
} else if (qqq == 1) { /* class based queuing */
|
||||
/* cbq_print_copt() is identical to cbq_print_opt(). */
|
||||
- cbq_print_opt(tb[TCA_OPTIONS]);
|
||||
+ /* cbq_print_opt(tb[TCA_OPTIONS]); */
|
||||
+ printf("cbq not supported");
|
||||
} else {
|
||||
/* don't know how to print options for this class */
|
||||
printf("(options for %s)", name);
|
||||
@@ -0,0 +1,13 @@
|
||||
diff -up busybox-1.37.0/libbb/hash_md5_sha.c.shaNI-fix busybox-1.37.0/libbb/hash_md5_sha.c
|
||||
--- busybox-1.37.0/libbb/hash_md5_sha.c.shaNI-fix 2024-09-27 09:57:09.601487627 -0400
|
||||
+++ busybox-1.37.0/libbb/hash_md5_sha.c 2024-09-27 09:57:49.167153221 -0400
|
||||
@@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *
|
||||
hash_size = 8;
|
||||
if (ctx->process_block == sha1_process_block64
|
||||
#if ENABLE_SHA1_HWACCEL
|
||||
+# if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
|| ctx->process_block == sha1_process_block64_shaNI
|
||||
+# endif
|
||||
#endif
|
||||
) {
|
||||
hash_size = 5;
|
||||
54
SPECS/busybox/busybox.spec
Normal file
54
SPECS/busybox/busybox.spec
Normal file
@@ -0,0 +1,54 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Suyun114 <ziyu.oerv@isrc.iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: busybox
|
||||
Version: 1.37.0
|
||||
Release: %autorelease
|
||||
Summary: Minimalist variant of UNIX utilities linked in a single executable
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://www.busybox.net/
|
||||
# https://busybox.net/ is down currently. A mirror site is used temporarily.
|
||||
#!RemoteAsset
|
||||
Source0: https://ftp.icm.edu.pl/packages/busybox/%{name}-%{version}.tar.bz2
|
||||
#!RemoteAsset
|
||||
Source1: https://ftp.icm.edu.pl/packages/busybox/%{name}-%{version}.tar.bz2.sig
|
||||
# All patches are from Fedora.
|
||||
Patch1: busybox-1.36.1-no-cbq.patch
|
||||
Patch2: busybox-1.37.0-fix-conditional-for-sha1_process_block64_shaNI.patch
|
||||
BuildSystem: autotools
|
||||
|
||||
%description
|
||||
BusyBox combines tiny versions of many common UNIX utilities into a
|
||||
single executable. It provides minimalist replacements for utilities
|
||||
usually found in fileutils, shellutils, findutils, textutils, grep,
|
||||
gzip, tar, and more. BusyBox provides a fairly complete POSIX
|
||||
environment for small or embedded systems. The utilities in BusyBox
|
||||
generally have fewer options than their GNU cousins. The options that
|
||||
are included provide the expected functionality and behave much like
|
||||
their GNU counterparts.
|
||||
BusyBox is for emergency and special use cases. Replacing the standard
|
||||
tools in a system is not supported. Some tools don't work out of the
|
||||
box but need special configuration, like udhcpc, the dhcp client.
|
||||
|
||||
%conf # BusyBox has no configuration script.
|
||||
|
||||
%build -p
|
||||
make defconfig # Create the maximum "sane" configuration.
|
||||
|
||||
%install # BusyBox needs to be installed manually.
|
||||
# Arch Linux for reference.
|
||||
install -Dm0755 busybox %{buildroot}%{_bindir}/busybox
|
||||
install -Dm644 docs/busybox.1 %{buildroot}%{_mandir}/man1/busybox.1
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README examples
|
||||
%{_bindir}/busybox
|
||||
%{_mandir}/man1/busybox.*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
49
SPECS/byacc/byacc.spec
Normal file
49
SPECS/byacc/byacc.spec
Normal file
@@ -0,0 +1,49 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%define byaccdate 20241231
|
||||
|
||||
Name: byacc
|
||||
Version: 2.0.%{byaccdate}
|
||||
Release: %autorelease
|
||||
Summary: A parser generator
|
||||
License: Public-Domain
|
||||
URL: https://invisible-island.net/byacc/byacc.html
|
||||
#!RemoteAsset
|
||||
Source: https://invisible-mirror.net/archives/byacc/byacc-%{byaccdate}.tgz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
Berkeley Yacc is an LALR(1) parser generator, made as compatible as possible
|
||||
with AT&T Yacc. It can accept any input specification that conforms to the
|
||||
AT&T Yacc documentation.
|
||||
|
||||
%prep -a
|
||||
find . -type f -name \*.c -print0 | xargs -0 sed -i 's/YYSTACKSIZE 500/YYSTACKSIZE 10000/g'
|
||||
|
||||
# as same as ncurses,configure: error: unrecognized option: --docdir=/usr/share/doc/byacc
|
||||
%conf
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--disable-dependency-tracking
|
||||
|
||||
%install -a
|
||||
ln -s yacc %{buildroot}%{_bindir}/byacc
|
||||
ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
|
||||
|
||||
%files
|
||||
%doc ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY README CHANGES NOTES
|
||||
%license AUTHORS
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
11
SPECS/bzip2/bzip2.pc
Normal file
11
SPECS/bzip2/bzip2.pc
Normal file
@@ -0,0 +1,11 @@
|
||||
prefix=/usr
|
||||
exec_prefix=/usr
|
||||
bindir=/usr/bin
|
||||
libdir=
|
||||
includedir=/usr/include
|
||||
|
||||
Name: bzip2
|
||||
Description: A file compression library
|
||||
Version: 1.0.6
|
||||
Libs: -L${libdir} -lbz2
|
||||
Cflags: -I${includedir}
|
||||
101
SPECS/bzip2/bzip2.spec
Normal file
101
SPECS/bzip2/bzip2.spec
Normal file
@@ -0,0 +1,101 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: bzip2
|
||||
Version: 1.0.8
|
||||
Release: %autorelease
|
||||
Summary: File compression utility
|
||||
License: BSD-4-Clause
|
||||
URL: https://sourceware.org/bzip2
|
||||
#!RemoteAsset
|
||||
Source0: https://sourceware.org/pub/%{name}/%{name}-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://sourceware.org/pub/%{name}/%{name}-%{version}.tar.gz.sig
|
||||
Source2: bzip2.pc
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(build): -f Makefile-libbz2_so
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
Bzip2 is a freely available, patent-free, high quality data compressor.
|
||||
Bzip2 compresses files to within 10 to 15 percent of the capabilities
|
||||
of the best techniques available. However, bzip2 has the added benefit
|
||||
of being approximately two times faster at compression and six times
|
||||
faster at decompression than those techniques. Bzip2 is not the
|
||||
fastest compression utility, but it does strike a balance between speed
|
||||
and compression capability.
|
||||
|
||||
Install bzip2 if you need a compression utility.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and header files for apps which will use bzip2
|
||||
Requires: bzip2%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Header files and a library of bzip2 functions, for developing apps
|
||||
which will use the library.
|
||||
|
||||
# No configure
|
||||
%conf
|
||||
|
||||
%prep -a
|
||||
# Use our own bzip2.pc
|
||||
cp -a %{SOURCE2} .
|
||||
sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
|
||||
|
||||
%build -a
|
||||
# Build again
|
||||
rm -f *.o
|
||||
make bzip2 bzip2recover
|
||||
|
||||
%install
|
||||
# Why...
|
||||
chmod 644 bzlib.h
|
||||
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/pkgconfig,%{_includedir}}
|
||||
cp -p bzlib.h $RPM_BUILD_ROOT%{_includedir}
|
||||
install -m 755 libbz2.so.%{version} $RPM_BUILD_ROOT%{_libdir}
|
||||
install -m 644 libbz2.a $RPM_BUILD_ROOT%{_libdir}
|
||||
install -m 644 bzip2.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/bzip2.pc
|
||||
install -m 755 bzip2-shared $RPM_BUILD_ROOT%{_bindir}/bzip2
|
||||
install -m 755 bzip2recover bzgrep bzdiff bzmore $RPM_BUILD_ROOT%{_bindir}/
|
||||
cp -p bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2
|
||||
ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat
|
||||
ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp
|
||||
ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless
|
||||
ln -s bzgrep $RPM_BUILD_ROOT%{_bindir}/bzegrep
|
||||
ln -s bzgrep $RPM_BUILD_ROOT%{_bindir}/bzfgrep
|
||||
ln -s libbz2.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libbz2.so.1
|
||||
ln -s libbz2.so.1 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
|
||||
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
|
||||
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
|
||||
ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
|
||||
ln -s bzdiff.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcmp.1
|
||||
ln -s bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzless.1
|
||||
ln -s bzgrep.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzegrep.1
|
||||
ln -s bzgrep.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzfgrep.1
|
||||
|
||||
%files
|
||||
%doc CHANGES README
|
||||
%license LICENSE
|
||||
%{_bindir}/*
|
||||
%{_mandir}/*/*
|
||||
%{_libdir}/libbz2.so.1*
|
||||
|
||||
%files devel
|
||||
%doc manual.html manual.pdf
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/bzip2.pc
|
||||
%{_libdir}/libbz2.a
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
66
SPECS/c-ares/c-ares.spec
Normal file
66
SPECS/c-ares/c-ares.spec
Normal file
@@ -0,0 +1,66 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: laokz <zhangkai@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: c-ares
|
||||
Version: 1.34.5
|
||||
Release: %autorelease
|
||||
Summary: Library for asynchronous name resolves
|
||||
License: MIT
|
||||
URL: https://c-ares.org/
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/c-ares/c-ares/releases/download/v%{version}/c-ares-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://github.com/c-ares/c-ares/releases/download/v%{version}/c-ares-%{version}.tar.gz.asc
|
||||
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
BuildSystem: cmake
|
||||
|
||||
%description
|
||||
c-ares is a C library that performs DNS requests and name resolves
|
||||
asynchronously. c-ares is a fork of the library named 'ares', written
|
||||
by Greg Hudson at MIT.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for c-ares
|
||||
Requires: %{name} = %{version}
|
||||
Requires: glibc-devel
|
||||
Provides: c-ares-devel = %{version}
|
||||
Obsoletes: c-ares-devel < %{version}
|
||||
|
||||
%description devel
|
||||
c-ares is a C library that performs DNS requests and name resolves
|
||||
asynchronously. c-ares is a fork of the library named 'ares', written
|
||||
by Greg Hudson at MIT.
|
||||
|
||||
This package provides the development libraries and headers needed
|
||||
to build packages that depend on c-ares.
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
%{_bindir}/adig
|
||||
%{_bindir}/ahost
|
||||
%{_mandir}/man1/adig.*
|
||||
%{_mandir}/man1/ahost.*
|
||||
%{_libdir}/libcares.so.*
|
||||
|
||||
%files devel
|
||||
%license LICENSE.md
|
||||
%{_libdir}/libcares.so
|
||||
%{_includedir}/*.h
|
||||
%{_mandir}/man3/ares_*
|
||||
%{_libdir}/pkgconfig/libcares.pc
|
||||
%{_libdir}/cmake/c-ares/
|
||||
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
|
||||
347
SPECS/ca-certificates-mozilla/COPYING
Normal file
347
SPECS/ca-certificates-mozilla/COPYING
Normal file
@@ -0,0 +1,347 @@
|
||||
Mozilla Public License
|
||||
Version 2.0
|
||||
|
||||
1. Definitions
|
||||
|
||||
1.1. “Contributor”
|
||||
|
||||
means each individual or legal entity that creates, contributes to the
|
||||
creation of, or owns Covered Software.
|
||||
|
||||
1.2. “Contributor Version”
|
||||
|
||||
means the combination of the Contributions of others (if any) used by a
|
||||
Contributor and that particular Contributor’s Contribution.
|
||||
|
||||
1.3. “Contribution”
|
||||
|
||||
means Covered Software of a particular Contributor.
|
||||
|
||||
1.4. “Covered Software”
|
||||
|
||||
means Source Code Form to which the initial Contributor has attached the
|
||||
notice in Exhibit A, the Executable Form of such Source Code Form, and
|
||||
Modifications of such Source Code Form, in each case including portions
|
||||
thereof.
|
||||
|
||||
1.5. “Incompatible With Secondary Licenses”
|
||||
|
||||
means
|
||||
|
||||
a. that the initial Contributor has attached the notice described in
|
||||
Exhibit B to the Covered Software; or
|
||||
|
||||
b. that the Covered Software was made available under the terms of version
|
||||
1.1 or earlier of the License, but not also under the terms of a
|
||||
Secondary License.
|
||||
|
||||
1.6. “Executable Form”
|
||||
|
||||
means any form of the work other than Source Code Form.
|
||||
|
||||
1.7. “Larger Work”
|
||||
|
||||
means a work that combines Covered Software with other material, in a
|
||||
separate file or files, that is not Covered Software.
|
||||
|
||||
1.8. “License”
|
||||
|
||||
means this document.
|
||||
|
||||
1.9. “Licensable”
|
||||
|
||||
means having the right to grant, to the maximum extent possible, whether at
|
||||
the time of the initial grant or subsequently, any and all of the rights
|
||||
conveyed by this License.
|
||||
|
||||
1.10. “Modifications”
|
||||
|
||||
means any of the following:
|
||||
|
||||
a. any file in Source Code Form that results from an addition to, deletion
|
||||
from, or modification of the contents of Covered Software; or
|
||||
|
||||
b. any new file in Source Code Form that contains any Covered Software.
|
||||
|
||||
1.11. “Patent Claims” of a Contributor
|
||||
|
||||
means any patent claim(s), including without limitation, method, process,
|
||||
and apparatus claims, in any patent Licensable by such Contributor that
|
||||
would be infringed, but for the grant of the License, by the making, using,
|
||||
selling, offering for sale, having made, import, or transfer of either its
|
||||
Contributions or its Contributor Version.
|
||||
|
||||
1.12. “Secondary License”
|
||||
|
||||
means either the GNU General Public License, Version 2.0, the GNU Lesser
|
||||
General Public License, Version 2.1, the GNU Affero General Public License,
|
||||
Version 3.0, or any later versions of those licenses.
|
||||
|
||||
1.13. “Source Code Form”
|
||||
|
||||
means the form of the work preferred for making modifications.
|
||||
|
||||
1.14. “You” (or “Your”)
|
||||
|
||||
means an individual or a legal entity exercising rights under this License.
|
||||
For legal entities, “You” includes any entity that controls, is controlled
|
||||
by, or is under common control with You. For purposes of this definition,
|
||||
“control” means (a) the power, direct or indirect, to cause the direction
|
||||
or management of such entity, whether by contract or otherwise, or (b)
|
||||
ownership of more than fifty percent (50%) of the outstanding shares or
|
||||
beneficial ownership of such entity.
|
||||
|
||||
2. License Grants and Conditions
|
||||
|
||||
2.1. Grants
|
||||
|
||||
Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive
|
||||
license:
|
||||
|
||||
a. under intellectual property rights (other than patent or trademark)
|
||||
Licensable by such Contributor to use, reproduce, make available, modify,
|
||||
display, perform, distribute, and otherwise exploit its Contributions,
|
||||
either on an unmodified basis, with Modifications, or as part of a Larger
|
||||
Work; and
|
||||
|
||||
b. under Patent Claims of such Contributor to make, use, sell, offer for sale,
|
||||
have made, import, and otherwise transfer either its Contributions or its
|
||||
Contributor Version.
|
||||
|
||||
2.2. Effective Date
|
||||
|
||||
The licenses granted in Section 2.1 with respect to any Contribution become
|
||||
effective for each Contribution on the date the Contributor first distributes
|
||||
such Contribution.
|
||||
|
||||
2.3. Limitations on Grant Scope
|
||||
|
||||
The licenses granted in this Section 2 are the only rights granted under this
|
||||
License. No additional rights or licenses will be implied from the distribution
|
||||
or licensing of Covered Software under this License. Notwithstanding
|
||||
Section 2.1(b) above, no patent license is granted by a Contributor:
|
||||
|
||||
a. for any code that a Contributor has removed from Covered Software; or
|
||||
|
||||
b. for infringements caused by: (i) Your and any other third party’s
|
||||
modifications of Covered Software, or (ii) the combination of its
|
||||
Contributions with other software (except as part of its Contributor
|
||||
Version); or
|
||||
|
||||
c. under Patent Claims infringed by Covered Software in the absence of its
|
||||
Contributions.
|
||||
|
||||
This License does not grant any rights in the trademarks, service marks, or
|
||||
logos of any Contributor (except as may be necessary to comply with the notice
|
||||
requirements in Section 3.4).
|
||||
|
||||
2.4. Subsequent Licenses
|
||||
|
||||
No Contributor makes additional grants as a result of Your choice to distribute
|
||||
the Covered Software under a subsequent version of this License (see
|
||||
Section 10.2) or under the terms of a Secondary License (if permitted under the
|
||||
terms of Section 3.3).
|
||||
|
||||
2.5. Representation
|
||||
|
||||
Each Contributor represents that the Contributor believes its Contributions are
|
||||
its original creation(s) or it has sufficient rights to grant the rights to its
|
||||
Contributions conveyed by this License.
|
||||
|
||||
2.6. Fair Use
|
||||
|
||||
This License is not intended to limit any rights You have under applicable
|
||||
copyright doctrines of fair use, fair dealing, or other equivalents.
|
||||
|
||||
2.7. Conditions
|
||||
|
||||
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
|
||||
Section 2.1.
|
||||
|
||||
3. Responsibilities
|
||||
|
||||
3.1. Distribution of Source Form
|
||||
|
||||
All distribution of Covered Software in Source Code Form, including any
|
||||
Modifications that You create or to which You contribute, must be under the
|
||||
terms of this License. You must inform recipients that the Source Code Form of
|
||||
the Covered Software is governed by the terms of this License, and how they can
|
||||
obtain a copy of this License. You may not attempt to alter or restrict the
|
||||
recipients’ rights in the Source Code Form.
|
||||
|
||||
3.2. Distribution of Executable Form
|
||||
|
||||
If You distribute Covered Software in Executable Form then:
|
||||
|
||||
a. such Covered Software must also be made available in Source Code Form, as
|
||||
described in Section 3.1, and You must inform recipients of the Executable
|
||||
Form how they can obtain a copy of such Source Code Form by reasonable
|
||||
means in a timely manner, at a charge no more than the cost of distribution
|
||||
to the recipient; and
|
||||
|
||||
b. You may distribute such Executable Form under the terms of this License, or
|
||||
sublicense it under different terms, provided that the license for the
|
||||
Executable Form does not attempt to limit or alter the recipients’ rights
|
||||
in the Source Code Form under this License.
|
||||
|
||||
3.3. Distribution of a Larger Work
|
||||
|
||||
You may create and distribute a Larger Work under terms of Your choice,
|
||||
provided that You also comply with the requirements of this License for the
|
||||
Covered Software. If the Larger Work is a combination of Covered Software with
|
||||
a work governed by one or more Secondary Licenses, and the Covered Software is
|
||||
not Incompatible With Secondary Licenses, this License permits You to
|
||||
additionally distribute such Covered Software under the terms of such Secondary
|
||||
License(s), so that the recipient of the Larger Work may, at their option,
|
||||
further distribute the Covered Software under the terms of either this License
|
||||
or such Secondary License(s).
|
||||
|
||||
3.4. Notices
|
||||
|
||||
You may not remove or alter the substance of any license notices (including
|
||||
copyright notices, patent notices, disclaimers of warranty, or limitations of
|
||||
liability) contained within the Source Code Form of the Covered Software,
|
||||
except that You may alter any license notices to the extent required to remedy
|
||||
known factual inaccuracies.
|
||||
|
||||
3.5. Application of Additional Terms
|
||||
|
||||
You may choose to offer, and to charge a fee for, warranty, support, indemnity
|
||||
or liability obligations to one or more recipients of Covered Software.
|
||||
However, You may do so only on Your own behalf, and not on behalf of any
|
||||
Contributor. You must make it absolutely clear that any such warranty, support,
|
||||
indemnity, or liability obligation is offered by You alone, and You hereby
|
||||
agree to indemnify every Contributor for any liability incurred by such
|
||||
Contributor as a result of warranty, support, indemnity or liability terms You
|
||||
offer. You may include additional disclaimers of warranty and limitations of
|
||||
liability specific to any jurisdiction.
|
||||
|
||||
4. Inability to Comply Due to Statute or Regulation
|
||||
|
||||
If it is impossible for You to comply with any of the terms of this License
|
||||
with respect to some or all of the Covered Software due to statute, judicial
|
||||
order, or regulation then You must: (a) comply with the terms of this License
|
||||
to the maximum extent possible; and (b) describe the limitations and the code
|
||||
they affect. Such description must be placed in a text file included with all
|
||||
distributions of the Covered Software under this License. Except to the extent
|
||||
prohibited by statute or regulation, such description must be sufficiently
|
||||
detailed for a recipient of ordinary skill to be able to understand it.
|
||||
|
||||
5. Termination
|
||||
|
||||
5.1. The rights granted under this License will terminate automatically if You
|
||||
fail to comply with any of its terms. However, if You become compliant, then
|
||||
the rights granted under this License from a particular Contributor are
|
||||
reinstated (a) provisionally, unless and until such Contributor explicitly and
|
||||
finally terminates Your grants, and (b) on an ongoing basis, if such
|
||||
Contributor fails to notify You of the non-compliance by some reasonable means
|
||||
prior to 60 days after You have come back into compliance. Moreover, Your
|
||||
grants from a particular Contributor are reinstated on an ongoing basis if such
|
||||
Contributor notifies You of the non-compliance by some reasonable means, this
|
||||
is the first time You have received notice of non-compliance with this License
|
||||
from such Contributor, and You become compliant prior to 30 days after Your
|
||||
receipt of the notice.
|
||||
|
||||
5.2. If You initiate litigation against any entity by asserting a patent
|
||||
infringement claim (excluding declaratory judgment actions, counter-claims, and
|
||||
cross-claims) alleging that a Contributor Version directly or indirectly
|
||||
infringes any patent, then the rights granted to You by any and all
|
||||
Contributors for the Covered Software under Section 2.1 of this License shall
|
||||
terminate.
|
||||
|
||||
5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
|
||||
license agreements (excluding distributors and resellers) which have been
|
||||
validly granted by You or Your distributors under this License prior to
|
||||
termination shall survive termination.
|
||||
|
||||
6. Disclaimer of Warranty
|
||||
|
||||
Covered Software is provided under this License on an “as is” basis, without
|
||||
warranty of any kind, either expressed, implied, or statutory, including,
|
||||
without limitation, warranties that the Covered Software is free of defects,
|
||||
merchantable, fit for a particular purpose or non-infringing. The entire risk
|
||||
as to the quality and performance of the Covered Software is with You. Should
|
||||
any Covered Software prove defective in any respect, You (not any Contributor)
|
||||
assume the cost of any necessary servicing, repair, or correction. This
|
||||
disclaimer of warranty constitutes an essential part of this License. No use of
|
||||
any Covered Software is authorized under this License except under this
|
||||
disclaimer.
|
||||
|
||||
7. Limitation of Liability
|
||||
|
||||
Under no circumstances and under no legal theory, whether tort (including
|
||||
negligence), contract, or otherwise, shall any Contributor, or anyone who
|
||||
distributes Covered Software as permitted above, be liable to You for any
|
||||
direct, indirect, special, incidental, or consequential damages of any
|
||||
character including, without limitation, damages for lost profits, loss of
|
||||
goodwill, work stoppage, computer failure or malfunction, or any and all other
|
||||
commercial damages or losses, even if such party shall have been informed of
|
||||
the possibility of such damages. This limitation of liability shall not apply
|
||||
to liability for death or personal injury resulting from such party’s
|
||||
negligence to the extent applicable law prohibits such limitation. Some
|
||||
jurisdictions do not allow the exclusion or limitation of incidental or
|
||||
consequential damages, so this exclusion and limitation may not apply to You.
|
||||
|
||||
8. Litigation
|
||||
|
||||
Any litigation relating to this License may be brought only in the courts of a
|
||||
jurisdiction where the defendant maintains its principal place of business and
|
||||
such litigation shall be governed by laws of that jurisdiction, without
|
||||
reference to its conflict-of-law provisions. Nothing in this Section shall
|
||||
prevent a party’s ability to bring cross-claims or counter-claims.
|
||||
|
||||
9. Miscellaneous
|
||||
|
||||
This License represents the complete agreement concerning the subject matter
|
||||
hereof. If any provision of this License is held to be unenforceable, such
|
||||
provision shall be reformed only to the extent necessary to make it
|
||||
enforceable. Any law or regulation which provides that the language of a
|
||||
contract shall be construed against the drafter shall not be used to construe
|
||||
this License against a Contributor.
|
||||
|
||||
10. Versions of the License
|
||||
|
||||
10.1. New Versions
|
||||
|
||||
Mozilla Foundation is the license steward. Except as provided in Section 10.3,
|
||||
no one other than the license steward has the right to modify or publish new
|
||||
versions of this License. Each version will be given a distinguishing version
|
||||
number.
|
||||
|
||||
10.2. Effect of New Versions
|
||||
|
||||
You may distribute the Covered Software under the terms of the version of the
|
||||
License under which You originally received the Covered Software, or under the
|
||||
terms of any subsequent version published by the license steward.
|
||||
|
||||
10.3. Modified Versions
|
||||
|
||||
If you create software not governed by this License, and you want to create a
|
||||
new license for such software, you may create and use a modified version of
|
||||
this License if you rename the license and remove any references to the name of
|
||||
the license steward (except to note that such modified license differs from
|
||||
this License).
|
||||
|
||||
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
||||
Licenses
|
||||
|
||||
If You choose to distribute Source Code Form that is Incompatible With
|
||||
Secondary Licenses under the terms of this version of the License, the notice
|
||||
described in Exhibit B of this License must be attached.
|
||||
|
||||
Exhibit A - Source Code Form License Notice
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
If it is not possible or desirable to put the notice in a particular file, then
|
||||
You may include the notice in a location (such as a LICENSE file in a relevant
|
||||
directory) where a recipient would be likely to look for such a notice.
|
||||
|
||||
You may add additional accurate notices of copyright ownership.
|
||||
|
||||
Exhibit B - “Incompatible With Secondary Licenses” Notice
|
||||
|
||||
This Source Code Form is “Incompatible With Secondary Licenses”, as defined
|
||||
by the Mozilla Public License, v. 2.0.
|
||||
92
SPECS/ca-certificates-mozilla/ca-certificates-mozilla.spec
Normal file
92
SPECS/ca-certificates-mozilla/ca-certificates-mozilla.spec
Normal file
@@ -0,0 +1,92 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: ca-certificates-mozilla
|
||||
# Version number is NSS_BUILTINS_LIBRARY_VERSION in this file:
|
||||
# http://hg.mozilla.org/projects/nss/file/default/lib/ckfw/builtins/nssckbi.h
|
||||
Version: 2.82
|
||||
Release: %autorelease
|
||||
Summary: CA certificates for OpenSSL
|
||||
License: MPL-2.0
|
||||
URL: https://www.mozilla.org
|
||||
#!RemoteAsset
|
||||
Source0: https://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/certdata.txt
|
||||
#!RemoteAsset
|
||||
Source1: https://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/nssckbi.h
|
||||
#!RemoteAsset
|
||||
Source2: https://src.fedoraproject.org/rpms/ca-certificates/raw/rawhide/f/certdata2pem.py
|
||||
Source3: COPYING
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python3
|
||||
BuildRequires: python-rpm-macros
|
||||
|
||||
# for update-ca-certificates
|
||||
Requires(post): ca-certificates
|
||||
Requires(postun): ca-certificates
|
||||
|
||||
%description
|
||||
This package contains some CA root certificates for OpenSSL extracted
|
||||
from Mozilla Firefox
|
||||
|
||||
%prep
|
||||
%setup -qcT
|
||||
|
||||
mkdir certs
|
||||
cd certs
|
||||
cp %{SOURCE0} .
|
||||
cd ..
|
||||
|
||||
install -m 644 %{SOURCE3} COPYING
|
||||
# Notice the version number mismatch
|
||||
ver=`sed -ne '/NSS_BUILTINS_LIBRARY_VERSION /s/.*"\(.*\)"/\1/p' < "%{SOURCE1}"`
|
||||
if [ "%{version}" != "$ver" ]; then
|
||||
echo "*** Version number mismatch: spec file should be version $ver"
|
||||
false
|
||||
fi
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
cd certs
|
||||
%{__python3} %{SOURCE2}
|
||||
cd ..
|
||||
(
|
||||
cat <<-EOF
|
||||
# This is a bundle of X.509 certificates of public Certificate
|
||||
# Authorities. It was generated from the Mozilla root CA list.
|
||||
# These certificates and trust/distrust attributes use the file format accepted
|
||||
# by the p11-kit-trust module.
|
||||
#
|
||||
# Source: nss/lib/ckfw/builtins/certdata.txt
|
||||
# Source: nss/lib/ckfw/builtins/nssckbi.h
|
||||
#
|
||||
# Generated from:
|
||||
EOF
|
||||
awk '$2 == "NSS_BUILTINS_LIBRARY_VERSION" {print "# " $2 " " $3}' %{SOURCE1}
|
||||
echo '#';
|
||||
ls -1 certs/*.tmp-p11-kit | sort | xargs cat
|
||||
) > %{name}.trust.p11-kit
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_datadir}/pki/trust/
|
||||
install -m 644 %{name}.trust.p11-kit "%{buildroot}%{_datadir}/pki/trust/%{name}.trust.p11-kit"
|
||||
|
||||
%post
|
||||
update-ca-trust || true
|
||||
|
||||
%postun
|
||||
update-ca-trust || true
|
||||
|
||||
%posttrans
|
||||
update-ca-trust || true
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_datadir}/pki/trust/
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
4
SPECS/ca-certificates/README.etc
Normal file
4
SPECS/ca-certificates/README.etc
Normal file
@@ -0,0 +1,4 @@
|
||||
This directory /etc/pki/ca-trust is used by a system of consolidated
|
||||
CA certificates.
|
||||
|
||||
Please refer to the update-ca-trust(8) manual page for additional information.
|
||||
20
SPECS/ca-certificates/README.etcssl
Normal file
20
SPECS/ca-certificates/README.etcssl
Normal file
@@ -0,0 +1,20 @@
|
||||
This directory (/etc/ssl) is provided as a courtesy attempt to provide
|
||||
compatibility with software which assumes its existence. It is not a
|
||||
supported or canonical location. Software which assumes and relies on
|
||||
the existence and layout of this directory is making a wrong assumption
|
||||
(this directory is not any kind of 'standard', it is a configuration
|
||||
detail of Debian and its derivatives) and should be improved. No
|
||||
software packaged in this distribution should use this directory.
|
||||
|
||||
An attempt is made to make the layout of /etc/ssl/certs match that
|
||||
provided by Debian: it is an OpenSSL 'CApath'-style hashed directory
|
||||
of individual certificate files, and also contains a certificate bundle
|
||||
file named ca-certificates.crt, as Debian does. It also contains a
|
||||
bundle named ca-bundle.crt, as this distribution has long provided
|
||||
such a file, and it is possible some software has come to expect its
|
||||
existence.
|
||||
|
||||
/etc/ssl/certs itself and the bundle files are in fact symlinks to
|
||||
some of the output of the 'update-ca-trust' script which forms a part
|
||||
of a system of consolidated CA certificates. Please refer to the
|
||||
update-ca-trust(8) manual page for additional information.
|
||||
12
SPECS/ca-certificates/README.extr
Normal file
12
SPECS/ca-certificates/README.extr
Normal file
@@ -0,0 +1,12 @@
|
||||
This directory /etc/pki/ca-trust/extracted/ contains
|
||||
CA certificate bundle files which are automatically created.
|
||||
|
||||
If your application isn't able to load the PKCS#11 module p11-kit-trust.so,
|
||||
then you can use these files in your application to load a list of global
|
||||
root CA certificates.
|
||||
|
||||
Please never manually edit the files stored in this directory,
|
||||
because your changes will be lost and the files automatically overwritten,
|
||||
each time the update-ca-trust command gets executed.
|
||||
|
||||
Please refer to the update-ca-trust(8) manual page for additional information.
|
||||
17
SPECS/ca-certificates/README.java
Normal file
17
SPECS/ca-certificates/README.java
Normal file
@@ -0,0 +1,17 @@
|
||||
This directory /etc/pki/ca-trust/extracted/java/ contains
|
||||
CA certificate bundle files which are automatically created
|
||||
based on the information found in the
|
||||
/usr/share/pki/ca-trust-source/ and /etc/pki/ca-trust/source/
|
||||
directories.
|
||||
|
||||
All files are in the java keystore file format.
|
||||
|
||||
If your application isn't able to load the PKCS#11 module p11-kit-trust.so,
|
||||
then you can use these files in your application to load a list of global
|
||||
root CA certificates.
|
||||
|
||||
Please never manually edit the files stored in this directory,
|
||||
because your changes will be lost and the files automatically overwritten,
|
||||
each time the update-ca-trust command gets executed.
|
||||
|
||||
Please refer to the update-ca-trust(8) manual page for additional information.
|
||||
20
SPECS/ca-certificates/README.src
Normal file
20
SPECS/ca-certificates/README.src
Normal file
@@ -0,0 +1,20 @@
|
||||
This directory /etc/pki/ca-trust/source/ contains CA certificates and
|
||||
trust settings in the PEM file format. The trust settings found here will be
|
||||
interpreted with a high priority - higher than the ones found in
|
||||
/usr/share/pki/ca-trust-source/.
|
||||
|
||||
=============================================================================
|
||||
QUICK HELP: To add a certificate in the simple PEM or DER file formats to the
|
||||
list of CAs trusted on the system:
|
||||
|
||||
Copy it to the
|
||||
/etc/pki/ca-trust/source/anchors/
|
||||
subdirectory, and run the
|
||||
update-ca-trust
|
||||
command.
|
||||
|
||||
If your certificate is in the extended BEGIN TRUSTED file format,
|
||||
then place it into the main source/ directory instead.
|
||||
=============================================================================
|
||||
|
||||
Please refer to the update-ca-trust(8) manual page for additional information.
|
||||
20
SPECS/ca-certificates/README.usr
Normal file
20
SPECS/ca-certificates/README.usr
Normal file
@@ -0,0 +1,20 @@
|
||||
This directory /usr/share/pki/ca-trust-source/ contains CA certificates and
|
||||
trust settings in the PEM file format. The trust settings found here will be
|
||||
interpreted with a low priority - lower than the ones found in
|
||||
/etc/pki/ca-trust/source/ .
|
||||
|
||||
=============================================================================
|
||||
QUICK HELP: To add a certificate in the simple PEM or DER file formats to the
|
||||
list of CAs trusted on the system:
|
||||
|
||||
Copy it to the
|
||||
/usr/share/pki/ca-trust-source/anchors/
|
||||
subdirectory, and run the
|
||||
update-ca-trust
|
||||
command.
|
||||
|
||||
If your certificate is in the extended BEGIN TRUSTED file format,
|
||||
then place it into the main source/ directory instead.
|
||||
=============================================================================
|
||||
|
||||
Please refer to the update-ca-trust(8) manual page for additional information.
|
||||
154
SPECS/ca-certificates/ca-certificates.spec
Normal file
154
SPECS/ca-certificates/ca-certificates.spec
Normal file
@@ -0,0 +1,154 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: ca-certificates
|
||||
# Date based, manually update from URL. Also no VCS.
|
||||
Version: 20251015
|
||||
Release: %autorelease
|
||||
Summary: Utilities for system wide CA certificate installation
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://src.fedoraproject.org/rpms/ca-certificates
|
||||
Source0: update-ca-trust
|
||||
# TODO: convert this to man page once we have asciidoc
|
||||
Source1: update-ca-trust.8.txt
|
||||
Source2: README.etc
|
||||
Source3: README.etcssl
|
||||
Source4: README.extr
|
||||
Source5: README.java
|
||||
Source6: README.src
|
||||
Source7: README.usr
|
||||
BuildRequires: p11-kit-devel
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: bash
|
||||
BuildRequires: findutils
|
||||
|
||||
Requires: p11-kit
|
||||
Requires(post): p11-kit
|
||||
Requires(post): bash
|
||||
Requires(post): findutils
|
||||
Requires(post): grep
|
||||
Requires(post): sed
|
||||
|
||||
Recommends: ca-certificates-mozilla
|
||||
|
||||
%description
|
||||
Update-ca-certificates is intended to keep the certificate stores of
|
||||
SSL libraries like OpenSSL or GnuTLS in sync with the system's CA
|
||||
certificate store that is managed by p11-kit.
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/tls/certs
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/ssl
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/source
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/source/anchors
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/source/blocklist
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/directory-hash
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/java
|
||||
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/edk2
|
||||
mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-source
|
||||
mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-source/anchors
|
||||
mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-source/blocklist
|
||||
mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-legacy
|
||||
mkdir -p -m 755 %{buildroot}%{_bindir}
|
||||
|
||||
install -p -m 755 %{SOURCE0} %{buildroot}%{_bindir}/update-ca-trust
|
||||
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pki/ca-trust/README
|
||||
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/ssl/README
|
||||
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/README
|
||||
install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/java/README
|
||||
install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/pki/ca-trust/source/README
|
||||
install -p -m 644 %{SOURCE7} %{buildroot}%{_datadir}/pki/ca-trust-source/README
|
||||
|
||||
|
||||
# touch ghosted files that will be extracted dynamically
|
||||
# Set chmod 444 to use identical permission
|
||||
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
|
||||
chmod 444 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
|
||||
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/email-ca-bundle.pem
|
||||
chmod 444 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/email-ca-bundle.pem
|
||||
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
|
||||
chmod 444 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
|
||||
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/edk2/cacerts.bin
|
||||
chmod 444 %{buildroot}%{_sysconfdir}/pki/ca-trust/extracted/edk2/cacerts.bin
|
||||
|
||||
# Compatibility symlink
|
||||
ln -s %{_sysconfdir}/pki/tls/certs %{buildroot}%{_sysconfdir}/ssl/certs
|
||||
ln -s %{_sysconfdir}/pki/tls/openssl.cnf %{buildroot}%{_sysconfdir}/ssl/openssl.cnf
|
||||
ln -s %{_sysconfdir}/pki/tls/ct_log_list.cnf %{buildroot}%{_sysconfdir}/ssl/ct_log_list.cnf
|
||||
|
||||
%pre
|
||||
if [ $1 -gt 1 ] ; then
|
||||
# Remove the old symlinks
|
||||
rm -f %{pkidir}/tls/cert.pem
|
||||
rm -f %{pkidir}/tls/certs/ca-bundle.crt
|
||||
rm -f %{pkidir}/tls/certs/ca-bundle.trust.crt
|
||||
rm -f %{pkidir}/tls/certs/ca-certificates.crt
|
||||
rm -f %{_sysconfdir}/ssl/cert.pem
|
||||
fi
|
||||
|
||||
%post
|
||||
# if ln is available, go ahead and run the ca-legacy and update
|
||||
# scripts. If not, wait until %posttrans.
|
||||
if [ -x %{_bindir}/ln ]; then
|
||||
%{_bindir}/update-ca-trust || true
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
# When coreutils is installing with ca-certificates
|
||||
# we need to wait until coreutils install to
|
||||
# run our update since update requires ln to complete.
|
||||
# There is a circular dependency here where
|
||||
# ca-certificates depends on coreutils
|
||||
# coreutils depends on openssl
|
||||
# openssl depends on ca-certificates
|
||||
# so we run the scripts here too, in case we couldn't run them in
|
||||
# post. If we *could* run them in post this is an unnecessary
|
||||
# duplication, but it shouldn't hurt anything
|
||||
%{_bindir}/update-ca-trust || true
|
||||
|
||||
%files
|
||||
%dir %{_sysconfdir}/ssl
|
||||
%dir %{_sysconfdir}/pki/tls
|
||||
%dir %{_sysconfdir}/pki/tls/certs
|
||||
%dir %{_sysconfdir}/pki/ca-trust
|
||||
%dir %{_sysconfdir}/pki/ca-trust/source
|
||||
%dir %{_sysconfdir}/pki/ca-trust/source/anchors
|
||||
%dir %{_sysconfdir}/pki/ca-trust/source/blocklist
|
||||
%dir %{_sysconfdir}/pki/ca-trust/extracted
|
||||
%dir %{_sysconfdir}/pki/ca-trust/extracted/pem
|
||||
%dir %{_sysconfdir}/pki/ca-trust/extracted/java
|
||||
%dir %{_sysconfdir}/pki/ca-trust/extracted/edk2
|
||||
%dir %{_datadir}/pki
|
||||
%dir %{_datadir}/pki/ca-trust-source
|
||||
%dir %{_datadir}/pki/ca-trust-source/anchors
|
||||
%dir %{_datadir}/pki/ca-trust-source/blocklist
|
||||
%dir %{_datadir}/pki/ca-trust-legacy
|
||||
%dir %{_sysconfdir}/pki/ca-trust/extracted/pem/directory-hash
|
||||
%{_sysconfdir}/ssl/certs
|
||||
%{_sysconfdir}/ssl/README
|
||||
%{_sysconfdir}/ssl/openssl.cnf
|
||||
%{_sysconfdir}/ssl/ct_log_list.cnf
|
||||
%{_bindir}/update-ca-trust
|
||||
%{_datadir}/pki/ca-trust-source/README
|
||||
%{_sysconfdir}/pki/ca-trust/README
|
||||
%{_sysconfdir}/pki/ca-trust/extracted/README
|
||||
%{_sysconfdir}/pki/ca-trust/extracted/java/README
|
||||
%{_sysconfdir}/pki/ca-trust/source/README
|
||||
# files extracted files
|
||||
%ghost %{_sysconfdir}/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
|
||||
%ghost %{_sysconfdir}/pki/ca-trust/extracted/pem/email-ca-bundle.pem
|
||||
%ghost %{_sysconfdir}/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
|
||||
%ghost %{_sysconfdir}/pki/ca-trust/extracted/edk2/cacerts.bin
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
183
SPECS/ca-certificates/update-ca-trust
Normal file
183
SPECS/ca-certificates/update-ca-trust
Normal file
@@ -0,0 +1,183 @@
|
||||
#!/bin/sh
|
||||
|
||||
#set -vx
|
||||
set -eu
|
||||
|
||||
# For backwards compatibility reasons, future versions of this script must
|
||||
# support the syntax "update-ca-trust extract" trigger the generation of output
|
||||
# files in $DEST.
|
||||
|
||||
DEST=/etc/pki/ca-trust/extracted
|
||||
DEST_CERTS=/etc/pki/tls/certs
|
||||
|
||||
# Prevent p11-kit from reading user configuration files.
|
||||
export P11_KIT_NO_USER_CONFIG=1
|
||||
|
||||
usage() {
|
||||
fold -s -w 76 >&2 <<-EOF
|
||||
Usage: $0 [extract] [-o DIR|--output DIR]
|
||||
|
||||
Update the system trust store in $DEST.
|
||||
|
||||
COMMANDS
|
||||
(absent/empty command): Same as the extract command without arguments.
|
||||
|
||||
extract: Instruct update-ca-trust to scan the source configuration in
|
||||
/usr/share/pki/ca-trust-source and /etc/pki/ca-trust/source and produce
|
||||
updated versions of the consolidated configuration files stored below
|
||||
the $DEST directory hierarchy.
|
||||
|
||||
EXTRACT OPTIONS
|
||||
-o DIR, --output DIR: Write the extracted trust store into the given
|
||||
directory instead of updating $DEST. (Note: This option will not
|
||||
populate the ../pki/tls/certs with the directory-hash symbolic links.)
|
||||
|
||||
--rhbz2387674: A temporary compatibility option that restores several
|
||||
legacy certificate-bundle symlinks (e.g., /etc/ssl/cert.pem) to
|
||||
address issues with older software.
|
||||
These symlinks will be removed on ca-certificate updates or reinstalls,
|
||||
so you'll have to re-run this command after ca-certificates updates if
|
||||
the issue is still not fixed.
|
||||
WARNING: Do not use in automation or build scripts. This flag
|
||||
is going to be removed in a future release, and any scripts relying on
|
||||
it will inevitably break!
|
||||
EOF
|
||||
}
|
||||
|
||||
rhbz2387674_msg() {
|
||||
fold -s -w 76 >&2 <<-EOF
|
||||
----------------------------------------------------------------------------
|
||||
** DEPRECATION WARNING **
|
||||
----------------------------------------------------------------------------
|
||||
The option --rhbz2387674 is a temporary workaround and will be removed in a
|
||||
future release. Please do not use it in build scripts or automation.
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
** ACTION REQUIRED **
|
||||
----------------------------------------------------------------------------
|
||||
To ensure the affected package works correctly in the future, a bug report must
|
||||
be filed.
|
||||
|
||||
1. Check if a bug already exists for the affected package: https://bugzilla.redhat.com/buglist.cgi?component=ca-certificates&product=Fedora&short_desc=droppingOfCertPemFile%20package%3A&short_desc_type=allwordssubstr
|
||||
|
||||
2. If no bug exists, please file a new one using this template: https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=ca-certificates&version=rawhide&short_desc=droppingOfCertPemFile+package:+<<package_name>>+is+affected
|
||||
|
||||
Thank you for helping improve Fedora.
|
||||
EOF
|
||||
}
|
||||
|
||||
extract() {
|
||||
USER_DEST=
|
||||
compat=
|
||||
|
||||
# can't use getopt here. ca-certificates can't depend on a lot
|
||||
# of other libraries since openssl depends on ca-certificates
|
||||
# just fail when we hand parse
|
||||
|
||||
while [ $# -ne 0 ]; do
|
||||
case "$1" in
|
||||
"-o"|"--output")
|
||||
if [ $# -lt 2 ]; then
|
||||
echo >&2 "Error: missing argument for '$1' option. See 'update-ca-trust --help' for usage."
|
||||
echo >&2
|
||||
exit 1
|
||||
fi
|
||||
USER_DEST=$2
|
||||
shift 2
|
||||
continue
|
||||
;;
|
||||
"--rhbz2387674")
|
||||
compat="true"
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
"--")
|
||||
shift
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo >&2 "Error: unknown extract argument '$1'. See 'update-ca-trust --help' for usage."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "$compat" = "true" && -n "$USER_DEST" ]]; then
|
||||
echo "Error: arguments '-o DIR|--output DIR' and '--rhbz2387674' can't be used together"
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
if [ -n "$USER_DEST" ]; then
|
||||
DEST=$USER_DEST
|
||||
# Attempt to create the directories if they do not exist
|
||||
# yet (rhbz#2241240)
|
||||
/usr/bin/mkdir -p \
|
||||
"$DEST"/openssl \
|
||||
"$DEST"/pem \
|
||||
"$DEST"/java \
|
||||
"$DEST"/edk2
|
||||
fi
|
||||
|
||||
|
||||
# Delete all directory hash symlinks from the cert directory
|
||||
if [ -z "$USER_DEST" ]; then
|
||||
find "$DEST_CERTS" -type l -regextype posix-extended \
|
||||
-regex '.*/[0-9a-f]{8}\.[0-9]+' -exec rm -f {} \;
|
||||
fi
|
||||
|
||||
# OpenSSL PEM bundle that includes trust flags
|
||||
# (BEGIN TRUSTED CERTIFICATE)
|
||||
/usr/bin/trust extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose server-auth "$DEST/pem/tls-ca-bundle.pem"
|
||||
/usr/bin/trust extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose email "$DEST/pem/email-ca-bundle.pem"
|
||||
/usr/bin/trust extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose code-signing "$DEST/pem/objsign-ca-bundle.pem"
|
||||
/usr/bin/trust extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth "$DEST/java/cacerts"
|
||||
/usr/bin/trust extract --format=edk2-cacerts --filter=ca-anchors --overwrite --purpose=server-auth "$DEST/edk2/cacerts.bin"
|
||||
# Hashed directory of BEGIN TRUSTED-style certs (usable as OpenSSL CApath and
|
||||
# by GnuTLS)
|
||||
/usr/bin/trust extract --format=pem-directory-hash --filter=ca-anchors --overwrite --purpose server-auth "$DEST/pem/directory-hash"
|
||||
|
||||
|
||||
if [ -n "$compat" ]; then
|
||||
# print warning message
|
||||
rhbz2387674_msg
|
||||
|
||||
# bring back bundle in openssl trust format
|
||||
/usr/bin/trust extract --format=openssl-bundle --filter=certificates --overwrite --comment "$DEST_CERTS/ca-bundle.trust.crt"
|
||||
|
||||
# create symlinks to /etc/pki/tls/..
|
||||
ln -sf "$DEST/pem/tls-ca-bundle.pem" "$DEST_CERTS/../cert.pem"
|
||||
ln -sf "$DEST/pem/tls-ca-bundle.pem" "$DEST_CERTS/ca-certificates.crt"
|
||||
ln -sf "$DEST/pem/tls-ca-bundle.pem" "$DEST_CERTS/ca-bundle.crt"
|
||||
|
||||
# create symlinks to /etc/ssl/ the certs folder is already sym-linked
|
||||
ln -sf "$DEST/pem/tls-ca-bundle.pem" "/etc/ssl/cert.pem"
|
||||
fi
|
||||
|
||||
if [ -z "$USER_DEST" ]; then
|
||||
find "$DEST/pem/directory-hash" -type l -regextype posix-extended \
|
||||
-regex '.*/[0-9a-f]{8}\.[0-9]+' | while read link; do
|
||||
target=$(readlink -f "$link")
|
||||
new_link="$DEST_CERTS/$(basename "$link")"
|
||||
ln -s "$target" "$new_link"
|
||||
done
|
||||
fi
|
||||
}
|
||||
if [ $# -lt 1 ]; then
|
||||
set -- extract
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
"extract")
|
||||
shift
|
||||
extract "$@"
|
||||
;;
|
||||
"--help")
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo >&2 "Error: unknown command: '$1', see 'update-ca-trust --help' for usage."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
276
SPECS/ca-certificates/update-ca-trust.8.txt
Normal file
276
SPECS/ca-certificates/update-ca-trust.8.txt
Normal file
@@ -0,0 +1,276 @@
|
||||
////
|
||||
Copyright (C) 2013 Red Hat, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of 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 the
|
||||
GNU General Public License for more details.
|
||||
////
|
||||
|
||||
|
||||
update-ca-trust(8)
|
||||
==================
|
||||
:doctype: manpage
|
||||
:man source: update-ca-trust
|
||||
|
||||
|
||||
NAME
|
||||
----
|
||||
update-ca-trust - manage consolidated and dynamic configuration of CA
|
||||
certificates and associated trust
|
||||
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
*update-ca-trust* [extract] [-o 'DIR'|--output='DIR']
|
||||
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
update-ca-trust(8) is used to manage a consolidated and dynamic configuration
|
||||
feature of Certificate Authority (CA) certificates and associated trust.
|
||||
|
||||
The feature is available for new applications that read the
|
||||
consolidated configuration files found in the /etc/pki/ca-trust/extracted directory
|
||||
or that load the PKCS#11 module p11-kit-trust.so
|
||||
|
||||
Parts of the new feature are also provided in a way to make it useful
|
||||
for legacy applications.
|
||||
|
||||
Many legacy applications expect CA certificates and trust configuration
|
||||
in a fixed location, contained in files with particular path and name,
|
||||
or by referring to a classic PKCS#11 trust module provided by the
|
||||
NSS cryptographic library.
|
||||
|
||||
The dynamic configuration feature provides functionally compatible replacements
|
||||
for classic configuration files and for the classic NSS trust module named libnssckbi.
|
||||
|
||||
In order to enable legacy applications, that read the classic files or
|
||||
access the classic module, to make use of the new consolidated and dynamic configuration
|
||||
feature, the classic filenames have been changed to symbolic links.
|
||||
The symbolic links refer to dynamically created and consolidated
|
||||
output stored below the /etc/pki/ca-trust/extracted directory hierarchy.
|
||||
|
||||
The output is produced using the 'update-ca-trust' command (without parameters),
|
||||
or using the 'update-ca-trust extract' command.
|
||||
In order to produce the output, a flexible set of source configuration
|
||||
is read, as described in section <<sourceconf,SOURCE CONFIGURATION>>.
|
||||
|
||||
In addition, the classic PKCS#11 module
|
||||
is replaced with a new PKCS#11 module (p11-kit-trust.so) that dynamically
|
||||
reads the same source configuration.
|
||||
|
||||
|
||||
[[sourceconf]]
|
||||
SOURCE CONFIGURATION
|
||||
--------------------
|
||||
The dynamic configuration feature uses several source directories that
|
||||
will be scanned for any number of source files. *It is important to select
|
||||
the correct subdirectory for adding files, as the subdirectory defines how
|
||||
contained certificates will be trusted or distrusted, and which file formats are read.*
|
||||
|
||||
Files in *subdirectories below the directory hierarchy /usr/share/pki/ca-trust-source/* contain CA certificates and
|
||||
trust settings in the PEM file format. The trust settings found here will be
|
||||
interpreted with a *low priority*.
|
||||
|
||||
Files in *subdirectories below the directory hierarchy /etc/pki/ca-trust/source/* contain CA certificates and
|
||||
trust settings in the PEM file format. The trust settings found here will be
|
||||
interpreted with a *high priority*.
|
||||
|
||||
.You may use the following rules of thumb to decide, whether your configuration files should be added to the /etc or rather to the /usr directory hierarchy:
|
||||
* If you are manually adding a configuration file to a system, you probably
|
||||
want it to override any other default configuration, and you most likely should
|
||||
add it to the respective subdirectory in the /etc hierarchy.
|
||||
* If you are creating a package that provides additional root CA certificates,
|
||||
that is intended for distribution to several computer systems, but you still
|
||||
want to allow the administrator to override your list, then your package should
|
||||
add your files to the respective subdirectory in the /usr hierarchy.
|
||||
* If you are creating a package that is supposed to override the default system
|
||||
trust settings, that is intended for distribution to several computer systems, then your package should install the files to the respective
|
||||
subdirectory in the /etc hierarchy.
|
||||
|
||||
.*QUICK HELP 1*: To add a certificate in the simple PEM or DER file formats to the list of CAs trusted on the system:
|
||||
* add it as a new file to directory /etc/pki/ca-trust/source/anchors/
|
||||
* run 'update-ca-trust extract'
|
||||
|
||||
.*QUICK HELP 2*: If your certificate is in the extended BEGIN TRUSTED file format (which may contain distrust/blocklist trust flags, or trust flags for usages other than TLS) then:
|
||||
* add it as a new file to directory /etc/pki/ca-trust/source/
|
||||
* run 'update-ca-trust extract'
|
||||
|
||||
.In order to offer simplicity and flexibility, the way certificate files are treated depends on the subdirectory they are installed to.
|
||||
* simple trust anchors subdirectory: /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/
|
||||
* simple blocklist (distrust) subdirectory: /usr/share/pki/ca-trust-source/blocklist/ or /etc/pki/ca-trust/source/blocklist/
|
||||
* extended format directory: /usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
||||
|
||||
.In the main directories /usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/ you may install one or multiple files in the following file formats:
|
||||
* certificate files that include trust flags,
|
||||
in the BEGIN/END TRUSTED CERTIFICATE file format
|
||||
(any file name), which have been created using the openssl x509 tool
|
||||
and the -addreject -addtrust options.
|
||||
Bundle files with multiple certificates are supported.
|
||||
* files in the p11-kit file format using the .p11-kit file name
|
||||
extension, which can (e.g.) be used to distrust certificates
|
||||
based on serial number and issuer name, without having the
|
||||
full certificate available.
|
||||
(This is currently an undocumented format, to be extended later.
|
||||
For examples of the supported formats, see the files
|
||||
shipped with the ca-certificates package.)
|
||||
* certificate files without trust flags in either the DER file format or in
|
||||
the PEM (BEGIN/END CERTIFICATE) file format (any file name). Such files
|
||||
will be added with neutral trust, neither trusted nor distrusted.
|
||||
They will simply be known to the system, which might be helpful to
|
||||
assist cryptographic software in constructing chains of certificates.
|
||||
(If you want a CA certificate in these file formats to be trusted, you
|
||||
should remove it from this directory and move it to the
|
||||
./anchors subdirectory instead.)
|
||||
|
||||
In the anchors subdirectories /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/
|
||||
you may install one or multiple certificates in either the DER file
|
||||
format or in the PEM (BEGIN/END CERTIFICATE) file format.
|
||||
Each certificate will be treated as *trusted* for all purposes.
|
||||
|
||||
In the blocklist subdirectories /usr/share/pki/ca-trust-source/blocklist/ or /etc/pki/ca-trust/source/blocklist/
|
||||
you may install one or multiple certificates in either the DER file
|
||||
format or in the PEM (BEGIN/END CERTIFICATE) file format.
|
||||
Each certificate will be treated as *distrusted* for all purposes.
|
||||
|
||||
Please refer to the x509(1) manual page for the documentation of the
|
||||
BEGIN/END CERTIFICATE and BEGIN/END TRUSTED CERTIFICATE file formats.
|
||||
|
||||
Applications that rely on a static file for a list of trusted CAs
|
||||
may load one of the files found in the /etc/pki/ca-trust/extracted
|
||||
directory. After modifying any file in the
|
||||
/usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
||||
directories or in any of their subdirectories, or after adding a file,
|
||||
it is necessary to run the 'update-ca-trust extract' command,
|
||||
in order to update the consolidated files in /etc/pki/ca-trust/extracted/ .
|
||||
|
||||
Applications that load the classic PKCS#11 module using filename libnssckbi.so
|
||||
(which has been converted into a symbolic link pointing to the new module)
|
||||
and any application capable of
|
||||
loading PKCS#11 modules and loading p11-kit-trust.so, will benefit from
|
||||
the dynamically merged set of certificates and trust information stored in the
|
||||
/usr/share/pki/ca-trust-source/ and /etc/pki/ca-trust/source/ directories.
|
||||
|
||||
|
||||
[[extractconf]]
|
||||
EXTRACTED CONFIGURATION
|
||||
-----------------------
|
||||
The directory /etc/pki/ca-trust/extracted/ contains generated CA certificate
|
||||
bundle files which are created and updated, based on the <<sourceconf,SOURCE CONFIGURATION>>
|
||||
by running the 'update-ca-trust extract' command.
|
||||
|
||||
If your application isn't able to load the PKCS#11 module p11-kit-trust.so,
|
||||
then you can use these files in your application to load a list of global
|
||||
root CA certificates.
|
||||
|
||||
Please never manually edit the files stored in this directory,
|
||||
because your changes will be lost and the files automatically overwritten,
|
||||
each time the 'update-ca-trust extract' command gets executed.
|
||||
|
||||
In order to install new trusted or distrusted certificates,
|
||||
please rather install them in the respective subdirectory below the
|
||||
/usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
||||
directories, as described in the <<sourceconf,SOURCE CONFIGURATION>> section.
|
||||
|
||||
The directory /etc/pki/ca-trust/extracted/java/ contains
|
||||
a CA certificate bundle in the java keystore file format.
|
||||
Distrust information cannot be represented in this file format,
|
||||
and distrusted certificates are missing from these files.
|
||||
File cacerts contains CA certificates trusted for TLS server authentication.
|
||||
|
||||
The directory /etc/pki/ca-trust/extracted/openssl/ contains
|
||||
CA certificate bundle files in the extended BEGIN/END TRUSTED CERTIFICATE file format,
|
||||
as described in the x509(1) manual page.
|
||||
File ca-bundle.trust.crt contains the full set of all trusted
|
||||
or distrusted certificates, including the associated trust flags.
|
||||
|
||||
The directory /etc/pki/ca-trust/extracted/pem/ contains
|
||||
CA certificate bundle files in the simple BEGIN/END CERTIFICATE file format,
|
||||
as described in the x509(1) manual page.
|
||||
Distrust information cannot be represented in this file format,
|
||||
and distrusted certificates are missing from these files.
|
||||
File tls-ca-bundle.pem contains CA certificates
|
||||
trusted for TLS server authentication.
|
||||
File email-ca-bundle.pem contains CA certificates
|
||||
trusted for E-Mail protection.
|
||||
File objsign-ca-bundle.pem contains CA certificates
|
||||
trusted for code signing.
|
||||
|
||||
The directory /etc/pki/ca-trust/extracted/edk2/ contains a CA
|
||||
certificate bundle ("cacerts.bin") in the "sequence of
|
||||
EFI_SIGNATURE_LISTs" format, defined in the UEFI-2.7 specification,
|
||||
sections "31.4.1 Signature Database" and
|
||||
"EFI_CERT_X509_GUID". Distrust information cannot be represented in
|
||||
this file format, and distrusted certificates are missing from these
|
||||
files. File "cacerts.bin" contains CA certificates trusted for TLS
|
||||
server authentication.
|
||||
|
||||
|
||||
COMMANDS
|
||||
--------
|
||||
(absent/empty command)
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
Same as the *extract* command described below. (However, the command may print
|
||||
fewer warnings, as this command is being run during rpm package installation,
|
||||
where non-fatal status output is undesired.)
|
||||
|
||||
extract
|
||||
~~~~~~~
|
||||
Instruct update-ca-trust to scan the <<sourceconf,SOURCE CONFIGURATION>> and
|
||||
produce updated versions of the consolidated configuration files stored below
|
||||
the /etc/pki/ca-trust/extracted directory hierarchy.
|
||||
|
||||
EXTRACT OPTIONS
|
||||
^^^^^^^^^^^^^^^
|
||||
*-o DIR*, *--output=DIR*::
|
||||
Write the extracted trust store into the given directory instead of
|
||||
updating /etc/pki/ca-trust/extracted. (Note: This option will not
|
||||
populate the ../pki/tls/certs with the directory-hash symbolic links.)
|
||||
|
||||
FILES
|
||||
-----
|
||||
/etc/pki/java/cacerts::
|
||||
Classic filename, file contains a list of CA certificates trusted for TLS server authentication usage, in the Java keystore file format, without distrust information.
|
||||
This file is a symbolic link that refers to the consolidated output created by the update-ca-trust command.
|
||||
|
||||
/usr/share/pki/ca-trust-source::
|
||||
Contains multiple, low priority source configuration files as explained in section <<sourceconf,SOURCE CONFIGURATION>>. Please pay attention to the specific meanings of the respective subdirectories.
|
||||
|
||||
/etc/pki/ca-trust/source::
|
||||
Contains multiple, high priority source configuration files as explained in section <<sourceconf,SOURCE CONFIGURATION>>. Please pay attention to the specific meanings of the respective subdirectories.
|
||||
|
||||
/etc/pki/ca-trust/extracted::
|
||||
Contains consolidated and automatically generated configuration files for consumption by applications,
|
||||
which are created using the 'update-ca-trust extract' command. Don't edit files in this directory, because they will be overwritten.
|
||||
See section <<extractconf,EXTRACTED CONFIGURATION>> for additional details.
|
||||
|
||||
/etc/pki/tls/certs::
|
||||
Contains symbolic links to the directory-hash format certificates generated by update-ca-trust command, they are inteded as a internal format for OpenSSL and not to be used directly by the other crypto libraries or applications.
|
||||
|
||||
LEGACY FILES
|
||||
------------
|
||||
The following file paths were used in legacy versions of the utility
|
||||
and have since been replaced. Scripts and configurations referencing
|
||||
these old paths should be updated.
|
||||
|
||||
/etc/pki/cert.pem::
|
||||
This file has been replaced by /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem.
|
||||
|
||||
/etc/pki/tls/certs/ca-certificates.crt::
|
||||
This file has been replaced by /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem.
|
||||
|
||||
/etc/pki/tls/certs/ca-bundle.crt::
|
||||
This file has been replaced by /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem.
|
||||
|
||||
/etc/pki/tls/certs/ca-bundle.trust.crt::
|
||||
This has been replaced by the directory-hash format certificates stored in /etc/pki/ca-trust/extracted/pem/directory-hash/ directory.
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
Written by Kai Engert and Stef Walter.
|
||||
158
SPECS/cairo/cairo.spec
Normal file
158
SPECS/cairo/cairo.spec
Normal file
@@ -0,0 +1,158 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
# Change these to 1 once we have them
|
||||
%bcond gtk_doc 0
|
||||
|
||||
Name: cairo
|
||||
Version: 1.18.4
|
||||
Release: %autorelease
|
||||
Summary: A 2D graphics library
|
||||
License: LGPL-2.1-only OR MPL-1.1
|
||||
URL: https://cairographics.org
|
||||
VCS: git:git://anongit.freedesktop.org/git/cairo
|
||||
#!RemoteAsset
|
||||
Source0: https://cairographics.org/releases/%{name}-%{version}.tar.xz
|
||||
BuildSystem: meson
|
||||
|
||||
BuildOption(conf): -Dfreetype=enabled
|
||||
BuildOption(conf): -Dfontconfig=enabled
|
||||
BuildOption(conf): -Dglib=enabled
|
||||
%if %{with gtk_doc}
|
||||
BuildOption(conf): -Dgtk_doc=true
|
||||
%endif
|
||||
BuildOption(conf): -Dspectre=disabled
|
||||
BuildOption(conf): -Dsymbol-lookup=disabled
|
||||
BuildOption(conf): -Dtee=enabled
|
||||
BuildOption(conf): -Dtests=disabled
|
||||
BuildOption(conf): -Dxcb=enabled
|
||||
BuildOption(conf): -Dxlib=enabled
|
||||
|
||||
BuildRequires: meson
|
||||
%if %{with gtk_doc}
|
||||
BuildRequires: gtk-doc
|
||||
%endif
|
||||
BuildRequires: pkgconfig(expat)
|
||||
BuildRequires: pkgconfig(pixman-1)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(gobject-2.0)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(lzo2)
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: pkgconfig(xcb-render)
|
||||
BuildRequires: pkgconfig(xrender)
|
||||
|
||||
%description
|
||||
Cairo is a 2D graphics library designed to provide high-quality display
|
||||
and print output. Currently supported output targets include the X Window
|
||||
System, in-memory image buffers, and image files (PDF, PostScript, and SVG).
|
||||
|
||||
Cairo is designed to produce consistent output on all output media while
|
||||
taking advantage of display hardware acceleration when available.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for cairo
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Cairo is a 2D graphics library designed to provide high-quality display
|
||||
and print output.
|
||||
|
||||
This package contains libraries, header files and developer documentation
|
||||
needed for developing software which uses the cairo graphics library.
|
||||
|
||||
%package gobject
|
||||
Summary: GObject bindings for cairo
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description gobject
|
||||
Cairo is a 2D graphics library designed to provide high-quality display
|
||||
and print output.
|
||||
|
||||
This package contains functionality to make cairo graphics library
|
||||
integrate well with the GObject object system used by GNOME.
|
||||
|
||||
%package gobject-devel
|
||||
Summary: Development files for cairo-gobject
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
Requires: %{name}-gobject = %{version}-%{release}
|
||||
|
||||
%description gobject-devel
|
||||
Cairo is a 2D graphics library designed to provide high-quality display
|
||||
and print output.
|
||||
|
||||
This package contains libraries, header files and developer documentation
|
||||
needed for developing software which uses the cairo Gobject library.
|
||||
|
||||
%package tools
|
||||
Summary: Development tools for cairo
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description tools
|
||||
Cairo is a 2D graphics library designed to provide high-quality display
|
||||
and print output.
|
||||
|
||||
This package contains tools for working with the cairo graphics library.
|
||||
* cairo-trace: Record cairo library calls for later playback
|
||||
|
||||
%files
|
||||
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
||||
%doc AUTHORS BUGS NEWS README.md
|
||||
%{_libdir}/libcairo.so.2*
|
||||
%{_libdir}/libcairo-script-interpreter.so.2*
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/cairo/
|
||||
%{_includedir}/cairo/cairo-deprecated.h
|
||||
%{_includedir}/cairo/cairo-features.h
|
||||
%{_includedir}/cairo/cairo-ft.h
|
||||
%{_includedir}/cairo/cairo.h
|
||||
%{_includedir}/cairo/cairo-pdf.h
|
||||
%{_includedir}/cairo/cairo-ps.h
|
||||
%{_includedir}/cairo/cairo-script-interpreter.h
|
||||
%{_includedir}/cairo/cairo-svg.h
|
||||
%{_includedir}/cairo/cairo-tee.h
|
||||
%{_includedir}/cairo/cairo-version.h
|
||||
%{_includedir}/cairo/cairo-xlib-xrender.h
|
||||
%{_includedir}/cairo/cairo-xlib.h
|
||||
%{_includedir}/cairo/cairo-script.h
|
||||
%{_includedir}/cairo/cairo-xcb.h
|
||||
%{_libdir}/libcairo.so
|
||||
%{_libdir}/libcairo-script-interpreter.so
|
||||
%{_libdir}/pkgconfig/cairo-fc.pc
|
||||
%{_libdir}/pkgconfig/cairo-ft.pc
|
||||
%{_libdir}/pkgconfig/cairo.pc
|
||||
%{_libdir}/pkgconfig/cairo-pdf.pc
|
||||
%{_libdir}/pkgconfig/cairo-png.pc
|
||||
%{_libdir}/pkgconfig/cairo-ps.pc
|
||||
%{_libdir}/pkgconfig/cairo-script-interpreter.pc
|
||||
%{_libdir}/pkgconfig/cairo-svg.pc
|
||||
%{_libdir}/pkgconfig/cairo-tee.pc
|
||||
%{_libdir}/pkgconfig/cairo-xlib.pc
|
||||
%{_libdir}/pkgconfig/cairo-xlib-xrender.pc
|
||||
%{_libdir}/pkgconfig/cairo-script.pc
|
||||
%{_libdir}/pkgconfig/cairo-xcb-shm.pc
|
||||
%{_libdir}/pkgconfig/cairo-xcb.pc
|
||||
%if %{with gtk_doc}
|
||||
%{_datadir}/gtk-doc/html/cairo
|
||||
%endif
|
||||
|
||||
%files gobject
|
||||
%{_libdir}/libcairo-gobject.so.2*
|
||||
|
||||
%files gobject-devel
|
||||
%{_includedir}/cairo/cairo-gobject.h
|
||||
%{_libdir}/libcairo-gobject.so
|
||||
%{_libdir}/pkgconfig/cairo-gobject.pc
|
||||
|
||||
%files tools
|
||||
%{_bindir}/cairo-trace
|
||||
%{_libdir}/cairo/
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
68
SPECS/ccache/ccache.spec
Normal file
68
SPECS/ccache/ccache.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%bcond test 0
|
||||
|
||||
Name: ccache
|
||||
Version: 4.12
|
||||
Release: %autorelease
|
||||
Summary: A Fast C/C++ Compiler Cache
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://ccache.dev/
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/ccache/ccache/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildSystem: cmake
|
||||
|
||||
BuildOption(conf): -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
|
||||
%if %{without test}
|
||||
BuildOption(conf): -DENABLE_TESTING:BOOL=OFF
|
||||
%endif
|
||||
BuildOption(conf): -DREDIS_STORAGE_BACKEND:BOOL=OFF
|
||||
BuildOption(conf): -DENABLE_DOCUMENTATION:BOOL=OFF
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fmt-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libzstd-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xxhash-devel
|
||||
%if %{with test}
|
||||
BuildRequires: doctest-devel
|
||||
%endif
|
||||
|
||||
Provides: distcc:%{_bindir}/ccache
|
||||
|
||||
%description
|
||||
ccache is a compiler cache. It speeds up recompilation by caching the
|
||||
result of previous compilations and detecting when the same compilation is
|
||||
being done again.
|
||||
|
||||
|
||||
%install -a
|
||||
# create the compat symlinks into /usr/libdir/ccache
|
||||
mkdir -p %{buildroot}/%{_libdir}/ccache
|
||||
cd %{buildroot}/%{_libdir}/ccache
|
||||
ln -sf ../../bin/ccache gcc
|
||||
ln -sf ../../bin/ccache g++
|
||||
# do the same for clang
|
||||
ln -sf ../../bin/ccache clang
|
||||
ln -sf ../../bin/ccache clang++
|
||||
# and regular cc
|
||||
ln -sf ../../bin/ccache cc
|
||||
ln -sf ../../bin/ccache c++
|
||||
# and for nvidia cuda
|
||||
ln -sf ../../bin/ccache nvcc
|
||||
|
||||
%files
|
||||
%license LICENSE.* GPL-3.0.txt
|
||||
%doc doc/AUTHORS.* doc/NEWS.* README.*
|
||||
%{_bindir}/ccache
|
||||
%{_libdir}/ccache
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
62
SPECS/check/check.spec
Normal file
62
SPECS/check/check.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: check
|
||||
Version: 0.15.2
|
||||
Release: %autorelease
|
||||
Summary: A unit testing framework for C
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://libcheck.github.io/check/
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/libcheck/check/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): --disable-option-checking MAKEINFO=true
|
||||
|
||||
BuildRequires: autoconf automake libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: texinfo
|
||||
|
||||
%description
|
||||
Check is a unit testing framework for C. It features a simple interface for
|
||||
defining unit tests, putting them into a test suite, and running them.
|
||||
Tests can be run in a separate address space, so Check can catch segment faults.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the Check unit testing framework
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains the header files, libraries, and pkg-config file
|
||||
needed to develop applications and tests that use the Check framework.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fi
|
||||
|
||||
%install -a
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYING.LESSER
|
||||
%{_libdir}/libcheck.so.*
|
||||
|
||||
%files devel
|
||||
%doc AUTHORS ChangeLog NEWS README.md THANKS TODO
|
||||
%doc %{_docdir}/check
|
||||
%{_bindir}/checkmk
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libcheck.so
|
||||
%{_libdir}/libcheck.a
|
||||
%{_libdir}/pkgconfig/check.pc
|
||||
%{_datadir}/aclocal/check.m4
|
||||
%{_mandir}/man1/checkmk.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
63
SPECS/chkconfig/chkconfig.spec
Normal file
63
SPECS/chkconfig/chkconfig.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global merged_sbin %["%{_sbindir}" == "%{_bindir}"]
|
||||
|
||||
Name: chkconfig
|
||||
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
|
||||
Version: 1.33
|
||||
Release: %autorelease
|
||||
License: G-PL-2.0-only
|
||||
URL: https://github.com/fedora-sysv/chkconfig
|
||||
#!RemoteAsset
|
||||
Source: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(build): RPM_OPT_FLAGS="%{build_cflags}"
|
||||
BuildOption(build): LDFLAGS="%{build_ldflags}"
|
||||
BuildOption(build): MERGED_SBIN=%{merged_sbin}
|
||||
|
||||
BuildOption(install): MANDIR=%{_mandir}
|
||||
BuildOption(install): SBINDIR=%{_sbindir}
|
||||
|
||||
Provides: update-alternatives
|
||||
Provides: alternatives
|
||||
BuildRequires: newt-devel popt-devel libselinux-devel gcc make
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
|
||||
%description
|
||||
Chkconfig is a basic system utility. It updates and queries runlevel
|
||||
information for system services. Chkconfig manipulates the numerous
|
||||
symbolic links in /etc/rc.d, to relieve system administrators of some
|
||||
of the drudgery of manually editing the symbolic links.
|
||||
|
||||
# No configure
|
||||
%conf
|
||||
|
||||
# TODO: enable test when we have beakerlib
|
||||
%check
|
||||
|
||||
%install -a
|
||||
# Avoid illegal package names
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
|
||||
%find_lang %{name} --generate-subpackages
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%dir %{_sysconfdir}/alternatives
|
||||
%ghost %dir %attr(755, root, root) /etc/alternatives.admindir
|
||||
%ghost %dir %attr(755, root, root) /var/lib/alternatives
|
||||
%{_sbindir}/ntsysv
|
||||
%{_sbindir}/update-alternatives
|
||||
%{_sbindir}/alternatives
|
||||
%{_sbindir}/chkconfig
|
||||
%{_prefix}/lib/systemd/systemd-sysv-install
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
39
SPECS/chrony/0001-chrony-nm-dispatcher-dhcp.patch
Normal file
39
SPECS/chrony/0001-chrony-nm-dispatcher-dhcp.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From: Robert Fairley <rfairley@redhat.com>
|
||||
Date: Wed, 17 Jun 2020 10:14:19 -0400
|
||||
Subject: [PATCH] examples/nm-dispatcher.dhcp: use sysconfig
|
||||
|
||||
Use the PEERNTP and NTPSERVERARGS environment variables from
|
||||
/etc/sysconfig/network{-scripts}.
|
||||
|
||||
Co-Authored-By: Christian Glombek <cglombek@redhat.com>
|
||||
|
||||
diff --git a/examples/chrony.nm-dispatcher.dhcp b/examples/chrony.nm-dispatcher.dhcp
|
||||
index 6ea4c37..a6ad35a 100644
|
||||
--- a/examples/chrony.nm-dispatcher.dhcp
|
||||
+++ b/examples/chrony.nm-dispatcher.dhcp
|
||||
@@ -8,15 +8,23 @@ export LC_ALL=C
|
||||
interface=$1
|
||||
action=$2
|
||||
|
||||
+[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
|
||||
+[ -f /etc/sysconfig/network-scripts/ifcfg-"${interface}" ] && \
|
||||
+ . /etc/sysconfig/network-scripts/ifcfg-"${interface}"
|
||||
+
|
||||
chronyc=/usr/bin/chronyc
|
||||
-server_options=iburst
|
||||
-server_dir=/var/run/chrony-dhcp
|
||||
+server_options=${NTPSERVERARGS:-iburst}
|
||||
+server_dir=/run/chrony-dhcp
|
||||
|
||||
dhcp_server_file=$server_dir/$interface.sources
|
||||
dhcp_ntp_servers="$DHCP4_NTP_SERVERS $DHCP6_DHCP6_NTP_SERVERS"
|
||||
|
||||
add_servers_from_dhcp() {
|
||||
rm -f "$dhcp_server_file"
|
||||
+
|
||||
+ # Don't add NTP servers if PEERNTP=no specified; return early.
|
||||
+ [ "$PEERNTP" = "no" ] && return
|
||||
+
|
||||
for server in $dhcp_ntp_servers; do
|
||||
# Check for invalid characters (from the DHCPv6 NTP FQDN suboption)
|
||||
len1=$(printf '%s' "$server" | wc -c)
|
||||
27
SPECS/chrony/chrony.dhclient
Normal file
27
SPECS/chrony/chrony.dhclient
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
CHRONY_SOURCEDIR=/run/chrony-dhcp
|
||||
SERVERFILE=$CHRONY_SOURCEDIR/$interface.sources
|
||||
|
||||
chrony_config() {
|
||||
# Disable modifications if called from a NM dispatcher script
|
||||
[ -n "$NM_DISPATCHER_ACTION" ] && return 0
|
||||
|
||||
rm -f "$SERVERFILE"
|
||||
if [ "$PEERNTP" != "no" ]; then
|
||||
mkdir -p $CHRONY_SOURCEDIR
|
||||
for server in $new_ntp_servers; do
|
||||
echo "server $server ${NTPSERVERARGS:-iburst}" >> "$SERVERFILE"
|
||||
done
|
||||
/usr/bin/chronyc reload sources > /dev/null 2>&1 || :
|
||||
fi
|
||||
}
|
||||
|
||||
chrony_restore() {
|
||||
[ -n "$NM_DISPATCHER_ACTION" ] && return 0
|
||||
|
||||
if [ -f "$SERVERFILE" ]; then
|
||||
rm -f "$SERVERFILE"
|
||||
/usr/bin/chronyc reload sources > /dev/null 2>&1 || :
|
||||
fi
|
||||
}
|
||||
127
SPECS/chrony/chrony.spec
Normal file
127
SPECS/chrony/chrony.spec
Normal file
@@ -0,0 +1,127 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: chrony
|
||||
Version: 4.8
|
||||
Release: %autorelease
|
||||
Summary: An NTP client/server
|
||||
License: GPL-2.0-only
|
||||
URL: https://chrony-project.org
|
||||
#!RemoteAsset
|
||||
Source0: %{url}/releases/chrony-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: %{url}/releases/chrony-%{version}-tar-gz-asc.txt
|
||||
Source2: chrony.dhclient
|
||||
Source3: chrony.sysusers
|
||||
Source4: chronyd.sysconfig
|
||||
BuildSystem: autotools
|
||||
|
||||
# let systemd create /var/lib/chrony and /var/log/chrony
|
||||
Patch0: 0001-chrony-nm-dispatcher-dhcp.patch
|
||||
|
||||
BuildOption(conf): --enable-ntp-signd
|
||||
BuildOption(conf): --chronyrundir=%{_rundir}/%{name}
|
||||
BuildOption(conf): --with-ntp-era=$(date -d '1970-01-01 00:00:00+00:00' +'%s')
|
||||
BuildOption(conf): --with-user=chrony
|
||||
BuildOption(conf): --with-hwclockfile=%{_sysconfdir}/adjtime
|
||||
BuildOption(conf): --with-pidfile=%{_rundir}/%{name}/chronyd.pid
|
||||
BuildOption(conf): --with-sendmail=%{_sbindir}/sendmail
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: pkgconfig(libcap)
|
||||
BuildRequires: pkgconfig(libedit)
|
||||
BuildRequires: pkgconfig(nettle)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(gnutls)
|
||||
BuildRequires: pkgconfig(libseccomp)
|
||||
|
||||
Requires: tzdata
|
||||
|
||||
Provides: group(chrony)
|
||||
Provides: user(chrony)
|
||||
|
||||
%description
|
||||
chrony is a versatile implementation of the Network Time Protocol (NTP).
|
||||
It can synchronise the system clock with NTP servers, reference clocks
|
||||
(e.g. GPS receiver), and manual input using wristwatch and keyboard. It
|
||||
can also operate as an NTPv4 (RFC 5905) server and peer to provide a time
|
||||
service to other computers in the network.
|
||||
|
||||
%prep -a
|
||||
# use example chrony.conf as the default config
|
||||
touch -r examples/chrony.conf.example2 chrony.conf
|
||||
|
||||
%install -a
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/{sysconfig,logrotate.d}
|
||||
mkdir -p %{buildroot}%{_localstatedir}/{lib,log}/chrony
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/dhcp/dhclient.d
|
||||
mkdir -p %{buildroot}%{_libexecdir}
|
||||
mkdir -p %{buildroot}%{_sysusersdir}
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d
|
||||
mkdir -p %{buildroot}{%{_unitdir},%{_prefix}/lib/systemd/ntp-units.d}
|
||||
|
||||
install -m 644 -p chrony.conf %{buildroot}%{_sysconfdir}/chrony.conf
|
||||
install -m 755 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
||||
install -m 644 -p examples/chrony.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/chrony
|
||||
install -m 644 -p examples/chronyd.service %{buildroot}%{_unitdir}/chronyd.service
|
||||
install -m 644 -p examples/chronyd-restricted.service %{buildroot}%{_unitdir}/chronyd-restricted.service
|
||||
install -m 755 -p examples/chrony.nm-dispatcher.onoffline %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
|
||||
install -m 755 -p examples/chrony.nm-dispatcher.dhcp %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
|
||||
install -m 644 -p examples/chrony-wait.service %{buildroot}%{_unitdir}/chrony-wait.service
|
||||
install -m 644 -p %{SOURCE3} %{buildroot}%{_sysusersdir}/chrony.conf
|
||||
install -Dpm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/chronyd
|
||||
|
||||
touch %{buildroot}%{_sysconfdir}/chrony.keys
|
||||
touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc}
|
||||
|
||||
echo 'chronyd.service' > %{buildroot}%{_prefix}/lib/systemd/ntp-units.d/50-chronyd.list
|
||||
|
||||
%pre
|
||||
%sysusers_create_compat %{SOURCE3}
|
||||
|
||||
%post
|
||||
# migrate from chrony-helper to sourcedir directive
|
||||
if test -a %{_libexecdir}/chrony-helper; then
|
||||
grep -qi 'sourcedir /run/chrony-dhcp$' %{_sysconfdir}/chrony.conf 2> /dev/null || \
|
||||
echo -e '\n# Use NTP servers from DHCP.\nsourcedir /run/chrony-dhcp' >> \
|
||||
%{_sysconfdir}/chrony.conf
|
||||
mkdir -p /run/chrony-dhcp
|
||||
for f in %{_localstatedir}/lib/dhclient/chrony.servers.*; do
|
||||
sed 's|.*|server &|' < $f > /run/chrony-dhcp/"${f##*servers.}.sources"
|
||||
done 2> /dev/null
|
||||
fi
|
||||
%systemd_post chronyd.service chronyd-restricted.service chrony-wait.service
|
||||
|
||||
%preun
|
||||
%systemd_preun chronyd.service chronyd-restricted.service chrony-wait.service
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart chronyd.service chronyd-restricted.service
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%doc FAQ NEWS README examples/chrony.keys.example
|
||||
%config(noreplace) %{_sysconfdir}/chrony.conf
|
||||
%ghost %config %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/chronyd
|
||||
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
||||
%{_bindir}/chronyc
|
||||
%{_sbindir}/chronyd
|
||||
%{_prefix}/lib/NetworkManager
|
||||
%{_prefix}/lib/systemd/ntp-units.d/*.list
|
||||
%{_unitdir}/chrony*.service
|
||||
%{_sysusersdir}/chrony.conf
|
||||
%{_mandir}/man[158]/%{name}*.[158]*
|
||||
%ghost %dir %attr(750,chrony,chrony) %{_localstatedir}/lib/chrony
|
||||
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
||||
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/rtc
|
||||
%ghost %dir %attr(750,chrony,chrony) %{_localstatedir}/log/chrony
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
2
SPECS/chrony/chrony.sysusers
Normal file
2
SPECS/chrony/chrony.sysusers
Normal file
@@ -0,0 +1,2 @@
|
||||
#Type Name ID GECOS Home directory Shell
|
||||
u chrony - "chrony system user" /var/lib/chrony /sbin/nologin
|
||||
9
SPECS/chrony/chronyd.sysconfig
Normal file
9
SPECS/chrony/chronyd.sysconfig
Normal file
@@ -0,0 +1,9 @@
|
||||
## Path: Network/Chrony
|
||||
## Description: Chrony time synchronization settings
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: chronyd
|
||||
#
|
||||
# Command line options for chronyd
|
||||
#
|
||||
OPTIONS=""
|
||||
40
SPECS/chrpath/chrpath.spec
Normal file
40
SPECS/chrpath/chrpath.spec
Normal file
@@ -0,0 +1,40 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: chrpath
|
||||
Version: 0.18
|
||||
Release: %autorelease
|
||||
Summary: Modify rpath of compiled programs
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://codeberg.org/pere/chrpath
|
||||
#!RemoteAsset
|
||||
Source0: %{url}/archive/release-%{version}.tar.gz
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
|
||||
%description
|
||||
chrpath allows you to modify the dynamic library load path (rpath) of
|
||||
compiled programs. Currently, only removing and modifying the rpath
|
||||
is supported.
|
||||
|
||||
%conf -p
|
||||
autoreconf -fi
|
||||
|
||||
%install -a
|
||||
rm -fr %{buildroot}/usr/doc
|
||||
|
||||
%files
|
||||
%doc AUTHORS README NEWS ChangeLog*
|
||||
%license COPYING
|
||||
%{_bindir}/chrpath
|
||||
%{_mandir}/man1/chrpath.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
102
SPECS/cloud-hypervisor/cloud-hypervisor.spec
Normal file
102
SPECS/cloud-hypervisor/cloud-hypervisor.spec
Normal file
@@ -0,0 +1,102 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Ruoqing He <heruoqing@iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global gitver 48.0
|
||||
%global gitnum 0
|
||||
%global gitrev ge8886df3
|
||||
|
||||
%global obs_packaging_commit bac875451133f6b968f5487fe2322d9c1a46a8ef
|
||||
|
||||
Name: cloud-hypervisor
|
||||
Url: https://github.com/cloud-hypervisor/cloud-hypervisor
|
||||
Summary: Cloud Hypervisor is a Virtual Machine Monitor (VMM) that runs on top of KVM
|
||||
Version: %{gitver}.%{gitnum}
|
||||
Release: %autorelease
|
||||
License: ASL 2.0 or BSD-3-clause
|
||||
Group: Applications/System
|
||||
#!RemoteAsset
|
||||
Source0: https://github.com/cloud-hypervisor/obs-packaging/raw/%{obs_packaging_commit}/cloud-hypervisor/src/%{name}-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://github.com/cloud-hypervisor/obs-packaging/raw/%{obs_packaging_commit}/cloud-hypervisor/src/%{name}-%{version}-vendor.tar.gz
|
||||
#!RemoteAsset
|
||||
Source2: https://github.com/cloud-hypervisor/obs-packaging/raw/%{obs_packaging_commit}/cloud-hypervisor/src/config.toml
|
||||
ExclusiveArch: riscv64
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: binutils
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
BuildRequires: rust >= 1.88.0
|
||||
BuildRequires: cargo >= 1.88.0
|
||||
|
||||
Requires: bash
|
||||
Requires: glibc
|
||||
Requires: libcap
|
||||
|
||||
# TODO: Use rva23 rust toolchain to compile
|
||||
%define rust_def_target riscv64gc-unknown-linux-gnu
|
||||
%define cargo_pkg_feature_opts --no-default-features --features "kvm"
|
||||
%define cargo_offline --offline
|
||||
|
||||
%description
|
||||
Cloud Hypervisor is an open source Virtual Machine Monitor (VMM) that runs on
|
||||
top of KVM. The project focuses on exclusively running modern, cloud workloads,
|
||||
on top of a limited set of hardware architectures and platforms. Cloud
|
||||
workloads refers to those that are usually run by customers inside a cloud
|
||||
provider. For our purposes this means modern Linux* distributions with most I/O
|
||||
handled by paravirtualised devices (i.e. virtio), no requirement for legacy
|
||||
devices and recent CPUs and KVM.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -q
|
||||
tar xf %{SOURCE1}
|
||||
mkdir -p .cargo
|
||||
cp %{SOURCE2} .cargo/
|
||||
|
||||
%build
|
||||
cargo_version=$(cargo --version)
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Cargo not found, please install cargo. exiting"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
export OPENSSL_NO_VENDOR=1
|
||||
cargo build --release --target=%{rust_def_target} %{cargo_pkg_feature_opts} %{cargo_offline}
|
||||
cargo build --release --target=%{rust_def_target} --package vhost_user_net %{cargo_offline}
|
||||
cargo build --release --target=%{rust_def_target} --package vhost_user_block %{cargo_offline}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -d %{buildroot}%{_bindir}
|
||||
install -D -m755 ./target/%{rust_def_target}/release/cloud-hypervisor %{buildroot}%{_bindir}
|
||||
install -D -m755 ./target/%{rust_def_target}/release/ch-remote %{buildroot}%{_bindir}
|
||||
install -d %{buildroot}%{_libdir}
|
||||
install -d %{buildroot}%{_libdir}/cloud-hypervisor
|
||||
install -D -m755 target/%{rust_def_target}/release/vhost_user_block %{buildroot}%{_libdir}/cloud-hypervisor
|
||||
install -D -m755 target/%{rust_def_target}/release/vhost_user_net %{buildroot}%{_libdir}/cloud-hypervisor
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/ch-remote
|
||||
%caps(cap_net_admin=ep) %{_bindir}/cloud-hypervisor
|
||||
%dir %{_libdir}/cloud-hypervisor
|
||||
%{_libdir}/cloud-hypervisor/vhost_user_block
|
||||
%caps(cap_net_admin=ep) %{_libdir}/cloud-hypervisor/vhost_user_net
|
||||
%if 0%{?using_musl_libc}
|
||||
%{_libdir}/cloud-hypervisor/static/ch-remote
|
||||
%caps(cap_net_admim=ep) %{_libdir}/cloud-hypervisor/static/cloud-hypervisor
|
||||
%{_libdir}/cloud-hypervisor/static/vhost_user_block
|
||||
%caps(cap_net_admin=ep) %{_libdir}/cloud-hypervisor/static/vhost_user_net
|
||||
%endif
|
||||
%license LICENSES/Apache-2.0.txt
|
||||
%license LICENSES/BSD-3-Clause.txt
|
||||
%license LICENSES/CC-BY-4.0.txt
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
41
SPECS/clzip/clzip.spec
Normal file
41
SPECS/clzip/clzip.spec
Normal file
@@ -0,0 +1,41 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: clzip
|
||||
Version: 1.15
|
||||
Release: %autorelease
|
||||
Summary: Small, stand-alone lzip compressor and decompressor
|
||||
License: GPLv2+ AND BSD-2-Clause
|
||||
URL: https://www.nongnu.org/lzip/clzip.html
|
||||
#!RemoteAsset
|
||||
Source0: https://download.savannah.nongnu.org/releases/lzip/clzip/clzip-%{version}.tar.gz
|
||||
#!RemoteAsset
|
||||
Source1: https://download.savannah.nongnu.org/releases/lzip/clzip/clzip-%{version}.tar.gz.sig
|
||||
BuildSystem: autotools
|
||||
BuildRequires: gcc
|
||||
BuildRequires: texinfo
|
||||
|
||||
%description
|
||||
Clzip is a compressor and decompressor for files in the lzip compression
|
||||
format (.lz), written as a single small C tool with no dependencies. This makes
|
||||
it well-suited to embedded and other systems without a C++ compiler, or for use
|
||||
in other applications like package managers.
|
||||
Clzip is intended to be fully compatible with the regular lzip package.
|
||||
|
||||
%install -a
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc README
|
||||
%license COPYING
|
||||
%{_bindir}/clzip
|
||||
%{_mandir}/man1/*
|
||||
%{_infodir}/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
22
SPECS/cmake/0001-cmake-findruby.patch
Normal file
22
SPECS/cmake/0001-cmake-findruby.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
Index: cmake-4.1.0/Modules/FindRuby.cmake
|
||||
===================================================================
|
||||
--- cmake-4.1.0.orig/Modules/FindRuby.cmake
|
||||
+++ cmake-4.1.0/Modules/FindRuby.cmake
|
||||
@@ -285,14 +285,9 @@
|
||||
_RUBY_CONFIG_VAR("sitearchdir" Ruby_SITEARCH_DIR)
|
||||
_RUBY_CONFIG_VAR("sitelibdir" Ruby_SITELIB_DIR)
|
||||
|
||||
- # vendor_ruby available ?
|
||||
- execute_process(COMMAND ${Ruby_EXECUTABLE} -r vendor-specific -e "print 'true'"
|
||||
- OUTPUT_VARIABLE Ruby_HAS_VENDOR_RUBY ERROR_QUIET)
|
||||
-
|
||||
- if (Ruby_HAS_VENDOR_RUBY)
|
||||
- _RUBY_CONFIG_VAR("vendorlibdir" Ruby_VENDORLIB_DIR)
|
||||
- _RUBY_CONFIG_VAR("vendorarchdir" Ruby_VENDORARCH_DIR)
|
||||
- endif ()
|
||||
+ # vendor_ruby
|
||||
+ _RUBY_CONFIG_VAR("vendorlibdir" Ruby_VENDORLIB_DIR)
|
||||
+ _RUBY_CONFIG_VAR("vendorarchdir" Ruby_VENDORARCH_DIR)
|
||||
|
||||
# save the results in the cache so we don't have to run ruby the next time again
|
||||
set(_Ruby_EXECUTABLE_LAST_QUERIED "${Ruby_EXECUTABLE}" CACHE INTERNAL "The ruby executable last queried for version and path info")
|
||||
137
SPECS/cmake/cmake.spec
Normal file
137
SPECS/cmake/cmake.spec
Normal file
@@ -0,0 +1,137 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: jchzhou <zhoujiacheng@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: cmake
|
||||
Version: 4.1.0
|
||||
Release: %autorelease
|
||||
Summary: Cross-platform make system
|
||||
License: BSD and MIT and zlib
|
||||
URL: http://www.cmake.org
|
||||
#!RemoteAsset
|
||||
Source0: https://www.cmake.org/files/v4.1/cmake-%{version}.tar.gz
|
||||
Source1: macros.cmake
|
||||
Source2: macros.buildsystem.cmake
|
||||
# Patch for ruby to unconditionally check for vendordir
|
||||
Patch0: 0001-cmake-findruby.patch
|
||||
BuildSystem: autotools
|
||||
|
||||
# qt-gui and emacs-lisp features are removed to make cmake usable ASAP
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc-c++
|
||||
Requires: cmake-data = %{version}-%{release} cmake-rpm-macros = %{version}-%{release}
|
||||
Requires: cmake-filesystem = %{version}-%{release}
|
||||
Provides: bundled(md5-deutsch) bundled(kwsys) bundled(cppdap)
|
||||
|
||||
BuildOption(conf): --no-system-libs
|
||||
|
||||
%description
|
||||
CMake is used to control the software compilation process using simple
|
||||
platform and compiler independent configuration files. CMake generates
|
||||
native makefiles and workspaces that can be used in the compiler
|
||||
environment of your choice. CMake is quite sophisticated: it is possible
|
||||
to support complex environments requiring system configuration, preprocessor
|
||||
generation, code generation, and template instantiation.
|
||||
|
||||
%package data
|
||||
Summary: Common data-files for cmake
|
||||
Requires: cmake = %{version}-%{release}
|
||||
Requires: cmake-rpm-macros = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description data
|
||||
This package contains common data-files for cmake.
|
||||
|
||||
%package filesystem
|
||||
Summary: Directories used by CMake modules
|
||||
|
||||
%description filesystem
|
||||
This package owns all directories used by CMake modules.
|
||||
|
||||
%package rpm-macros
|
||||
Summary: Common RPM macros for cmake
|
||||
Requires: rpm
|
||||
Conflicts: cmake-data < 3.10.1-2
|
||||
BuildArch: noarch
|
||||
|
||||
%description rpm-macros
|
||||
This package contains common RPM macros for cmake.
|
||||
|
||||
%conf
|
||||
# cmake also need openssl to make FetchContent() usable, but in rpm building
|
||||
# process we should download all sources in advance
|
||||
echo "set(CMAKE_USE_OPENSSL OFF)" | cat - CMakeLists.txt > tmpfile && mv tmpfile CMakeLists.txt
|
||||
./bootstrap --prefix=%{_prefix} --datadir=/share/cmake \
|
||||
--docdir=/share/doc/cmake --mandir=/share/man \
|
||||
--no-system-libs \
|
||||
--parallel=`/usr/bin/getconf _NPROCESSORS_ONLN` \
|
||||
--no-system-cppdap \
|
||||
--no-system-librhash
|
||||
|
||||
%install -a
|
||||
# install cmake rpm macros
|
||||
install -p -m0644 -D %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.cmake
|
||||
sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" -e "s|@@CMAKE_MAJOR_VERSION@@|4|" %{buildroot}%{_rpmmacrodir}/macros.cmake
|
||||
install -p -m0644 -D %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.buildsystem.cmake
|
||||
|
||||
# update cmake rpm macro file timestamp
|
||||
touch -r %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.cmake
|
||||
touch -r %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.buildsystem.cmake
|
||||
|
||||
# install Copyright and dependencies' Copyright
|
||||
install -d %{buildroot}%{_libdir}/cmake
|
||||
find Source Utilities -type f -iname copy\*
|
||||
cp -p Source/kwsys/Copyright.txt ./Copyright_kwsys
|
||||
cp -p Utilities/KWIML/Copyright.txt ./Copyright_KWIML
|
||||
cp -p Utilities/cmlibarchive/COPYING ./COPYING_cmlibarchive
|
||||
cp -p Utilities/cmliblzma/COPYING ./COPYING_cmliblzma
|
||||
cp -p Utilities/cmcurl/COPYING ./COPYING_cmcurl
|
||||
cp -p Utilities/cmlibrhash/COPYING ./COPYING_cmlibrhash
|
||||
cp -p Utilities/cmzlib/Copyright.txt ./Copyright_cmzlib
|
||||
cp -p Utilities/cmexpat/COPYING ./COPYING_cmexpat
|
||||
cp -p Utilities/cmcppdap/LICENSE LICENSE.cppdap
|
||||
cp -p Utilities/cmcppdap/NOTICE NOTICE.cppdap
|
||||
|
||||
# install help files
|
||||
install -d %{buildroot}%{_docdir}/cmake
|
||||
cp -pr %{buildroot}%{_datadir}/cmake/Help %{buildroot}%{_docdir}/cmake
|
||||
|
||||
# temporary files used to create cmake-filesystem package
|
||||
find %{buildroot}%{_datadir}/cmake -type d | sed -e 's!^%{buildroot}!%%dir "!g' -e 's!$!"!g' > data_dirs.mf
|
||||
find %{buildroot}%{_libdir}/cmake -type d | sed -e 's!^%{buildroot}!%%dir "!g' -e 's!$!"!g' > lib_dirs.mf
|
||||
|
||||
# remove unnecessary emac lisp files
|
||||
rm -rf %{buildroot}%{_datadir}/emacs
|
||||
|
||||
|
||||
%files
|
||||
%doc %dir %{_docdir}/cmake
|
||||
%license Copyright_* COPYING* LICENSE.rst CONTRIBUTORS.rst
|
||||
%license LICENSE.cppdap NOTICE.cppdap
|
||||
%{_bindir}/cmake
|
||||
%{_bindir}/cpack
|
||||
%{_bindir}/ctest
|
||||
%{_libdir}/cmake
|
||||
%doc %{_docdir}/cmake/*
|
||||
|
||||
%files filesystem -f data_dirs.mf -f lib_dirs.mf
|
||||
|
||||
%files data
|
||||
%{_datadir}/cmake
|
||||
%{_datadir}/aclocal/cmake.m4
|
||||
%{_datadir}/bash-completion
|
||||
%{_datadir}/vim/vimfiles/indent/%{name}.vim
|
||||
%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
||||
%exclude %{_datadir}/cmake/Templates/Windows/Windows_TemporaryKey.pfx
|
||||
|
||||
%files rpm-macros
|
||||
%{_rpmmacrodir}/macros.cmake
|
||||
%{_rpmmacrodir}/macros.buildsystem.cmake
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
6
SPECS/cmake/macros.buildsystem.cmake
Normal file
6
SPECS/cmake/macros.buildsystem.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
# Example buildsystem for cmake
|
||||
%buildsystem_cmake_conf() %cmake %*
|
||||
%buildsystem_cmake_build() %cmake_build %*
|
||||
%buildsystem_cmake_install() %cmake_install %*
|
||||
%buildsystem_cmake_check() %ctest %*
|
||||
65
SPECS/cmake/macros.cmake
Normal file
65
SPECS/cmake/macros.cmake
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# Macros for cmake
|
||||
#
|
||||
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
|
||||
%_cmake_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON
|
||||
%_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
|
||||
%_cmake_version @@CMAKE_VERSION@@
|
||||
%__cmake /usr/bin/cmake
|
||||
%__ctest /usr/bin/ctest
|
||||
%__cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.}
|
||||
|
||||
# - Set default compile flags
|
||||
# - CMAKE_*_FLAGS_RELEASE are added *after* the *FLAGS environment variables
|
||||
# and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS
|
||||
# - Turn on verbose makefiles so we can see and verify compile flags
|
||||
# - Turn off stripping by default so RPM can do it separately
|
||||
# - Set default install prefixes and library install directories
|
||||
# - Turn on shared libraries by default
|
||||
%cmake \
|
||||
%{set_build_flags} \
|
||||
%__cmake \\\
|
||||
%{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\
|
||||
%{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\
|
||||
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
||||
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
||||
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
|
||||
-DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \\\
|
||||
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \\\
|
||||
-DCMAKE_INSTALL_FULL_LIBDIR:PATH=%{_libdir} \\\
|
||||
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%(s=%{_libexecdir}; echo ${s##*/}) \\\
|
||||
-DCMAKE_INSTALL_FULL_LIBEXECDIR:PATH=%{_libexecdir} \\\
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
|
||||
-DCMAKE_INSTALL_FULL_SBINDIR:PATH=%{_sbindir} \\\
|
||||
-DCMAKE_INSTALL_SBINDIR:PATH=%(s=%{_sbindir}; echo ${s##*/}) \\\
|
||||
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
|
||||
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
|
||||
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
|
||||
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
|
||||
%if "%{?_lib}" == "lib64" \
|
||||
%{?_cmake_lib_suffix64} \\\
|
||||
%endif \
|
||||
%{?_cmake_shared_libs}
|
||||
|
||||
%cmake_build \
|
||||
%__cmake --build "%{__cmake_builddir}" %{?_smp_mflags} --verbose
|
||||
|
||||
%cmake_install \
|
||||
DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}"
|
||||
|
||||
%ctest(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \
|
||||
%__ctest --test-dir "%{__cmake_builddir}" \\\
|
||||
--output-on-failure \\\
|
||||
--force-new-ctest-process \\\
|
||||
%ifarch riscv64 \
|
||||
--timeout 6000 \\\
|
||||
%endif \
|
||||
%{?_smp_mflags} \\\
|
||||
%{lua:print((string.gsub(rpm.expand('%{**}'),"%-%-%s","")))}
|
||||
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@ %cmake
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@_build %cmake_build
|
||||
%cmake@@CMAKE_MAJOR_VERSION@@_install %cmake_install
|
||||
%ctest@@CMAKE_MAJOR_VERSION@@(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \
|
||||
%ctest %{**}
|
||||
63
SPECS/cmocka/cmocka.spec
Normal file
63
SPECS/cmocka/cmocka.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: cmocka
|
||||
Version: 1.1.7
|
||||
Release: %autorelease
|
||||
Summary: Lightweight library to simplify and generalize unit tests for C
|
||||
License: Apache-2.0
|
||||
URL: https://cmocka.org
|
||||
|
||||
#!RemoteAsset
|
||||
Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz.asc
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkg-config
|
||||
BuildSystem: cmake
|
||||
|
||||
%description
|
||||
cmocka is an elegant unit testing framework for C with support for mock
|
||||
objects. It only requires the standard C library, works on a range of computing
|
||||
platforms (including embedded) and with different compilers.
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for the cmocka library
|
||||
Requires: cmocka = %{version}
|
||||
Requires: pkg-config
|
||||
Requires: (cmocka-cmake if cmake)
|
||||
|
||||
%description devel
|
||||
Development headers for the cmocka unit testing library.
|
||||
|
||||
%package cmake
|
||||
Summary: cmake support for the cmocka library
|
||||
Requires: cmake
|
||||
Requires: cmocka-devel = %{version}
|
||||
Provides: cmocka-devel:%{_libdir}/cmake/cmocka
|
||||
|
||||
%description cmake
|
||||
cmake support for developing with the cmocka unit testing library.
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc AUTHORS README.md ChangeLog
|
||||
%license COPYING
|
||||
%{_libdir}/libcmocka.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/cmocka.h
|
||||
%{_includedir}/cmocka_pbc.h
|
||||
%{_libdir}/libcmocka.so
|
||||
%{_libdir}/pkgconfig/cmocka.pc
|
||||
|
||||
%files cmake
|
||||
%{_libdir}/cmake/cmocka
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
52
SPECS/config/config.spec
Normal file
52
SPECS/config/config.spec
Normal file
@@ -0,0 +1,52 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global commit a2287c3041a3f2a204eb942e09c015eab00dc7dd
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: config
|
||||
Version: 20250710+git%{shortcommit}
|
||||
Release: %autorelease
|
||||
Summary: Ubiquitous config.guess and config.sub scripts
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://savannah.gnu.org/projects/config
|
||||
#!RemoteAsset
|
||||
Source0: https://git.savannah.gnu.org/cgit/config.git/snapshot/config-%{commit}.tar.gz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: help2man
|
||||
|
||||
%description
|
||||
The `config.guess` script tries to guess a canonical system triple, and
|
||||
`config.sub` validates and canonicalizes it. These are used as part of
|
||||
configuration in nearly all GNU packages (and many others).
|
||||
|
||||
%prep
|
||||
%setup -q -n config-%{commit}
|
||||
# Fix the shebang to use /usr/bin/env
|
||||
sed -i '1s|^#!/bin/sh$|#!/usr/bin/env sh|' testsuite/config-guess.sh || true
|
||||
|
||||
%build
|
||||
make manpages
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -m755 config.guess %{buildroot}%{_bindir}/config.guess
|
||||
install -m755 config.sub %{buildroot}%{_bindir}/config.sub
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -m644 doc/config.guess.1 %{buildroot}%{_mandir}/man1/config.guess.1
|
||||
install -m644 doc/config.sub.1 %{buildroot}%{_mandir}/man1/config.sub.1
|
||||
|
||||
%files
|
||||
%{_bindir}/config.guess
|
||||
%{_bindir}/config.sub
|
||||
%{_mandir}/man1/config.guess.1*
|
||||
%{_mandir}/man1/config.sub.1*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
79
SPECS/conntrack-tools/conntrack-tools.spec
Normal file
79
SPECS/conntrack-tools/conntrack-tools.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%bcond systemd 1
|
||||
|
||||
Name: conntrack-tools
|
||||
Version: 1.4.8
|
||||
Release: %autorelease
|
||||
Summary: Userspace tools for interacting with the Connection Tracking System
|
||||
License: GPL-2.0-only
|
||||
URL: http://conntrack-tools.netfilter.org/
|
||||
#!RemoteAsset
|
||||
Source0: http://netfilter.org/projects/conntrack-tools/files/%{name}-%{version}.tar.xz
|
||||
Source1: conntrackd.service
|
||||
Source2: conntrackd.conf
|
||||
BuildSystem: autotools
|
||||
|
||||
BuildOption(conf): --disable-static
|
||||
%if %{with systemd}
|
||||
BuildOption(conf): --enable-systemd
|
||||
%else
|
||||
BuildOption(conf): --disable-systemd
|
||||
%endif
|
||||
BuildOption(build): CFLAGS='%{optflags} -Wl,-z,lazy -DCONNTRACKD_LIB_DIR=\"%{_libdir}/conntrack-tools\"'
|
||||
|
||||
BuildRequires: libnfnetlink-devel libnetfilter_conntrack-devel libtirpc-devel
|
||||
BuildRequires: libnetfilter_cttimeout-devel libnetfilter_cthelper-devel
|
||||
BuildRequires: libmnl-devel libnetfilter_queue-devel pkgconfig bison flex
|
||||
BuildRequires: gcc make
|
||||
%if %{with systemd}
|
||||
BuildRequires: systemd-devel
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%endif
|
||||
|
||||
%description
|
||||
The conntrack-tools are a set of userspace tools that allow system
|
||||
administrators to interact with the Connection Tracking System.
|
||||
|
||||
%install -a
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
|
||||
install -d %{buildroot}%{_sysconfdir}/conntrackd
|
||||
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/
|
||||
%if %{with systemd}
|
||||
install -d 0755 %{buildroot}%{_unitdir}
|
||||
install -m644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
||||
%endif
|
||||
|
||||
%if %{with systemd}
|
||||
%post
|
||||
%systemd_post conntrackd.service
|
||||
%preun
|
||||
%systemd_preun conntrackd.service
|
||||
%postun
|
||||
%systemd_postun conntrackd.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc AUTHORS TODO COPYING
|
||||
%dir %{_sysconfdir}/conntrackd
|
||||
%config(noreplace) %{_sysconfdir}/conntrackd/conntrackd.conf
|
||||
%if %{with systemd}
|
||||
%{_unitdir}/conntrackd.service
|
||||
%endif
|
||||
%{_sbindir}/{conntrack,conntrackd,nfct}
|
||||
%dir %{_libdir}/conntrack-tools
|
||||
%{_libdir}/conntrack-tools/*
|
||||
%doc doc
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
419
SPECS/conntrack-tools/conntrackd.conf
Normal file
419
SPECS/conntrack-tools/conntrackd.conf
Normal file
@@ -0,0 +1,419 @@
|
||||
|
||||
# See also: http://conntrack-tools.netfilter.org/support.html
|
||||
#
|
||||
# There are 3 different modes of running conntrackd: "alarm", "notrack" and "ftfw"
|
||||
#
|
||||
# The default package ships with a FTFW configuration, see /usr/share/doc/conntrackd*
|
||||
# for example configurations for other modes.
|
||||
|
||||
|
||||
#
|
||||
# Synchronizer settings
|
||||
#
|
||||
Sync {
|
||||
Mode FTFW {
|
||||
#
|
||||
# Size of the resend queue (in objects). This is the maximum
|
||||
# number of objects that can be stored waiting to be confirmed
|
||||
# via acknoledgment. If you keep this value low, the daemon
|
||||
# will have less chances to recover state-changes under message
|
||||
# omission. On the other hand, if you keep this value high,
|
||||
# the daemon will consume more memory to store dead objects.
|
||||
# Default is 131072 objects.
|
||||
#
|
||||
# ResendQueueSize 131072
|
||||
|
||||
#
|
||||
# This parameter allows you to set an initial fixed timeout
|
||||
# for the committed entries when this node goes from backup
|
||||
# to primary. This mechanism provides a way to purge entries
|
||||
# that were not recovered appropriately after the specified
|
||||
# fixed timeout. If you set a low value, TCP entries in
|
||||
# Established states with no traffic may hang. For example,
|
||||
# an SSH connection without KeepAlive enabled. If not set,
|
||||
# the daemon uses an approximate timeout value calculation
|
||||
# mechanism. By default, this option is not set.
|
||||
#
|
||||
# CommitTimeout 180
|
||||
|
||||
#
|
||||
# If the firewall replica goes from primary to backup,
|
||||
# the conntrackd -t command is invoked in the script.
|
||||
# This command schedules a flush of the table in N seconds.
|
||||
# This is useful to purge the connection tracking table of
|
||||
# zombie entries and avoid clashes with old entries if you
|
||||
# trigger several consecutive hand-overs. Default is 60 seconds.
|
||||
#
|
||||
# PurgeTimeout 60
|
||||
|
||||
# Set the acknowledgement window size. If you decrease this
|
||||
# value, the number of acknowlegdments increases. More
|
||||
# acknowledgments means more overhead as conntrackd has to
|
||||
# handle more control messages. On the other hand, if you
|
||||
# increase this value, the resend queue gets more populated.
|
||||
# This results in more overhead in the queue releasing.
|
||||
# The following value is based on some practical experiments
|
||||
# measuring the cycles spent by the acknowledgment handling
|
||||
# with oprofile. If not set, default window size is 300.
|
||||
#
|
||||
# ACKWindowSize 300
|
||||
|
||||
#
|
||||
# This clause allows you to disable the external cache. Thus,
|
||||
# the state entries are directly injected into the kernel
|
||||
# conntrack table. As a result, you save memory in user-space
|
||||
# but you consume slots in the kernel conntrack table for
|
||||
# backup state entries. Moreover, disabling the external cache
|
||||
# means more CPU consumption. You need a Linux kernel
|
||||
# >= 2.6.29 to use this feature. By default, this clause is
|
||||
# set off. If you are installing conntrackd for first time,
|
||||
# please read the user manual and I encourage you to consider
|
||||
# using the fail-over scripts instead of enabling this option!
|
||||
#
|
||||
# DisableExternalCache Off
|
||||
}
|
||||
|
||||
#
|
||||
# Multicast IP and interface where messages are
|
||||
# broadcasted (dedicated link). IMPORTANT: Make sure
|
||||
# that iptables accepts traffic for destination
|
||||
# 225.0.0.50, eg:
|
||||
#
|
||||
# iptables -I INPUT -d 225.0.0.50 -j ACCEPT
|
||||
# iptables -I OUTPUT -d 225.0.0.50 -j ACCEPT
|
||||
#
|
||||
Multicast {
|
||||
#
|
||||
# Multicast address: The address that you use as destination
|
||||
# in the synchronization messages. You do not have to add
|
||||
# this IP to any of your existing interfaces. If any doubt,
|
||||
# do not modify this value.
|
||||
#
|
||||
IPv4_address 225.0.0.50
|
||||
|
||||
#
|
||||
# The multicast group that identifies the cluster. If any
|
||||
# doubt, do not modify this value.
|
||||
#
|
||||
Group 3780
|
||||
|
||||
#
|
||||
# IP address of the interface that you are going to use to
|
||||
# send the synchronization messages. Remember that you must
|
||||
# use a dedicated link for the synchronization messages.
|
||||
#
|
||||
IPv4_interface 192.168.100.100
|
||||
|
||||
#
|
||||
# The name of the interface that you are going to use to
|
||||
# send the synchronization messages.
|
||||
#
|
||||
Interface eth2
|
||||
|
||||
# The multicast sender uses a buffer to enqueue the packets
|
||||
# that are going to be transmitted. The default size of this
|
||||
# socket buffer is available at /proc/sys/net/core/wmem_default.
|
||||
# This value determines the chances to have an overrun in the
|
||||
# sender queue. The overrun results packet loss, thus, losing
|
||||
# state information that would have to be retransmitted. If you
|
||||
# notice some packet loss, you may want to increase the size
|
||||
# of the sender buffer. The default size is usually around
|
||||
# ~100 KBytes which is fairly small for busy firewalls.
|
||||
#
|
||||
SndSocketBuffer 1249280
|
||||
|
||||
# The multicast receiver uses a buffer to enqueue the packets
|
||||
# that the socket is pending to handle. The default size of this
|
||||
# socket buffer is available at /proc/sys/net/core/rmem_default.
|
||||
# This value determines the chances to have an overrun in the
|
||||
# receiver queue. The overrun results packet loss, thus, losing
|
||||
# state information that would have to be retransmitted. If you
|
||||
# notice some packet loss, you may want to increase the size of
|
||||
# the receiver buffer. The default size is usually around
|
||||
# ~100 KBytes which is fairly small for busy firewalls.
|
||||
#
|
||||
RcvSocketBuffer 1249280
|
||||
|
||||
#
|
||||
# Enable/Disable message checksumming. This is a good
|
||||
# property to achieve fault-tolerance. In case of doubt, do
|
||||
# not modify this value.
|
||||
#
|
||||
Checksum on
|
||||
}
|
||||
#
|
||||
# You can specify more than one dedicated link. Thus, if one dedicated
|
||||
# link fails, conntrackd can fail-over to another. Note that adding
|
||||
# more than one dedicated link does not mean that state-updates will
|
||||
# be sent to all of them. There is only one active dedicated link at
|
||||
# a given moment. The `Default' keyword indicates that this interface
|
||||
# will be selected as the initial dedicated link. You can have
|
||||
# up to 4 redundant dedicated links. Note: Use different multicast
|
||||
# groups for every redundant link.
|
||||
#
|
||||
# Multicast Default {
|
||||
# IPv4_address 225.0.0.51
|
||||
# Group 3781
|
||||
# IPv4_interface 192.168.100.101
|
||||
# Interface eth3
|
||||
# # SndSocketBuffer 1249280
|
||||
# # RcvSocketBuffer 1249280
|
||||
# Checksum on
|
||||
# }
|
||||
|
||||
#
|
||||
# You can use Unicast UDP instead of Multicast to propagate events.
|
||||
# Note that you cannot use unicast UDP and Multicast at the same
|
||||
# time, you can only select one.
|
||||
#
|
||||
# UDP {
|
||||
#
|
||||
# UDP address that this firewall uses to listen to events.
|
||||
#
|
||||
# IPv4_address 192.168.2.100
|
||||
#
|
||||
# or you may want to use an IPv6 address:
|
||||
#
|
||||
# IPv6_address fe80::215:58ff:fe28:5a27
|
||||
|
||||
#
|
||||
# Destination UDP address that receives events, ie. the other
|
||||
# firewall's dedicated link address.
|
||||
#
|
||||
# IPv4_Destination_Address 192.168.2.101
|
||||
#
|
||||
# or you may want to use an IPv6 address:
|
||||
#
|
||||
# IPv6_Destination_Address fe80::2d0:59ff:fe2a:775c
|
||||
|
||||
#
|
||||
# UDP port used
|
||||
#
|
||||
# Port 3780
|
||||
|
||||
#
|
||||
# The name of the interface that you are going to use to
|
||||
# send the synchronization messages.
|
||||
#
|
||||
# Interface eth2
|
||||
|
||||
#
|
||||
# The sender socket buffer size
|
||||
#
|
||||
# SndSocketBuffer 1249280
|
||||
|
||||
#
|
||||
# The receiver socket buffer size
|
||||
#
|
||||
# RcvSocketBuffer 1249280
|
||||
|
||||
#
|
||||
# Enable/Disable message checksumming.
|
||||
#
|
||||
# Checksum on
|
||||
# }
|
||||
|
||||
#
|
||||
# Other unsorted options that are related to the synchronization.
|
||||
#
|
||||
# Options {
|
||||
#
|
||||
# TCP state-entries have window tracking disabled by default,
|
||||
# you can enable it with this option. As said, default is off.
|
||||
# This feature requires a Linux kernel >= 2.6.36.
|
||||
#
|
||||
# TCPWindowTracking Off
|
||||
# }
|
||||
}
|
||||
|
||||
#
|
||||
# General settings
|
||||
#
|
||||
General {
|
||||
#
|
||||
# Set the nice value of the daemon, this value goes from -20
|
||||
# (most favorable scheduling) to 19 (least favorable). Using a
|
||||
# very low value reduces the chances to lose state-change events.
|
||||
# Default is 0 but this example file sets it to most favourable
|
||||
# scheduling as this is generally a good idea. See man nice(1) for
|
||||
# more information.
|
||||
#
|
||||
Nice -20
|
||||
|
||||
#
|
||||
# Select a different scheduler for the daemon, you can select between
|
||||
# RR and FIFO and the process priority (minimum is 0, maximum is 99).
|
||||
# See man sched_setscheduler(2) for more information. Using a RT
|
||||
# scheduler reduces the chances to overrun the Netlink buffer.
|
||||
#
|
||||
# Scheduler {
|
||||
# Type FIFO
|
||||
# Priority 99
|
||||
# }
|
||||
|
||||
#
|
||||
# Number of buckets in the cache hashtable. The bigger it is,
|
||||
# the closer it gets to O(1) at the cost of consuming more memory.
|
||||
# Read some documents about tuning hashtables for further reference.
|
||||
#
|
||||
HashSize 32768
|
||||
|
||||
#
|
||||
# Maximum number of conntracks, it should be double of:
|
||||
# $ cat /proc/sys/net/netfilter/nf_conntrack_max
|
||||
# since the daemon may keep some dead entries cached for possible
|
||||
# retransmission during state synchronization.
|
||||
#
|
||||
HashLimit 131072
|
||||
|
||||
#
|
||||
# Logfile: on (/var/log/conntrackd.log), off, or a filename
|
||||
# Default: off
|
||||
#
|
||||
LogFile on
|
||||
|
||||
#
|
||||
# Syslog: on, off or a facility name (daemon (default) or local0..7)
|
||||
# Default: off
|
||||
#
|
||||
#Syslog on
|
||||
|
||||
#
|
||||
# Lockfile
|
||||
#
|
||||
LockFile /var/lock/conntrack.lock
|
||||
|
||||
#
|
||||
# Unix socket configuration
|
||||
#
|
||||
UNIX {
|
||||
Path /var/run/conntrackd.ctl
|
||||
Backlog 20
|
||||
}
|
||||
|
||||
#
|
||||
# Netlink event socket buffer size. If you do not specify this clause,
|
||||
# the default buffer size value in /proc/net/core/rmem_default is
|
||||
# used. This default value is usually around 100 Kbytes which is
|
||||
# fairly small for busy firewalls. This leads to event message dropping
|
||||
# and high CPU consumption. This example configuration file sets the
|
||||
# size to 2 MBytes to avoid this sort of problems.
|
||||
#
|
||||
NetlinkBufferSize 2097152
|
||||
|
||||
#
|
||||
# The daemon doubles the size of the netlink event socket buffer size
|
||||
# if it detects netlink event message dropping. This clause sets the
|
||||
# maximum buffer size growth that can be reached. This example file
|
||||
# sets the size to 8 MBytes.
|
||||
#
|
||||
NetlinkBufferSizeMaxGrowth 8388608
|
||||
|
||||
#
|
||||
# If the daemon detects that Netlink is dropping state-change events,
|
||||
# it automatically schedules a resynchronization against the Kernel
|
||||
# after 30 seconds (default value). Resynchronizations are expensive
|
||||
# in terms of CPU consumption since the daemon has to get the full
|
||||
# kernel state-table and purge state-entries that do not exist anymore.
|
||||
# Be careful of setting a very small value here. You have the following
|
||||
# choices: On (enabled, use default 30 seconds value), Off (disabled)
|
||||
# or Value (in seconds, to set a specific amount of time). If not
|
||||
# specified, the daemon assumes that this option is enabled.
|
||||
#
|
||||
# NetlinkOverrunResync On
|
||||
|
||||
#
|
||||
# If you want reliable event reporting over Netlink, set on this
|
||||
# option. If you set on this clause, it is a good idea to set off
|
||||
# NetlinkOverrunResync. This option is off by default and you need
|
||||
# a Linux kernel >= 2.6.31.
|
||||
#
|
||||
# NetlinkEventsReliable Off
|
||||
|
||||
#
|
||||
# By default, the daemon receives state updates following an
|
||||
# event-driven model. You can modify this behaviour by switching to
|
||||
# polling mode with the PollSecs clause. This clause tells conntrackd
|
||||
# to dump the states in the kernel every N seconds. With regards to
|
||||
# synchronization mode, the polling mode can only guarantee that
|
||||
# long-lifetime states are recovered. The main advantage of this method
|
||||
# is the reduction in the state replication at the cost of reducing the
|
||||
# chances of recovering connections.
|
||||
#
|
||||
# PollSecs 15
|
||||
|
||||
#
|
||||
# The daemon prioritizes the handling of state-change events coming
|
||||
# from the core. With this clause, you can set the maximum number of
|
||||
# state-change events (those coming from kernel-space) that the daemon
|
||||
# will handle after which it will handle other events coming from the
|
||||
# network or userspace. A low value improves interactivity (in terms of
|
||||
# real-time behaviour) at the cost of extra CPU consumption.
|
||||
# Default (if not set) is 100.
|
||||
#
|
||||
# EventIterationLimit 100
|
||||
|
||||
#
|
||||
# Event filtering: This clause allows you to filter certain traffic,
|
||||
# There are currently three filter-sets: Protocol, Address and
|
||||
# State. The filter is attached to an action that can be: Accept or
|
||||
# Ignore. Thus, you can define the event filtering policy of the
|
||||
# filter-sets in positive or negative logic depending on your needs.
|
||||
# You can select if conntrackd filters the event messages from
|
||||
# user-space or kernel-space. The kernel-space event filtering
|
||||
# saves some CPU cycles by avoiding the copy of the event message
|
||||
# from kernel-space to user-space. The kernel-space event filtering
|
||||
# is prefered, however, you require a Linux kernel >= 2.6.29 to
|
||||
# filter from kernel-space. If you want to select kernel-space
|
||||
# event filtering, use the keyword 'Kernelspace' instead of
|
||||
# 'Userspace'.
|
||||
#
|
||||
Filter From Userspace {
|
||||
#
|
||||
# Accept only certain protocols: You may want to replicate
|
||||
# the state of flows depending on their layer 4 protocol.
|
||||
#
|
||||
Protocol Accept {
|
||||
TCP
|
||||
SCTP
|
||||
DCCP
|
||||
# UDP
|
||||
# ICMP # This requires a Linux kernel >= 2.6.31
|
||||
# IPv6-ICMP # This requires a Linux kernel >= 2.6.31
|
||||
}
|
||||
|
||||
#
|
||||
# Ignore traffic for a certain set of IP's: Usually all the
|
||||
# IP assigned to the firewall since local traffic must be
|
||||
# ignored, only forwarded connections are worth to replicate.
|
||||
# Note that these values depends on the local IPs that are
|
||||
# assigned to the firewall.
|
||||
#
|
||||
Address Ignore {
|
||||
IPv4_address 127.0.0.1 # loopback
|
||||
IPv4_address 192.168.0.100 # virtual IP 1
|
||||
IPv4_address 192.168.1.100 # virtual IP 2
|
||||
IPv4_address 192.168.0.1
|
||||
IPv4_address 192.168.1.1
|
||||
IPv4_address 192.168.100.100 # dedicated link ip
|
||||
#
|
||||
# You can also specify networks in format IP/cidr.
|
||||
# IPv4_address 192.168.0.0/24
|
||||
#
|
||||
# You can also specify an IPv6 address
|
||||
# IPv6_address ::1
|
||||
}
|
||||
|
||||
#
|
||||
# Uncomment this line below if you want to filter by flow state.
|
||||
# This option introduces a trade-off in the replication: it
|
||||
# reduces CPU consumption at the cost of having lazy backup
|
||||
# firewall replicas. The existing TCP states are: SYN_SENT,
|
||||
# SYN_RECV, ESTABLISHED, FIN_WAIT, CLOSE_WAIT, LAST_ACK,
|
||||
# TIME_WAIT, CLOSED, LISTEN.
|
||||
#
|
||||
# State Accept {
|
||||
# ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP
|
||||
# }
|
||||
}
|
||||
}
|
||||
13
SPECS/conntrack-tools/conntrackd.service
Normal file
13
SPECS/conntrack-tools/conntrackd.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=connection tracking daemon for debugging and High Availablity
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# rhbz#1255578 daemon will not start if lock file is left dangling
|
||||
ExecStartPre=/bin/rm -f /var/lock/conntrack.lock
|
||||
ExecStart=/usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
143
SPECS/console-setup/0001-fix-makefile.patch
Normal file
143
SPECS/console-setup/0001-fix-makefile.patch
Normal file
@@ -0,0 +1,143 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 5c1012c..3ce30dc 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -10,71 +10,89 @@ include Fonts/Makefile
|
||||
. := $(maindir)
|
||||
~ := main
|
||||
|
||||
-prefix := /usr/local
|
||||
-# etcdir must be either /etc or
|
||||
-etcdir := $(prefix)/etc
|
||||
-bootprefix := $(patsubst %/usr,%/,$(prefix:%/=%))
|
||||
-mandir := $(prefix)/share/man
|
||||
+# ---- Installation Directories ----
|
||||
+# Allow these to be overridden from the command line, e.g., make prefix=/usr
|
||||
+prefix ?= /usr
|
||||
+exec_prefix ?= $(prefix)
|
||||
+bindir ?= $(exec_prefix)/bin
|
||||
+sbindir ?= $(exec_prefix)/sbin
|
||||
+# Use a standard variable for /etc
|
||||
+sysconfdir ?= /etc
|
||||
+datarootdir ?= $(prefix)/share
|
||||
+datadir ?= $(datarootdir)
|
||||
+mandir ?= $(datarootdir)/man
|
||||
+
|
||||
+# Define specific application directories based on the above
|
||||
+# Use DESTDIR for staging installations (e.g., RPM builds)
|
||||
+DESTDIR ?=
|
||||
+install_root = $(DESTDIR)
|
||||
+
|
||||
+# --- Original variables remapped to standard ones ---
|
||||
+# etcdir is now sysconfdir
|
||||
+# bootprefix/bin is now bindir or sbindir
|
||||
|
||||
acmfiles := $(wildcard $./acm/*.acm)
|
||||
-
|
||||
gzipped_acmfiles := $(addsuffix .gz, $(acmfiles))
|
||||
|
||||
-gzipped-acmfiles : $(gzipped_acmfiles)
|
||||
+gzipped-acmfiles: $(gzipped_acmfiles)
|
||||
|
||||
build-common: gzipped-acmfiles
|
||||
|
||||
.PHONY: install-common
|
||||
install-common: build-common
|
||||
- install -d $(bootprefix)/bin/
|
||||
- install setupcon $(bootprefix)/bin/
|
||||
- install -d $(etcdir)/default
|
||||
- install -m 644 config/keyboard $(etcdir)/default/
|
||||
- install -m 644 config/console-setup $(etcdir)/default/
|
||||
- install -d $(mandir)/man1/
|
||||
- install -m 644 man/setupcon.1 $(mandir)/man1/
|
||||
- install -d $(mandir)/man5/
|
||||
- install -m 644 man/keyboard.5 $(mandir)/man5/
|
||||
- install -m 644 man/console-setup.5 $(mandir)/man5/
|
||||
+ install -d $(install_root)$(bindir)/
|
||||
+ install setupcon $(install_root)$(bindir)/
|
||||
+ install -d $(install_root)$(sysconfdir)/default
|
||||
+ install -m 644 config/keyboard $(install_root)$(sysconfdir)/default/
|
||||
+ install -m 644 config/console-setup $(install_root)$(sysconfdir)/default/
|
||||
+ install -d $(install_root)$(mandir)/man1/
|
||||
+ install -m 644 man/setupcon.1 $(install_root)$(mandir)/man1/
|
||||
+ install -d $(install_root)$(mandir)/man5/
|
||||
+ install -m 644 man/keyboard.5 $(install_root)$(mandir)/man5/
|
||||
+ install -m 644 man/console-setup.5 $(install_root)$(mandir)/man5/
|
||||
|
||||
.PHONY: install-common-linux
|
||||
install-common-linux: build-linux
|
||||
- install -d $(prefix)/share/consolefonts/
|
||||
- install -m 644 Fonts/*.psf.gz $(prefix)/share/consolefonts/
|
||||
- install -d $(prefix)/share/consoletrans
|
||||
- install -m 644 acm/*.acm.gz $(prefix)/share/consoletrans/
|
||||
- install -d $(etcdir)/console-setup
|
||||
- install -m 644 Keyboard/compose.*.inc $(etcdir)/console-setup/
|
||||
- install -m 644 Keyboard/remap.inc $(etcdir)/console-setup/
|
||||
+ install -d $(install_root)$(datadir)/consolefonts/
|
||||
+ install -m 644 Fonts/*.psf.gz $(install_root)$(datadir)/consolefonts/
|
||||
+ install -d $(install_root)$(datadir)/consoletrans
|
||||
+ install -m 644 acm/*.acm.gz $(install_root)$(datadir)/consoletrans/
|
||||
+ # As per spec, we do not install /etc/console-setup by default.
|
||||
+ # The user can run a separate make target if they want it.
|
||||
+ # install -d $(install_root)$(sysconfdir)/console-setup
|
||||
+ # install -m 644 Keyboard/compose.*.inc $(install_root)$(sysconfdir)/console-setup/
|
||||
+ # install -m 644 Keyboard/remap.inc $(install_root)$(sysconfdir)/console-setup/
|
||||
+
|
||||
|
||||
.PHONY: install-ckbcomp
|
||||
install-ckbcomp:
|
||||
- if [ -z "$(xkbdir)" ]; then \
|
||||
- mkdir -p $(etcdir)/console-setup \
|
||||
- && cp -r Keyboard/ckb/ $(etcdir)/console-setup/ckb; \
|
||||
- fi
|
||||
- install -d $(prefix)/bin/
|
||||
- install -m 755 Keyboard/ckbcomp $(prefix)/bin/
|
||||
- install -d $(mandir)/man1/
|
||||
- install -m 644 man/ckbcomp.1 $(mandir)/man1/
|
||||
-
|
||||
-.PHONY : install-ckbcomp-mini
|
||||
-install-ckbcomp-mini: build-mini-linux
|
||||
- install -d $(prefix)/share/console-setup/
|
||||
- -install -m 644 Keyboard/*.ekmap.gz $(prefix)/share/console-setup/
|
||||
- install -m 644 Keyboard/charmap_functions.sh $(prefix)/share/console-setup/
|
||||
- install -d $(prefix)/bin/
|
||||
- install -m 755 Keyboard/ckbcomp-mini $(prefix)/bin/
|
||||
- ln -s ckbcomp-mini $(prefix)/bin/ckbcomp
|
||||
- install -d $(mandir)/man1/
|
||||
- install -m 644 man/ckbcomp.1 $(mandir)/man1/
|
||||
- ln -s ckbcomp.1 $(mandir)/man1/ckbcomp-mini.1
|
||||
-
|
||||
+ # As per spec, we do not install /etc/console-setup/ckb by default.
|
||||
+ # if [ -z "$(xkbdir)" ]; then \
|
||||
+ # mkdir -p $(install_root)$(sysconfdir)/console-setup \
|
||||
+ # && cp -r Keyboard/ckb/ $(install_root)$(sysconfdir)/console-setup/ckb; \
|
||||
+ # fi
|
||||
+ install -d $(install_root)$(bindir)/
|
||||
+ install -m 755 Keyboard/ckbcomp $(install_root)$(bindir)/
|
||||
+ install -d $(install_root)$(mandir)/man1/
|
||||
+ install -m 644 man/ckbcomp.1 $(install_root)$(mandir)/man1/
|
||||
+
|
||||
+# This target installs bdf2psf and its data
|
||||
+.PHONY: install-bdf2psf
|
||||
+install-bdf2psf:
|
||||
+ install -d $(install_root)$(bindir)
|
||||
+ install -m 755 Fonts/bdf2psf $(install_root)$(bindir)/
|
||||
+ install -d $(install_root)$(mandir)/man1
|
||||
+ install -m 644 man/bdf2psf.1 $(install_root)$(mandir)/man1/
|
||||
+ install -d $(install_root)$(datadir)/bdf2psf
|
||||
+ cp -a Fonts/fontsets Fonts/*.equivalents Fonts/*.set $(install_root)$(datadir)/bdf2psf/
|
||||
+
|
||||
+# The main install target, now supporting DESTDIR
|
||||
+.PHONY: install
|
||||
+install: install-common install-common-linux install-ckbcomp install-bdf2psf
|
||||
+
|
||||
+# An alias for backward compatibility with the spec file's old target
|
||||
.PHONY: install-linux
|
||||
-install-linux: install-common install-common-linux install-ckbcomp
|
||||
-
|
||||
-.PHONY : install-mini-linux
|
||||
-install-mini-linux: install-common install-common-linux install-ckbcomp-mini
|
||||
+install-linux: install
|
||||
|
||||
common-uninstall: | build-linux build-mini-linux
|
||||
-for font in Fonts/*.psf.gz; do \
|
||||
68
SPECS/console-setup/console-setup.spec
Normal file
68
SPECS/console-setup/console-setup.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
# SPDX-FileContributor: yyjeqhc <1772413353@qq.com>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Name: console-setup
|
||||
Version: 1.242
|
||||
Release: %autorelease
|
||||
Summary: Tools for configuring the console font and keyboard
|
||||
License: GPL-2.0-or-later AND MIT AND LicenseRef-Fedora-Public-Domain
|
||||
URL: https://packages.debian.org/sid/console-setup
|
||||
#!RemoteAsset
|
||||
Source: https://ftp.debian.org/debian/pool/main/c/console-setup/console-setup_%{version}.tar.xz
|
||||
BuildSystem: autotools
|
||||
Patch: 0001-fix-makefile.patch
|
||||
|
||||
BuildOption(install): prefix=%{_prefix}
|
||||
BuildOption(install): exec_prefix=%{_exec_prefix}
|
||||
BuildOption(install): bindir=%{_bindir}
|
||||
BuildOption(install): sbindir=%{_sbindir}
|
||||
BuildOption(install): sysconfdir=%{_sysconfdir}
|
||||
BuildOption(install): datarootdir=%{_datadir}
|
||||
BuildOption(install): mandir=%{_mandir}
|
||||
|
||||
BuildRequires: perl
|
||||
BuildRequires: make
|
||||
Requires: kbd
|
||||
|
||||
%description
|
||||
This package provides tools to configure the console's font and keyboard layout,
|
||||
often using settings derived from the X Window System.
|
||||
|
||||
%package -n bdf2psf
|
||||
Summary: Generate console fonts from BDF source fonts
|
||||
|
||||
%description -n bdf2psf
|
||||
This package provides a command-line converter to build console fonts from BDF
|
||||
sources.
|
||||
|
||||
# No configure
|
||||
%conf
|
||||
|
||||
# No tests
|
||||
%check
|
||||
|
||||
%files
|
||||
%doc README COPYRIGHT CHANGES copyright.fonts copyright.xkb Fonts/copyright
|
||||
%{_bindir}/ckbcomp
|
||||
%{_bindir}/setupcon
|
||||
%config(noreplace) %{_sysconfdir}/default/console-setup
|
||||
%config(noreplace) %{_sysconfdir}/default/keyboard
|
||||
%{_datadir}/consolefonts/
|
||||
%{_datadir}/consoletrans/
|
||||
%{_mandir}/man1/ckbcomp.1*
|
||||
%{_mandir}/man1/setupcon.1*
|
||||
%{_mandir}/man5/console-setup.5*
|
||||
%{_mandir}/man5/keyboard.5*
|
||||
|
||||
%files -n bdf2psf
|
||||
%license GPL-2
|
||||
%{_bindir}/bdf2psf
|
||||
%{_mandir}/man1/bdf2psf.1*
|
||||
%{_datadir}/bdf2psf/
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
58
SPECS/coreutils/coreutils.spec
Normal file
58
SPECS/coreutils/coreutils.spec
Normal file
@@ -0,0 +1,58 @@
|
||||
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
Summary: GNU Core Utilities
|
||||
Name: coreutils
|
||||
Version: 9.7
|
||||
Release: %autorelease
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://www.gnu.org/software/coreutils/
|
||||
#!RemoteAsset
|
||||
Source0: https://ftpmirror.gnu.org/gnu/coreutils/coreutils-%{version}.tar.xz
|
||||
#!RemoteAsset
|
||||
Source1: https://ftpmirror.gnu.org/gnu/coreutils/coreutils-%{version}.tar.xz.sig
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: acl-devel
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
|
||||
BuildSystem: autotools
|
||||
Provides: /bin/rm
|
||||
|
||||
BuildOption(conf): DEFAULT_POSIX2_VERSION=200112
|
||||
BuildOption(conf): --enable-no-install-program=kill
|
||||
|
||||
%description
|
||||
These are the GNU core utilities. This package is the union of
|
||||
the GNU fileutils, sh-utils, and textutils packages.
|
||||
|
||||
[ arch b2sum base32 base64 basename basenc cat chcon chgrp chmod chown chroot
|
||||
cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand
|
||||
expr factor false fmt fold groups head hostid id install join
|
||||
link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup
|
||||
nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink
|
||||
realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum
|
||||
shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test
|
||||
timeout touch tr true truncate tsort tty uname unexpand uniq unlink
|
||||
uptime users vdir wc who whoami yes
|
||||
|
||||
%install -a
|
||||
# Avoid illegal package names
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
||||
%find_lang %{name} --generate-subpackages
|
||||
|
||||
%files
|
||||
%doc NEWS README THANKS
|
||||
%{_bindir}/*
|
||||
%{_libexecdir}/coreutils/libstdbuf.so
|
||||
%{_mandir}/man1/*
|
||||
%{_infodir}/coreutils.info*
|
||||
|
||||
%changelog
|
||||
%{?autochangelog}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user