From ad8c966bc8b2212d6a42f40faf52b0147d0e369f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 5 Jan 2024 19:52:05 +0100 Subject: [PATCH] Update to version 2.2.2; Fixes RHBZ#2244763 --- .gitignore | 1 + async-io-fix-metadata-auto.diff | 10 +++++++--- rust-async-io.spec | 10 +++++----- rust2rpm.toml | 4 ++++ sources | 2 +- 5 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 26800b7..aed7427 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /async-io-1.9.0.crate /async-io-1.12.0.crate /async-io-1.13.0.crate +/async-io-2.2.2.crate diff --git a/async-io-fix-metadata-auto.diff b/async-io-fix-metadata-auto.diff index b7b4ddc..c4f5811 100644 --- a/async-io-fix-metadata-auto.diff +++ b/async-io-fix-metadata-auto.diff @@ -1,8 +1,12 @@ ---- async-io-1.13.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-io-1.13.0/Cargo.toml 2023-04-17T17:26:59.728281+00:00 -@@ -112,5 +112,3 @@ +--- async-io-2.2.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-io-2.2.2/Cargo.toml 2024-01-05T18:49:43.430866+00:00 +@@ -110,9 +110,3 @@ [target."cfg(target_os = \"linux\")".dev-dependencies.timerfd] version = "1" +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.52.0" +-features = ["Win32_Foundation"] +- -[target."cfg(windows)".dev-dependencies.uds_windows] -version = "1" diff --git a/rust-async-io.spec b/rust-async-io.spec index 7f0d740..fa68c7e 100644 --- a/rust-async-io.spec +++ b/rust-async-io.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * resolve circular dependency between async-{channel,net} and async-io %bcond_with check %global debug_package %{nil} @@ -6,17 +6,17 @@ %global crate async-io Name: rust-async-io -Version: 1.13.0 +Version: 2.2.2 Release: %autorelease Summary: Async I/O and timers License: Apache-2.0 OR MIT URL: https://crates.io/crates/async-io Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: async-io-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Async I/O and timers.} @@ -52,7 +52,7 @@ use the "default" 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 %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..fc3a216 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["resolve circular dependency between async-{channel,net} and async-io"] + diff --git a/sources b/sources index 515dc11..2cd5b31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-io-1.13.0.crate) = b37a13fdb1d29e2e8852ab6f24589718a88aa39bf532145ae7541d61c3f49f731f890764dd945845eef6c8b5af1042bac2c04cdabc00b36dc4350fa1c62ce54e +SHA512 (async-io-2.2.2.crate) = 871acd65b67050846dd4d1bf5127721dd9739e95f15ec21461eacc08b10410b8565bab5609882feb85b7279c225de42a4dd05fabb2efe7903f0fc6e6c81f93dd