# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate tokio
Name: rust-tokio
Version: 1.28.1
Release: %autorelease
Summary: Event-driven, non-blocking I/O platform
License: MIT
URL: https://crates.io/crates/tokio
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
Patch: tokio-fix-metadata-auto.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
An event-driven, non-blocking I/O platform for writing asynchronous I/O
backed applications.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
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 %{crate_instdir}/Cargo.toml
%package -n %{name}+bytes-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bytes-devel %{_description}
This package contains library source intended for building other packages which
use the "bytes" feature of the "%{crate}" crate.
%files -n %{name}+bytes-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+fs-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fs-devel %{_description}
This package contains library source intended for building other packages which
use the "fs" feature of the "%{crate}" crate.
%files -n %{name}+fs-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+full-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+full-devel %{_description}
This package contains library source intended for building other packages which
use the "full" feature of the "%{crate}" crate.
%files -n %{name}+full-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+io-std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+io-std-devel %{_description}
This package contains library source intended for building other packages which
use the "io-std" feature of the "%{crate}" crate.
%files -n %{name}+io-std-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+io-util-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+io-util-devel %{_description}
This package contains library source intended for building other packages which
use the "io-util" feature of the "%{crate}" crate.
%files -n %{name}+io-util-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+libc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libc-devel %{_description}
This package contains library source intended for building other packages which
use the "libc" feature of the "%{crate}" crate.
%files -n %{name}+libc-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+macros-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+macros-devel %{_description}
This package contains library source intended for building other packages which
use the "macros" feature of the "%{crate}" crate.
%files -n %{name}+macros-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+mio-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+mio-devel %{_description}
This package contains library source intended for building other packages which
use the "mio" feature of the "%{crate}" crate.
%files -n %{name}+mio-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+net-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+net-devel %{_description}
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 %{crate_instdir}/Cargo.toml
%package -n %{name}+num_cpus-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+num_cpus-devel %{_description}
This package contains library source intended for building other packages which
use the "num_cpus" feature of the "%{crate}" crate.
%files -n %{name}+num_cpus-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+parking_lot-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+parking_lot-devel %{_description}
This package contains library source intended for building other packages which
use the "parking_lot" feature of the "%{crate}" crate.
%files -n %{name}+parking_lot-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+process-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+process-devel %{_description}
This package contains library source intended for building other packages which
use the "process" feature of the "%{crate}" crate.
%files -n %{name}+process-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rt-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rt-devel %{_description}
This package contains library source intended for building other packages which
use the "rt" feature of the "%{crate}" crate.
%files -n %{name}+rt-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rt-multi-thread-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rt-multi-thread-devel %{_description}
This package contains library source intended for building other packages which
use the "rt-multi-thread" feature of the "%{crate}" crate.
%files -n %{name}+rt-multi-thread-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+signal-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+signal-devel %{_description}
This package contains library source intended for building other packages which
use the "signal" feature of the "%{crate}" crate.
%files -n %{name}+signal-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+signal-hook-registry-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+signal-hook-registry-devel %{_description}
This package contains library source intended for building other packages which
use the "signal-hook-registry" feature of the "%{crate}" crate.
%files -n %{name}+signal-hook-registry-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+socket2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+socket2-devel %{_description}
This package contains library source intended for building other packages which
use the "socket2" feature of the "%{crate}" crate.
%files -n %{name}+socket2-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+stats-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+stats-devel %{_description}
This package contains library source intended for building other packages which
use the "stats" feature of the "%{crate}" crate.
%files -n %{name}+stats-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+sync-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+sync-devel %{_description}
This package contains library source intended for building other packages which
use the "sync" feature of the "%{crate}" crate.
%files -n %{name}+sync-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+test-util-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+test-util-devel %{_description}
This package contains library source intended for building other packages which
use the "test-util" feature of the "%{crate}" crate.
%files -n %{name}+test-util-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+time-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+time-devel %{_description}
This package contains library source intended for building other packages which
use the "time" feature of the "%{crate}" crate.
%files -n %{name}+time-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tokio-macros-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tokio-macros-devel %{_description}
This package contains library source intended for building other packages which
use the "tokio-macros" feature of the "%{crate}" crate.
%files -n %{name}+tokio-macros-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# skip some integration tests that don't compile with --all-features
rm tests/io_copy_bidirectional.rs
rm tests/io_read_line.rs
rm tests/io_read_to_end.rs
rm tests/io_read_to_string.rs
rm tests/io_read_until.rs
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires -a
%build
%cargo_build -a
%install
%cargo_install -a
%if %{with check}
%check
%cargo_test -a
%endif
%changelog
%autochangelog