# Generated by rust2rpm # Disable checks while we bootstrap new packaging %bcond_with check %global debug_package %{nil} %global crate tokio-uds Name: rust-%{crate} Version: 0.2.3 Release: 2%{?dist} Summary: Unix Domain sockets for Tokio License: MIT URL: https://crates.io/crates/tokio-uds Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(bytes/default) >= 0.4.8 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(futures/default) >= 0.1.21 with crate(futures/default) < 0.2.0) BuildRequires: (crate(iovec/default) >= 0.1.2 with crate(iovec/default) < 0.2.0) BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0) BuildRequires: (crate(log/default) >= 0.4.2 with crate(log/default) < 0.5.0) BuildRequires: (crate(mio-uds/default) >= 0.6.5 with crate(mio-uds/default) < 0.7.0) BuildRequires: (crate(mio/default) >= 0.6.14 with crate(mio/default) < 0.7.0) BuildRequires: (crate(tokio-io/default) >= 0.1.6 with crate(tokio-io/default) < 0.2.0) BuildRequires: (crate(tokio-reactor/default) >= 0.1.1 with crate(tokio-reactor/default) < 0.2.0) %if %{with check} BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0) BuildRequires: (crate(tokio/default) >= 0.1.6 with crate(tokio/default) < 0.2.0) %endif %global _description \ Unix Domain sockets for Tokio. %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Thu Nov 08 2018 Josh Stone - 0.2.3-2 - Adapt to new packaging * Thu Oct 25 2018 Josh Stone - 0.2.3-1 - Update to 0.2.3 * Fri Sep 28 2018 Josh Stone - 0.2.2-1 - Update to 0.2.2 * Sun Sep 09 2018 Igor Gnatenko - 0.2.1-1 - Initial package