commit 18953b722f45c084707f9b70c0380ab4af9794ea Author: tigro Date: Mon Jan 15 22:45:33 2024 +0300 import rust-spin_on-0.1.1-5.el9 diff --git a/.rust-spin_on.metadata b/.rust-spin_on.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/spin_on-0.1.1.crate b/SOURCES/spin_on-0.1.1.crate new file mode 100644 index 0000000..caddf1e Binary files /dev/null and b/SOURCES/spin_on-0.1.1.crate differ diff --git a/SOURCES/spin_on-fix-metadata.diff b/SOURCES/spin_on-fix-metadata.diff new file mode 100644 index 0000000..4d70324 --- /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 2021-01-06T20:05:01.656702+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..904d445 --- /dev/null +++ b/SPECS/rust-spin_on.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate spin_on + +Name: rust-%{crate} +Version: 0.1.1 +Release: 5%{?dist} +Summary: Simple, inefficient Future executor + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/spin_on +Source: %{crates_source} +# Initial patched metadata +# * drop file only useful to upstream: +# https://github.com/paulkernfeld/spin_on/pull/2 +Patch0: spin_on-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +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 "%{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-5 +- Rebuilt for MSVSphere 9.3 + +* 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