From e10807422041d8ee59f82eca2077eb8977a215e8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 27 Dec 2023 22:45:43 +0100 Subject: [PATCH] Update to version 0.3.30; Fixes RHBZ#2246397 --- .gitignore | 1 + futures-fix-metadata.diff | 6 +++--- rust-futures.spec | 11 ++++------- rust2rpm.conf | 2 -- rust2rpm.toml | 6 ++++++ sources | 2 +- 6 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 rust2rpm.conf create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index efe9b22..821c20c 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ /futures-0.3.26.crate /futures-0.3.27.crate /futures-0.3.28.crate +/futures-0.3.30.crate diff --git a/futures-fix-metadata.diff b/futures-fix-metadata.diff index 87da2d9..2b317b5 100644 --- a/futures-fix-metadata.diff +++ b/futures-fix-metadata.diff @@ -1,11 +1,11 @@ ---- futures-0.3.28/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ futures-0.3.28/Cargo.toml 2023-04-02T10:51:38.639834+00:00 +--- futures-0.3.30/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ futures-0.3.30/Cargo.toml 2023-12-27T21:28:33.470398+00:00 @@ -80,6 +80,9 @@ [dev-dependencies.assert_matches] version = "1.3.0" +[dev-dependencies.futures-test] -+version = "=0.3.28" ++version = "=0.3.30" + [dev-dependencies.pin-project] version = "1.0.11" diff --git a/rust-futures.spec b/rust-futures.spec index d0b2d99..a3d94ce 100644 --- a/rust-futures.spec +++ b/rust-futures.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate futures Name: rust-futures -Version: 0.3.28 +Version: 0.3.30 Release: %autorelease Summary: Implementation of futures and streams @@ -16,7 +16,7 @@ Source: %{crates_source} # * add missing futures-test dev-dependency Patch: futures-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: An implementation of futures and streams featuring zero allocations, @@ -196,11 +196,8 @@ use the "write-all-vectored" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep -# * remove a test that doesn't compile with Rust < 1.63: -# "use of unstable library feature 'future_poll_fn'" -rm tests/future_join.rs %generate_buildrequires %cargo_generate_buildrequires -a diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index f626714..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -all-features = true diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..73ad5b0 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +summary = "Implementation of futures and streams" + +[features] +enable-all = true + diff --git a/sources b/sources index 54efae6..d73c9ec 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (futures-0.3.28.crate) = 271c83c157de76b1c58db49d6f7aa0591c665551e60dbb260c3ad292a48138979b06e76b99a78cb4f3ea57cff3ec5884839cf6a0b807fa212d54ac28799c5e6d +SHA512 (futures-0.3.30.crate) = 98fc67bf1047609c8bb0763c00ab9cb39b6a6d0cb7d993bce4966ddc2492a6578b789e98095981b207ddd73ac4b1dfcd5224b352a0e970eed347537c6fbea43e