|
|
@ -1,11 +1,11 @@
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate futures
|
|
|
|
%global crate futures
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-futures
|
|
|
|
Name: rust-futures
|
|
|
|
Version: 0.3.30
|
|
|
|
Version: 0.3.31
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Implementation of futures and streams
|
|
|
|
Summary: Implementation of futures and streams
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,10 @@ URL: https://crates.io/crates/futures
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * add missing futures-test dev-dependency
|
|
|
|
# * add missing futures-test dev-dependency
|
|
|
|
|
|
|
|
# * drop unused compat support for futures 0.1
|
|
|
|
|
|
|
|
# * drop unused compat support for tokio 0.1
|
|
|
|
Patch: futures-fix-metadata.diff
|
|
|
|
Patch: futures-fix-metadata.diff
|
|
|
|
|
|
|
|
Patch10: 0001-Fix-compiling-tests-with-compat-and-io-compat-featur.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
@ -99,18 +102,6 @@ use the "cfg-target-has-atomic" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+cfg-target-has-atomic-devel
|
|
|
|
%files -n %{name}+cfg-target-has-atomic-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+compat-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+compat-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "compat" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+compat-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+executor-devel
|
|
|
|
%package -n %{name}+executor-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -135,18 +126,6 @@ use the "futures-executor" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+futures-executor-devel
|
|
|
|
%files -n %{name}+futures-executor-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+io-compat-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+io-compat-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "io-compat" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+io-compat-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -198,6 +177,8 @@ use the "write-all-vectored" feature of the "%{crate}" crate.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
# drop single test that depends on tokio 0.1
|
|
|
|
|
|
|
|
rm tests/compat.rs
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
@ -210,11 +191,11 @@ use the "write-all-vectored" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# * always skip a test that is officially "flaky"
|
|
|
|
# * always skip a test that is officially "flaky" (stream_select)
|
|
|
|
# * skip a possibly flaky test:
|
|
|
|
# * skip a possibly flaky test (many_threads):
|
|
|
|
# https://github.com/rust-lang/futures-rs/issues/2539
|
|
|
|
# https://github.com/rust-lang/futures-rs/issues/2539
|
|
|
|
# * skip a test which fails depending on Rust version:
|
|
|
|
# * skip a test which fails depending on Rust version (join_size): sizes of some
|
|
|
|
# sizes of some structs and enums changed between Rust 1.62 and 1.63
|
|
|
|
# structs and enums changed between Rust 1.62 and 1.63
|
|
|
|
%cargo_test -a -- -- --skip stream_select --skip many_threads --skip join_size
|
|
|
|
%cargo_test -a -- -- --skip stream_select --skip many_threads --skip join_size
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|