From 23877a3926d2e483328a42a5254f230c7b0e827b Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:27:24 +0300 Subject: [PATCH] import rust-errno-0.3.10-1.el10 --- .gitignore | 1 + .rust-errno.metadata | 1 + SOURCES/errno-fix-metadata-auto.diff | 24 ++++ SPECS/rust-errno.spec | 196 +++++++++++++++++++++++++++ 4 files changed, 222 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-errno.metadata create mode 100644 SOURCES/errno-fix-metadata-auto.diff create mode 100644 SPECS/rust-errno.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7f5319 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/errno-0.3.10.crate diff --git a/.rust-errno.metadata b/.rust-errno.metadata new file mode 100644 index 0000000..666240f --- /dev/null +++ b/.rust-errno.metadata @@ -0,0 +1 @@ +89d16674bf868a3a677a58b342c1ce0a35837243 SOURCES/errno-0.3.10.crate diff --git a/SOURCES/errno-fix-metadata-auto.diff b/SOURCES/errno-fix-metadata-auto.diff new file mode 100644 index 0000000..f6cf889 --- /dev/null +++ b/SOURCES/errno-fix-metadata-auto.diff @@ -0,0 +1,24 @@ +--- errno-0.3.10/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ errno-0.3.10/Cargo.toml 2024-11-28T17:44:39.745018+00:00 +@@ -39,21 +39,7 @@ + default = ["std"] + std = ["libc/std"] + +-[target.'cfg(target_os="hermit")'.dependencies.libc] +-version = "0.2" +-default-features = false +- +-[target.'cfg(target_os="wasi")'.dependencies.libc] +-version = "0.2" +-default-features = false +- + [target."cfg(unix)".dependencies.libc] + version = "0.2" + default-features = false + +-[target."cfg(windows)".dependencies.windows-sys] +-version = ">=0.52, <=0.59" +-features = [ +- "Win32_Foundation", +- "Win32_System_Diagnostics_Debug", +-] diff --git a/SPECS/rust-errno.spec b/SPECS/rust-errno.spec new file mode 100644 index 0000000..d4098a3 --- /dev/null +++ b/SPECS/rust-errno.spec @@ -0,0 +1,196 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + 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 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate errno + +Name: rust-errno +Version: 0.3.10 +Release: %autorelease +Summary: Cross-platform interface to the errno variable + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/errno +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: errno-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Cross-platform interface to the `errno` variable.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.3.10-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Nov 28 2024 Fabio Valentini - 0.3.10-1 +- Update to version 0.3.10; Fixes RHBZ#2329366 + +* Wed Oct 23 2024 Fabio Valentini - 0.3.9-1 +- Update to version 0.3.9 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.3.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.3.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 31 2023 Fabio Valentini - 0.3.8-1 +- Update to version 0.3.8; Fixes RHBZ#2251840 + +* Sat Nov 25 2023 Fabio Valentini - 0.3.7-1 +- Update to version 0.3.7; Fixes RHBZ#2249903 + +* Thu Nov 09 2023 Fabio Valentini - 0.3.6-1 +- Update to version 0.3.6; Fixes RHBZ#2242753 + +* Sun Oct 08 2023 Fabio Valentini - 0.3.4-1 +- Update to version 0.3.4; Fixes RHBZ#2241645 + +* Tue Aug 29 2023 Fabio Valentini - 0.3.3-1 +- Update to version 0.3.3; Fixes RHBZ#2235559 + +* Mon Jul 31 2023 Fabio Valentini - 0.3.2-1 +- Update to version 0.3.2; Fixes RHBZ#2227486 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Apr 14 2023 Fabio Valentini - 0.3.1-1 +- Update to version 0.3.1; Fixes RHBZ#2185347 + +* Tue Feb 21 2023 Fabio Valentini - 0.3.0-1 +- Update to version 0.3.0; Fixes RHBZ#2169162 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 09 2021 Fabio Valentini - 0.2.8-1 +- Update to version 0.2.8; Fixes RHBZ#2017721 + +* Tue Jul 27 2021 Fedora Release Engineering - 0.2.7-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Fabio Valentini - 0.2.7-1 +- Update to version 0.2.7. +- Fixes RHBZ#1891196 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 22 2020 Josh Stone - 0.2.6-1 +- Update to 0.2.6 + +* Fri Mar 27 12:55:31 CET 2020 Igor Raits - 0.2.5-1 +- Update to 0.2.5 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.2.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Nov 02 2018 Igor Gnatenko - 0.2.4-3 +- Adapt to new packaging + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jul 11 2018 Josh Stone - 0.2.4-1 +- Update to 0.2.4 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.2.3-2 +- Rebuild for rust-packaging v5 + +* Sun Nov 19 2017 Igor Gnatenko - 0.2.3-1 +- Initial package + +## END: Generated by rpmautospec