# Generated by rust2rpm 9 %bcond_without check %global debug_package %{nil} %global crate tokio-buf Name: rust-%{crate} Version: 0.1.1 Release: 1%{?dist} Summary: Asynchronous stream of byte buffers # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/tokio-buf Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(bytes/default) >= 0.4.10 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(bytes/either) >= 0.4.10 with crate(bytes/either) < 0.5.0) BuildRequires: (crate(either/default) >= 1.5.0 with crate(either/default) < 2.0.0) BuildRequires: (crate(futures/default) >= 0.1.23 with crate(futures/default) < 0.2.0) %if %{with check} BuildRequires: (crate(tokio-mock-task/default) >= 0.1.1 with crate(tokio-mock-task/default) < 0.2.0) %endif %global _description %{expand: Asynchronous stream of byte buffers.} %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 README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %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}/Cargo.toml %package -n %{name}+either-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+either-devel %{_description} This package contains library source intended for building other packages which use "either" feature of "%{crate}" crate. %files -n %{name}+either-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+util-devel %{_description} This package contains library source intended for building other packages which use "util" feature of "%{crate}" crate. %files -n %{name}+util-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Jun 02 13:56:18 CEST 2019 Igor Gnatenko - 0.1.1-1 - Initial package