diff --git a/.gitignore b/.gitignore index 5960996..602a787 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /mio-0.8.6.crate /mio-0.8.7.crate /mio-0.8.8.crate +/mio-0.8.9.crate diff --git a/mio-fix-metadata-auto.diff b/mio-fix-metadata-auto.diff index cf50336..c92d9fe 100644 --- a/mio-fix-metadata-auto.diff +++ b/mio-fix-metadata-auto.diff @@ -1,17 +1,22 @@ ---- mio-0.8.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ mio-0.8.8/Cargo.toml 2023-06-04T15:49:09.433041+00:00 -@@ -107,21 +107,6 @@ +--- mio-0.8.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ mio-0.8.9/Cargo.toml 2023-10-24T11:04:08.736049+00:00 +@@ -103,26 +103,9 @@ + net = [] + os-ext = [ + "os-poll", +- "windows-sys/Win32_System_Pipes", +- "windows-sys/Win32_Security", ] os-poll = [] - +- -[target."cfg(target_os = \"wasi\")".dependencies.libc] --version = "0.2.121" +-version = "0.2.149" - -[target."cfg(target_os = \"wasi\")".dependencies.wasi] -version = "0.11.0" -- + [target."cfg(unix)".dependencies.libc] - version = "0.2.121" + version = "0.2.149" -[target."cfg(windows)".dependencies.windows-sys] -version = "0.48" diff --git a/mio-fix-metadata.diff b/mio-fix-metadata.diff deleted file mode 100644 index 73c7d72..0000000 --- a/mio-fix-metadata.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- mio-0.8.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ mio-0.8.8/Cargo.toml 2023-06-04T15:49:25.406114+00:00 -@@ -100,11 +100,7 @@ - [features] - default = ["log"] - net = [] --os-ext = [ -- "os-poll", -- "windows-sys/Win32_System_Pipes", -- "windows-sys/Win32_Security", --] -+os-ext = ["os-poll"] - os-poll = [] - - [target."cfg(unix)".dependencies.libc] diff --git a/rust-mio.spec b/rust-mio.spec index 8427dfd..82c58e4 100644 --- a/rust-mio.spec +++ b/rust-mio.spec @@ -1,23 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate mio Name: rust-mio -Version: 0.8.8 +Version: 0.8.9 Release: %autorelease Summary: Lightweight non-blocking I/O License: MIT URL: https://crates.io/crates/mio Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: mio-fix-metadata-auto.diff -# Manually created patch for downstream crate metadata changes -Patch: mio-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Lightweight non-blocking I/O.} @@ -100,7 +98,7 @@ use the "os-poll" 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 @@ -114,7 +112,7 @@ use the "os-poll" feature of the "%{crate}" crate. %if %{with check} %check -export RUST_BACKTRACE=1 +#export RUST_BACKTRACE=1 %cargo_test -a %endif 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..4ef1a1f --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[features] +enable-all = true + diff --git a/sources b/sources index a0a8bf5..c3d1a0a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mio-0.8.8.crate) = 448a05f19a147fe119965f7f1aaf24c2a40ed816ddf2e5c95ba3bdaded5e2812314c64a50dc7baada93bb005b65159cb6597f82a407936885ea376bb128b0c9a +SHA512 (mio-0.8.9.crate) = a078b1db6140d77452c24647aa91ec6563d00bc3516fb44c34b79797fdc953493cf844f1ab84d226582e9d61c383f4a743fd93853d71e362fb9dfc8dc6529808