From 311eac38d3ebc3c5302fd888f1d8b3871aaef499 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:16:44 +0300 Subject: [PATCH] import rust-spin_on-0.1.1-11.el10 --- .gitignore | 1 + .rust-spin_on.metadata | 1 + SOURCES/spin_on-fix-metadata.diff | 9 +++ SPECS/rust-spin_on.spec | 117 ++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-spin_on.metadata create mode 100644 SOURCES/spin_on-fix-metadata.diff create mode 100644 SPECS/rust-spin_on.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48c207e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spin_on-0.1.1.crate diff --git a/.rust-spin_on.metadata b/.rust-spin_on.metadata new file mode 100644 index 0000000..f537abe --- /dev/null +++ b/.rust-spin_on.metadata @@ -0,0 +1 @@ +f70fb5ce2973ded9281f04fa0eab3b9352c9e6d2 SOURCES/spin_on-0.1.1.crate diff --git a/SOURCES/spin_on-fix-metadata.diff b/SOURCES/spin_on-fix-metadata.diff new file mode 100644 index 0000000..9f373d0 --- /dev/null +++ b/SOURCES/spin_on-fix-metadata.diff @@ -0,0 +1,9 @@ +--- spin_on-0.1.1/Cargo.toml 2020-10-10T19:58:59+00:00 ++++ spin_on-0.1.1/Cargo.toml 2023-05-20T14:21:41.745023+00:00 +@@ -18,5 +18,6 @@ + description = "A simple, inefficient Future executor" + categories = ["asynchronous", "no-std"] + license = "Apache-2.0 OR MIT" ++exclude = ["/Makefile.toml"] + [dependencies.pin-utils] + version = "0.1.0" diff --git a/SPECS/rust-spin_on.spec b/SPECS/rust-spin_on.spec new file mode 100644 index 0000000..61a3b0e --- /dev/null +++ b/SPECS/rust-spin_on.spec @@ -0,0 +1,117 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 11; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate spin_on + +Name: rust-spin_on +Version: 0.1.1 +Release: %autorelease +Summary: Simple, inefficient Future executor + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/spin_on +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop file only useful to upstream: +# https://github.com/paulkernfeld/spin_on/pull/2 +Patch: spin_on-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A simple, inefficient Future executor.} + +%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}/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 + +%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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.1.1-11 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.1.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.1.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat May 20 2023 Fabio Valentini - 0.1.1-8 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 06 2021 Fabio Valentini - 0.1.1-1 +- Initial package + +## END: Generated by rpmautospec