# Generated by rust2rpm # * We don't want to package rustls %bcond_with check %global debug_package %{nil} %global crate h2 Name: rust-%{crate} Version: 0.1.10 Release: 1%{?dist} Summary: HTTP/2.0 client and server License: MIT URL: https://crates.io/crates/h2 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0) BuildRequires: (crate(bytes) >= 0.4.7 with crate(bytes) < 0.5.0) BuildRequires: (crate(fnv) >= 1.0.5 with crate(fnv) < 2.0.0) BuildRequires: (crate(futures) >= 0.1.0 with crate(futures) < 0.2.0) BuildRequires: (crate(http) >= 0.1.3 with crate(http) < 0.2.0) BuildRequires: (crate(indexmap) >= 1.0.0 with crate(indexmap) < 2.0.0) BuildRequires: (crate(log) >= 0.4.1 with crate(log) < 0.5.0) BuildRequires: (crate(slab) >= 0.4.0 with crate(slab) < 0.5.0) BuildRequires: (crate(string) >= 0.1.0 with crate(string) < 0.2.0) BuildRequires: (crate(tokio-io) >= 0.1.4 with crate(tokio-io) < 0.2.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(env_logger) >= 0.5.3 with crate(env_logger) < 0.6.0) BuildRequires: (crate(hex) >= 0.2.0 with crate(hex) < 0.3.0) BuildRequires: (crate(quickcheck) >= 0.4.1 with crate(quickcheck) < 0.5.0) BuildRequires: (crate(rand) >= 0.3.15 with crate(rand) < 0.4.0) BuildRequires: (crate(rustls) >= 0.12.0 with crate(rustls) < 0.13.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) BuildRequires: (crate(tokio-core) >= 0.1.0 with crate(tokio-core) < 0.2.0) BuildRequires: (crate(tokio-rustls) >= 0.5.0 with crate(tokio-rustls) < 0.6.0) BuildRequires: (crate(walkdir) >= 1.0.0 with crate(walkdir) < 2.0.0) BuildRequires: (crate(webpki) >= 0.18.0~alpha with crate(webpki) < 0.18.0) BuildRequires: (crate(webpki-roots) >= 0.14.0 with crate(webpki-roots) < 0.15.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel An HTTP/2.0 client and server. 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}/ci %changelog * Wed Jul 11 2018 Igor Gnatenko - 0.1.10-1 - Initial package