diff --git a/.gitignore b/.gitignore index f4de11a..7b2893b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /mio-0.6.20.crate /mio-0.6.21.crate /mio-0.6.22.crate +/mio-0.6.23.crate diff --git a/README.md b/README.md deleted file mode 100644 index ca83f6e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-mio0.6 - -The rust-mio0.6 package diff --git a/mio-fix-metadata.diff b/mio-fix-metadata-auto.diff similarity index 79% rename from mio-fix-metadata.diff rename to mio-fix-metadata-auto.diff index c96d641..4b48ce2 100644 --- a/mio-fix-metadata.diff +++ b/mio-fix-metadata-auto.diff @@ -1,5 +1,5 @@ ---- mio-0.6.22/Cargo.toml 2020-05-01T19:28:07+00:00 -+++ mio-0.6.22/Cargo.toml 2020-05-05T01:08:25.881476+00:00 +--- mio-0.6.23/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ mio-0.6.23/Cargo.toml 2023-05-16T22:26:47.741342+00:00 @@ -54,18 +54,5 @@ [features] default = ["with-deprecated"] @@ -15,7 +15,7 @@ -version = "0.2" - -[target."cfg(windows)".dependencies.miow] --version = "0.2.1" +-version = "0.2.2" - -[target."cfg(windows)".dependencies.winapi] -version = "0.2.6" diff --git a/rust-mio0.6.spec b/rust-mio0.6.spec index 1a93aed..40e18de 100644 --- a/rust-mio0.6.spec +++ b/rust-mio0.6.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 +# * outdated dev-dependencies: bytes %bcond_with check %global debug_package %{nil} %global crate mio -Name: rust-%{crate}0.6 -Version: 0.6.22 +Name: rust-mio0.6 +Version: 0.6.23 Release: %autorelease Summary: Lightweight non-blocking IO -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/mio Source: %{crates_source} -# Initial patched metadata -# * No windows or fuchsia -Patch0: mio-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: mio-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Lightweight non-blocking IO.} @@ -35,13 +29,14 @@ 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 -%doc README.md CHANGELOG.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} @@ -49,11 +44,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 %package -n %{name}+with-deprecated-devel Summary: %{summary} @@ -61,11 +56,11 @@ BuildArch: noarch %description -n %{name}+with-deprecated-devel %{_description} -This package contains library source intended for building other packages -which use "with-deprecated" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "with-deprecated" feature of the "%{crate}" crate. %files -n %{name}+with-deprecated-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -82,8 +77,7 @@ which use "with-deprecated" feature of "%{crate}" crate. %if %{with check} %check -# Tests below depend on having networking present -%cargo_test -- -- --skip poll::Poll --skip poll::Poll::deregister --skip poll::Poll::register --skip poll::Poll::reregister --skip sys::unix::ready::UnixReady --skip test_multicast::test_multicast +%cargo_test %endif %changelog diff --git a/sources b/sources index 87a0a4f..6ce9a23 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mio-0.6.22.crate) = b500b0271779942512c1d02756ee4caf4e00488f6929a06a7be8a46cc44318edaeb80abfaf6367d7201978a3529a6b5424679e07b719ee8194f0dc37aaf56ca5 +SHA512 (mio-0.6.23.crate) = ea95d15072fe36524a85b50108415a809d7ea3744deee45e4b6a1b763a11c88cda6dbabe4f8d01945a5edeb52296a74fcf457c85be3032c1311a35025860d05c