# Generated by rust2rpm # * tokio-timer is not packaged due to dep on slab0.3 %bcond_with check %global debug_package %{nil} %global crate tokio-threadpool Name: rust-%{crate} Version: 0.1.0 Release: 1%{?dist} Summary: Task scheduler backed by a work-stealing thread pool # https://github.com/tokio-rs/tokio/issues/202 License: MIT or ASL 2.0 URL: https://crates.io/crates/tokio-threadpool Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump rand to 0.4, https://github.com/tokio-rs/tokio/pull/205 Patch0: tokio-threadpool-0.1.0-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(crossbeam-deque) >= 0.3.0 with crate(crossbeam-deque) < 0.4.0) BuildRequires: (crate(futures) >= 0.1.18 with crate(futures) < 0.2.0) BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) BuildRequires: (crate(num_cpus) >= 1.2.0 with crate(num_cpus) < 2.0.0) BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) BuildRequires: (crate(tokio-executor) >= 0.1.0 with crate(tokio-executor) < 0.2.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0) BuildRequires: (crate(futures-cpupool) >= 0.1.7 with crate(futures-cpupool) < 0.2.0) BuildRequires: (crate(tokio-timer) >= 0.1.0 with crate(tokio-timer) < 0.2.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel A task scheduler backed by a work-stealing thread pool. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Fri Mar 09 2018 Igor Gnatenko - 0.1.0-1 - Initial package