From 1089f8a3a9c0e1ef364b91235df2c87bf2366eaa Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 13 Jul 2018 21:16:03 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-h2.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 rust-h2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ca981f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/h2-0.1.10.crate diff --git a/rust-h2.spec b/rust-h2.spec new file mode 100644 index 0000000..f52ee00 --- /dev/null +++ b/rust-h2.spec @@ -0,0 +1,83 @@ +# 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 diff --git a/sources b/sources new file mode 100644 index 0000000..13440b7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (h2-0.1.10.crate) = 80ce6dae1d492aa273431f16f94db0752d940b5db7fc4f5e7633c9300ab14bad63f44666d53b8443662fb8b521b33f1082d66dab3d0b0e86920b84941ceeec51