From 84340538f37ab325d0c3dd62e3c75e90cbcb2ef1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 12 Mar 2022 21:09:41 +0100 Subject: [PATCH] Update to version 1.2.0; Fixes RHBZ#2063434 --- .gitignore | 1 + rust-blocking.spec | 27 +++++++++++++-------------- sources | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 127c595..0c96f92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /blocking-1.0.2.crate /blocking-1.1.0.crate +/blocking-1.2.0.crate diff --git a/rust-blocking.spec b/rust-blocking.spec index de19736..db0d30f 100644 --- a/rust-blocking.spec +++ b/rust-blocking.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate blocking Name: rust-%{crate} -Version: 1.1.0 +Version: 1.2.0 Release: %autorelease Summary: Thread pool for isolating blocking I/O in async programs @@ -15,11 +15,8 @@ URL: https://crates.io/crates/blocking Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Thread pool for isolating blocking I/O in async programs.} @@ -32,13 +29,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} @@ -46,11 +45,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 02e2c5b..8ebce68 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (blocking-1.1.0.crate) = db898435e8f96af8b77865be4f0df10c5e869518893d192b23ccb308339c0a1d48043cf4c95c13016cdcf324e941ecb7b1546af2ef7d80e7e8e401c8f2110337 +SHA512 (blocking-1.2.0.crate) = aa5cc62a340fb94859e90bd54b9e61d897026ee66570f15f94a0be287b470f5222233dbf30cdf1b0860c4a24abdb0c40f925d9ccbabfbf38fa27b5b17917aa33