From 297e725ed1550592f4031288b089b4be586fc331 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 15 Jan 2024 21:46:43 +0300 Subject: [PATCH] import rust-linux_proc-0.1.1-4.el9 --- .rust-linux_proc.metadata | 0 SOURCES/linux_proc-0.1.1.crate | Bin 0 -> 6197 bytes SOURCES/linux_proc-fix-metadata.diff | 10 ++ SOURCES/linux_proc-license.patch | 230 +++++++++++++++++++++++++++ SPECS/rust-linux_proc.spec | 102 ++++++++++++ 5 files changed, 342 insertions(+) create mode 100644 .rust-linux_proc.metadata create mode 100644 SOURCES/linux_proc-0.1.1.crate create mode 100644 SOURCES/linux_proc-fix-metadata.diff create mode 100644 SOURCES/linux_proc-license.patch create mode 100644 SPECS/rust-linux_proc.spec diff --git a/.rust-linux_proc.metadata b/.rust-linux_proc.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/linux_proc-0.1.1.crate b/SOURCES/linux_proc-0.1.1.crate new file mode 100644 index 0000000000000000000000000000000000000000..8cae61f6ace736110ea45e36bf023e85ae8d973c GIT binary patch literal 6197 zcmV-57|Q1#iwFn+00002|7>Y)b$DNJa&KcTFfK7JF)m|rVRU5x?LB*Q(@66C?N2e7 zEwDM`STDZ<*&oZ}mip~3SHRxY6-yae8ppcGlF=g}2YmPI?iooVS+bpwWjA+G3Sy7C zdwP0ix_i1?ith#K$Jsgxod<)y*4GZ6*wJy=Pr{Yo4Z7>*`=B>eCppC47 z`Wr7zGxS@UVGgX3ZVWYS*DUyVYjEouTxp!x5p?<0gA`Z(`dhHfMiVj{qd;Ik0XZ@AiZk_Tdmb7X0wOe+YEW;>}n;rss`uWZlnJK^f6{jTK&j-R@mu!;rT?x~%@mpF0`?%zMS-;ZKIiugK=y(EO; zK>y1mS;y0ZgJUmQrgJ2G;PQx{xDn^k`GG2x6MlXcMy_B|3=fFYJ?!K>PWTExdBGyY z-$}TJ?i@Se$FQZiz=IA}cHlk$eEz@#$wdp>;RwF)d|nU<S%er3r|C(NR*qa|;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lBKefRU zw5L*4wd19&!MFBsXz6@z&YjV~HMubuxMRK;PaJn-4_s|z>VvU19N9L$ZSf`rcXQob TH`mQ|-LC%t7XZln0D1rbQ_15a literal 0 HcmV?d00001 diff --git a/SOURCES/linux_proc-fix-metadata.diff b/SOURCES/linux_proc-fix-metadata.diff new file mode 100644 index 0000000..528e8d1 --- /dev/null +++ b/SOURCES/linux_proc-fix-metadata.diff @@ -0,0 +1,10 @@ +--- linux_proc-0.1.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ linux_proc-0.1.1/Cargo.toml 2021-09-03T16:45:46.703638+00:00 +@@ -22,7 +22,5 @@ + categories = ["command-line-interface", "filesystem", "os::unix-apis", "parser-implementations"] + license = "MIT/Apache-2.0" + repository = "https://github.com/derekdreery/linux_proc" +-[dev-dependencies.quicli] +-version = "0.3" + [badges.travis-ci] + repository = "derekdreery/linux_proc" diff --git a/SOURCES/linux_proc-license.patch b/SOURCES/linux_proc-license.patch new file mode 100644 index 0000000..00d7116 --- /dev/null +++ b/SOURCES/linux_proc-license.patch @@ -0,0 +1,230 @@ +diff --git a/LICENSE-APACHE b/LICENSE-APACHE +new file mode 100644 +index 0000000..1b5ec8b +--- /dev/null ++++ b/LICENSE-APACHE +@@ -0,0 +1,176 @@ ++ Apache License ++ Version 2.0, January 2004 ++ http://www.apache.org/licenses/ ++ ++TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION ++ ++1. Definitions. ++ ++ "License" shall mean the terms and conditions for use, reproduction, ++ and distribution as defined by Sections 1 through 9 of this document. ++ ++ "Licensor" shall mean the copyright owner or entity authorized by ++ the copyright owner that is granting the License. ++ ++ "Legal Entity" shall mean the union of the acting entity and all ++ other entities that control, are controlled by, or are under common ++ control with that entity. For the purposes of this definition, ++ "control" means (i) the power, direct or indirect, to cause the ++ direction or management of such entity, whether by contract or ++ otherwise, or (ii) ownership of fifty percent (50%) or more of the ++ outstanding shares, or (iii) beneficial ownership of such entity. ++ ++ "You" (or "Your") shall mean an individual or Legal Entity ++ exercising permissions granted by this License. ++ ++ "Source" form shall mean the preferred form for making modifications, ++ including but not limited to software source code, documentation ++ source, and configuration files. ++ ++ "Object" form shall mean any form resulting from mechanical ++ transformation or translation of a Source form, including but ++ not limited to compiled object code, generated documentation, ++ and conversions to other media types. ++ ++ "Work" shall mean the work of authorship, whether in Source or ++ Object form, made available under the License, as indicated by a ++ copyright notice that is included in or attached to the work ++ (an example is provided in the Appendix below). ++ ++ "Derivative Works" shall mean any work, whether in Source or Object ++ form, that is based on (or derived from) the Work and for which the ++ editorial revisions, annotations, elaborations, or other modifications ++ represent, as a whole, an original work of authorship. For the purposes ++ of this License, Derivative Works shall not include works that remain ++ separable from, or merely link (or bind by name) to the interfaces of, ++ the Work and Derivative Works thereof. ++ ++ "Contribution" shall mean any work of authorship, including ++ the original version of the Work and any modifications or additions ++ to that Work or Derivative Works thereof, that is intentionally ++ submitted to Licensor for inclusion in the Work by the copyright owner ++ or by an individual or Legal Entity authorized to submit on behalf of ++ the copyright owner. For the purposes of this definition, "submitted" ++ means any form of electronic, verbal, or written communication sent ++ to the Licensor or its representatives, including but not limited to ++ communication on electronic mailing lists, source code control systems, ++ and issue tracking systems that are managed by, or on behalf of, the ++ Licensor for the purpose of discussing and improving the Work, but ++ excluding communication that is conspicuously marked or otherwise ++ designated in writing by the copyright owner as "Not a Contribution." ++ ++ "Contributor" shall mean Licensor and any individual or Legal Entity ++ on behalf of whom a Contribution has been received by Licensor and ++ subsequently incorporated within the Work. ++ ++2. Grant of Copyright License. Subject to the terms and conditions of ++ this License, each Contributor hereby grants to You a perpetual, ++ worldwide, non-exclusive, no-charge, royalty-free, irrevocable ++ copyright license to reproduce, prepare Derivative Works of, ++ publicly display, publicly perform, sublicense, and distribute the ++ Work and such Derivative Works in Source or Object form. ++ ++3. Grant of Patent License. Subject to the terms and conditions of ++ this License, each Contributor hereby grants to You a perpetual, ++ worldwide, non-exclusive, no-charge, royalty-free, irrevocable ++ (except as stated in this section) patent license to make, have made, ++ use, offer to sell, sell, import, and otherwise transfer the Work, ++ where such license applies only to those patent claims licensable ++ by such Contributor that are necessarily infringed by their ++ Contribution(s) alone or by combination of their Contribution(s) ++ with the Work to which such Contribution(s) was submitted. If You ++ institute patent litigation against any entity (including a ++ cross-claim or counterclaim in a lawsuit) alleging that the Work ++ or a Contribution incorporated within the Work constitutes direct ++ or contributory patent infringement, then any patent licenses ++ granted to You under this License for that Work shall terminate ++ as of the date such litigation is filed. ++ ++4. Redistribution. You may reproduce and distribute copies of the ++ Work or Derivative Works thereof in any medium, with or without ++ modifications, and in Source or Object form, provided that You ++ meet the following conditions: ++ ++ (a) You must give any other recipients of the Work or ++ Derivative Works a copy of this License; and ++ ++ (b) You must cause any modified files to carry prominent notices ++ stating that You changed the files; and ++ ++ (c) You must retain, in the Source form of any Derivative Works ++ that You distribute, all copyright, patent, trademark, and ++ attribution notices from the Source form of the Work, ++ excluding those notices that do not pertain to any part of ++ the Derivative Works; and ++ ++ (d) If the Work includes a "NOTICE" text file as part of its ++ distribution, then any Derivative Works that You distribute must ++ include a readable copy of the attribution notices contained ++ within such NOTICE file, excluding those notices that do not ++ pertain to any part of the Derivative Works, in at least one ++ of the following places: within a NOTICE text file distributed ++ as part of the Derivative Works; within the Source form or ++ documentation, if provided along with the Derivative Works; or, ++ within a display generated by the Derivative Works, if and ++ wherever such third-party notices normally appear. The contents ++ of the NOTICE file are for informational purposes only and ++ do not modify the License. You may add Your own attribution ++ notices within Derivative Works that You distribute, alongside ++ or as an addendum to the NOTICE text from the Work, provided ++ that such additional attribution notices cannot be construed ++ as modifying the License. ++ ++ You may add Your own copyright statement to Your modifications and ++ may provide additional or different license terms and conditions ++ for use, reproduction, or distribution of Your modifications, or ++ for any such Derivative Works as a whole, provided Your use, ++ reproduction, and distribution of the Work otherwise complies with ++ the conditions stated in this License. ++ ++5. Submission of Contributions. Unless You explicitly state otherwise, ++ any Contribution intentionally submitted for inclusion in the Work ++ by You to the Licensor shall be under the terms and conditions of ++ this License, without any additional terms or conditions. ++ Notwithstanding the above, nothing herein shall supersede or modify ++ the terms of any separate license agreement you may have executed ++ with Licensor regarding such Contributions. ++ ++6. Trademarks. This License does not grant permission to use the trade ++ names, trademarks, service marks, or product names of the Licensor, ++ except as required for reasonable and customary use in describing the ++ origin of the Work and reproducing the content of the NOTICE file. ++ ++7. Disclaimer of Warranty. Unless required by applicable law or ++ agreed to in writing, Licensor provides the Work (and each ++ Contributor provides its Contributions) on an "AS IS" BASIS, ++ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or ++ implied, including, without limitation, any warranties or conditions ++ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A ++ PARTICULAR PURPOSE. You are solely responsible for determining the ++ appropriateness of using or redistributing the Work and assume any ++ risks associated with Your exercise of permissions under this License. ++ ++8. Limitation of Liability. In no event and under no legal theory, ++ whether in tort (including negligence), contract, or otherwise, ++ unless required by applicable law (such as deliberate and grossly ++ negligent acts) or agreed to in writing, shall any Contributor be ++ liable to You for damages, including any direct, indirect, special, ++ incidental, or consequential damages of any character arising as a ++ result of this License or out of the use or inability to use the ++ Work (including but not limited to damages for loss of goodwill, ++ work stoppage, computer failure or malfunction, or any and all ++ other commercial damages or losses), even if such Contributor ++ has been advised of the possibility of such damages. ++ ++9. Accepting Warranty or Additional Liability. While redistributing ++ the Work or Derivative Works thereof, You may choose to offer, ++ and charge a fee for, acceptance of support, warranty, indemnity, ++ or other liability obligations and/or rights consistent with this ++ License. However, in accepting such obligations, You may act only ++ on Your own behalf and on Your sole responsibility, not on behalf ++ of any other Contributor, and only if You agree to indemnify, ++ defend, and hold each Contributor harmless for any liability ++ incurred by, or claims asserted against, such Contributor by reason ++ of your accepting any such warranty or additional liability. ++ ++END OF TERMS AND CONDITIONS +diff --git a/LICENSE-MIT b/LICENSE-MIT +new file mode 100644 +index 0000000..31aa793 +--- /dev/null ++++ b/LICENSE-MIT +@@ -0,0 +1,23 @@ ++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. +diff --git a/README.md b/README.md +index a48b847..bee1ce1 100644 +--- a/README.md ++++ b/README.md +@@ -1,3 +1,14 @@ + # `linux_proc` + + Parsers and data structures for reading the contents of "/proc" directory. ++ ++## License ++ ++Licensed under either of ++ ++ * Apache License, Version 2.0 ++ ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) ++ * MIT license ++ ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) ++ ++at your option. diff --git a/SPECS/rust-linux_proc.spec b/SPECS/rust-linux_proc.spec new file mode 100644 index 0000000..73f086f --- /dev/null +++ b/SPECS/rust-linux_proc.spec @@ -0,0 +1,102 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate linux_proc + +Name: rust-%{crate} +Version: 0.1.1 +Release: %autorelease +Summary: Library to help reading the contents of /proc on linux + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/linux_proc +Source: %{crates_source} +# Initial patched metadata +# Drop quicli dependency as it's only needed for examples +Patch0: linux_proc-fix-metadata.diff +# Backport of https://github.com/derekdreery/linux_proc/pull/2 +Patch1: linux_proc-license.patch + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Library to help reading the contents of /proc on linux.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.1.1-4 +- Rebuilt for MSVSphere 9.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Sep 03 2021 Davide Cavalca - 0.1.1-1 +- Initial import; Fixes: RHBZ#1990649