From ebf159c0e9a1a7829a88b1dbe4a7182423da9fc1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 4 Mar 2022 23:01:11 +0100 Subject: [PATCH] Update to version 2.0.3; Fixes RHBZ#2059894 --- .gitignore | 1 + async-global-executor-fix-metadata.diff | 8 ++-- rust-async-global-executor.spec | 57 ++++++++++++------------- sources | 2 +- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index babf8a0..e01b9ac 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /async-global-executor-2.0.2.crate +/async-global-executor-2.0.3.crate diff --git a/async-global-executor-fix-metadata.diff b/async-global-executor-fix-metadata.diff index 87cf511..0c073a4 100644 --- a/async-global-executor-fix-metadata.diff +++ b/async-global-executor-fix-metadata.diff @@ -1,6 +1,6 @@ ---- async-global-executor-2.0.2/Cargo.toml 2021-01-11T14:17:04+00:00 -+++ async-global-executor-2.0.2/Cargo.toml 2021-04-28T23:05:35.041279+00:00 -@@ -62,12 +62,6 @@ +--- async-global-executor-2.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-global-executor-2.0.3/Cargo.toml 2022-03-04T21:58:17.025485+00:00 +@@ -61,12 +61,6 @@ default-features = false package = "tokio" @@ -13,7 +13,7 @@ [dev-dependencies.doc-comment] version = "^0.3" -@@ -75,4 +69,3 @@ +@@ -74,4 +68,3 @@ default = ["async-io"] tokio = ["tokio-crate"] tokio02 = ["tokio02-crate"] diff --git a/rust-async-global-executor.spec b/rust-async-global-executor.spec index 7e05f65..fd2a1d0 100644 --- a/rust-async-global-executor.spec +++ b/rust-async-global-executor.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate async-global-executor Name: rust-%{crate} -Version: 2.0.2 +Version: 2.0.3 Release: %autorelease Summary: Global executor built on top of async-executor and async-io @@ -18,11 +18,8 @@ Source: %{crates_source} Patch0: async-global-executor-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Global executor built on top of async-executor and async-io.} @@ -35,13 +32,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%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} @@ -49,11 +48,11 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-io-devel Summary: %{summary} @@ -61,11 +60,11 @@ BuildArch: noarch %description -n %{name}+async-io-devel %{_description} -This package contains library source intended for building other packages -which use "async-io" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "async-io" feature of the "%{crate}" crate. %files -n %{name}+async-io-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} @@ -73,11 +72,11 @@ BuildArch: noarch %description -n %{name}+tokio-devel %{_description} -This package contains library source intended for building other packages -which use "tokio" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-crate-devel Summary: %{summary} @@ -85,11 +84,11 @@ BuildArch: noarch %description -n %{name}+tokio-crate-devel %{_description} -This package contains library source intended for building other packages -which use "tokio-crate" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio-crate" feature of the "%{crate}" crate. %files -n %{name}+tokio-crate-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio02-devel Summary: %{summary} @@ -97,11 +96,11 @@ BuildArch: noarch %description -n %{name}+tokio02-devel %{_description} -This package contains library source intended for building other packages -which use "tokio02" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio02" feature of the "%{crate}" crate. %files -n %{name}+tokio02-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio02-crate-devel Summary: %{summary} @@ -109,11 +108,11 @@ BuildArch: noarch %description -n %{name}+tokio02-crate-devel %{_description} -This package contains library source intended for building other packages -which use "tokio02-crate" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "tokio02-crate" feature of the "%{crate}" crate. %files -n %{name}+tokio02-crate-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index aefb928..ae47013 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-global-executor-2.0.2.crate) = 13d2d0b400832b1965cba680505fd65b87a45a4ab69c110a4a67394e726d340331fe292f6b1079de277d447688a1b97c15c095d106e132d02628892b825a3612 +SHA512 (async-global-executor-2.0.3.crate) = b7ef9d90eedc4e0d3bc9bc4af20f70647d8a0220bda2779925b3620ca641fc69af802c849135b5035cfb412b82a6f8d59f06317d2bf7f9fdb964078a54db044c