diff --git a/.gitignore b/.gitignore index 038b1ce..390f5de 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /mio-0.7.13.crate /mio-0.7.14.crate /mio-0.8.0.crate +/mio-0.8.1.crate diff --git a/mio-fix-metadata.diff b/mio-fix-metadata.diff index 54a5acd..c6959e7 100644 --- a/mio-fix-metadata.diff +++ b/mio-fix-metadata.diff @@ -1,9 +1,18 @@ ---- mio-0.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ mio-0.8.0/Cargo.toml 2022-02-03T14:10:08.584099+00:00 -@@ -53,12 +53,3 @@ +--- mio-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ mio-0.8.1/Cargo.toml 2022-03-12T20:27:44.506478+00:00 +@@ -101,24 +101,5 @@ + os-ext = ["os-poll"] os-poll = [] + +-[target."cfg(target_os = \"wasi\")".dependencies.libc] +-version = "0.2.86" +- +-[target."cfg(target_os = \"wasi\")".dependencies.wasi] +-version = "0.11.0" +- [target."cfg(unix)".dependencies.libc] version = "0.2.86" +- -[target."cfg(windows)".dependencies.miow] -version = "0.3.6" - @@ -12,4 +21,7 @@ - -[target."cfg(windows)".dependencies.winapi] -version = "0.3" --features = ["winsock2", "mswsock"] +-features = [ +- "winsock2", +- "mswsock", +-] diff --git a/rust-mio.spec b/rust-mio.spec index b97a1ac..68270e7 100644 --- a/rust-mio.spec +++ b/rust-mio.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate mio Name: rust-%{crate} -Version: 0.8.0 +Version: 0.8.1 Release: %autorelease Summary: Lightweight non-blocking IO @@ -14,12 +14,12 @@ License: MIT URL: https://crates.io/crates/mio Source: %{crates_source} # Initial patched metadata -# * drop windows-specific dependencies +# * drop WASI- and Windows-specific dependencies Patch0: mio-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Lightweight non-blocking IO.} @@ -36,9 +36,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +51,7 @@ 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}+net-devel Summary: %{summary} @@ -62,7 +63,7 @@ This package contains library source intended for building other packages which use the "net" feature of the "%{crate}" crate. %files -n %{name}+net-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+os-ext-devel Summary: %{summary} @@ -74,7 +75,7 @@ This package contains library source intended for building other packages which use the "os-ext" feature of the "%{crate}" crate. %files -n %{name}+os-ext-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+os-poll-devel Summary: %{summary} @@ -86,7 +87,7 @@ This package contains library source intended for building other packages which use the "os-poll" feature of the "%{crate}" crate. %files -n %{name}+os-poll-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 b10f066..841f679 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mio-0.8.0.crate) = b7db8f400c46937302a091a90ef05b501aaaf8cbd9b5d8a4415e140e5ad54fe745ac3248b49a6ab42399d145c01fbbdf0a69defc379caaa67f64e8b7cf160b07 +SHA512 (mio-0.8.1.crate) = 945e0970bdfbc0293248c3a26dfb84aa789737bc6e8101ec711da6006130eae5ea221e9c15b8f680f04a6b43b1ee1f42fe2d02035a8e2ccd94d78a759489d681