You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
499 lines
14 KiB
499 lines
14 KiB
# Generated by rust2rpm 17
|
|
%bcond_with check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate tokio
|
|
|
|
Name: rust-%{crate}0.2
|
|
Version: 0.2.24
|
|
Release: %autorelease
|
|
Summary: Event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications
|
|
|
|
# Upstream license specification: MIT
|
|
License: MIT
|
|
URL: https://crates.io/crates/tokio
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * No windows
|
|
Patch0: tokio-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
%if %{__cargo_skip_build}
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
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 "%{crate}" crate.
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%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 "default" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+default-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+blocking-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+blocking-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "blocking" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+blocking-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+dns-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+dns-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "dns" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+dns-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+fnv-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+fnv-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "fnv" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+fnv-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "fs" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+fs-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "full" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+full-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+futures-core-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+futures-core-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "futures-core" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+futures-core-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+io-driver-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+io-driver-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "io-driver" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+io-driver-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "io-std" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+io-std-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "io-util" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+io-util-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+iovec-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+iovec-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "iovec" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+iovec-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+lazy_static-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+lazy_static-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "lazy_static" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+lazy_static-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "libc" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+libc-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "macros" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+macros-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+memchr-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+memchr-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "memchr" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+memchr-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "mio" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+mio-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+mio-uds-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+mio-uds-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "mio-uds" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+mio-uds-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "net" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+net-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "num_cpus" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+num_cpus-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "parking_lot" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+parking_lot-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "process" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+process-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+rt-core-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+rt-core-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "rt-core" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+rt-core-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+rt-threaded-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+rt-threaded-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "rt-threaded" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+rt-threaded-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+rt-util-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+rt-util-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "rt-util" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+rt-util-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "signal" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+signal-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "signal-hook-registry" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+signal-hook-registry-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+slab-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+slab-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "slab" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+slab-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+stream-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+stream-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "stream" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+stream-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "sync" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+sync-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+tcp-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+tcp-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "tcp" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+tcp-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "test-util" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+test-util-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "time" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+time-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "tokio-macros" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+tokio-macros-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+tracing-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+tracing-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "tracing" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+tracing-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+udp-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+udp-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "udp" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+udp-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+uds-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+uds-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "uds" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+uds-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|