# Generated by rust2rpm # Doctests require networking %bcond_without check %global debug_package %{nil} %global crate mio Name: rust-%{crate} Version: 0.6.12 Release: 1%{?dist} Summary: Lightweight non-blocking IO License: MIT URL: https://crates.io/crates/mio Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows # * No weird OS # * Bump slab to 0.4, https://github.com/carllerche/mio/pull/768 Patch0: mio-0.6.12-fix-metadata.diff # Make it work with slab v0.4 Patch1: 0001-deps-update-slab-to-0.4.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(iovec) >= 0.1.1 with crate(iovec) < 0.2.0) BuildRequires: (crate(lazycell) >= 0.6.0 with crate(lazycell) < 0.7.0) BuildRequires: (crate(libc) >= 0.2.19 with crate(libc) < 0.3.0) BuildRequires: (crate(log) >= 0.3.1 with crate(log) < 0.4.0) BuildRequires: (crate(net2) >= 0.2.29 with crate(net2) < 0.3.0) BuildRequires: (crate(slab) >= 0.4.0 with crate(slab) < 0.5.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(bytes) >= 0.3.0 with crate(bytes) < 0.4.0) BuildRequires: (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0) BuildRequires: (crate(tempdir) >= 0.3.4 with crate(tempdir) < 0.4.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Lightweight non-blocking IO. 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 %license LICENSE %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci} %changelog * Wed Jan 10 2018 Igor Gnatenko - 0.6.12-1 - Update to 0.6.12 * Fri Dec 01 2017 Igor Gnatenko - 0.6.11-1 - Update to 0.6.11 * Fri Jun 16 2017 Igor Gnatenko - 0.6.9-1 - Initial package