From 5d1a1f2e61170ff54bd8b4647d00d461ab9ad5dd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 8 Jun 2021 00:26:52 +0200 Subject: [PATCH] initial import (#1966648) --- .gitignore | 4 +++ README.md | 3 -- rust-async-stream.spec | 76 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-async-stream.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e6af6d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/async-stream-0.3.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 964f4bc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-async-stream - -The rust-async-stream package diff --git a/rust-async-stream.spec b/rust-async-stream.spec new file mode 100644 index 0000000..b74dfd5 --- /dev/null +++ b/rust-async-stream.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 17 +# resolve dependency loop with tokio-test +%bcond_with check +%global debug_package %{nil} + +%global crate async-stream + +Name: rust-%{crate} +Version: 0.3.2 +Release: 1%{?dist} +Summary: Asynchronous streams using async & await notation + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/async-stream +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Asynchronous streams using async & await notation.} + +%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 +%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 +* Tue Jun 01 2021 Fabio Valentini - 0.3.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b122bf6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (async-stream-0.3.2.crate) = 4e0e44a25b6557b0063fa1b02a4c701e8b5ad7354acc06037367ccac33386e5129dfccba6721ee1998c0c5c295194db54bba01ebe9afa57f7358f3cffdf078ea