From fa6f981a241e3b01127c80a8334739db78fbeca4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 6 Jan 2021 21:54:08 +0100 Subject: [PATCH] initial import (#1913382) --- .gitignore | 4 ++ README.md | 3 -- rust-spin_on.spec | 79 +++++++++++++++++++++++++++++++++++++++ sources | 1 + spin_on-fix-metadata.diff | 9 +++++ 5 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-spin_on.spec create mode 100644 sources create mode 100644 spin_on-fix-metadata.diff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d295526 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/spin_on-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index a40c2fb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-spin_on - -The rust-spin_on package diff --git a/rust-spin_on.spec b/rust-spin_on.spec new file mode 100644 index 0000000..776b80c --- /dev/null +++ b/rust-spin_on.spec @@ -0,0 +1,79 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate spin_on + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?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 +* Wed Jan 06 2021 Fabio Valentini - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..fc418ce --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (spin_on-0.1.1.crate) = ef9ff31d754cac3e97b4a5d819e759ab554c6b6945054941011400daba6b8a439622ffcd34a1885a4e890e6cd3658a34ab3eaecf99dc996d18d30272f19afb9b diff --git a/spin_on-fix-metadata.diff b/spin_on-fix-metadata.diff new file mode 100644 index 0000000..4d70324 --- /dev/null +++ b/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"