From 98b4089070061c3f87520d88cf889c6442a76643 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 12 Mar 2018 14:23:32 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-hyper.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 rust-hyper.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5136501 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hyper-0.11.22.crate diff --git a/rust-hyper.spec b/rust-hyper.spec new file mode 100644 index 0000000..47b709b --- /dev/null +++ b/rust-hyper.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate hyper + +Name: rust-%{crate} +Version: 0.11.22 +Release: 1%{?dist} +Summary: Modern HTTP library + +License: MIT +URL: https://crates.io/crates/hyper +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(base64) >= 0.9.0 with crate(base64) < 0.10.0) +BuildRequires: (crate(bytes) >= 0.4.4 with crate(bytes) < 0.5.0) +BuildRequires: (crate(futures) >= 0.1.17 with crate(futures) < 0.2.0) +BuildRequires: (crate(futures-cpupool) >= 0.1.6 with crate(futures-cpupool) < 0.2.0) +BuildRequires: (crate(http) >= 0.1.0 with crate(http) < 0.2.0) +BuildRequires: (crate(httparse) >= 1.0.0 with crate(httparse) < 2.0.0) +BuildRequires: (crate(iovec) >= 0.1.0 with crate(iovec) < 0.2.0) +BuildRequires: (crate(language-tags) >= 0.2.0 with crate(language-tags) < 0.3.0) +BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) +BuildRequires: (crate(mime) >= 0.3.2 with crate(mime) < 0.4.0) +BuildRequires: (crate(percent-encoding) >= 1.0.0 with crate(percent-encoding) < 2.0.0) +BuildRequires: (crate(relay) >= 0.1.0 with crate(relay) < 0.2.0) +BuildRequires: (crate(time) >= 0.1.0 with crate(time) < 0.2.0) +BuildRequires: (crate(tokio-core) >= 0.1.11 with crate(tokio-core) < 0.2.0) +BuildRequires: (crate(tokio-io) >= 0.1.0 with crate(tokio-io) < 0.2.0) +BuildRequires: (crate(tokio-proto) >= 0.1.0 with crate(tokio-proto) < 0.2.0) +BuildRequires: (crate(tokio-service) >= 0.1.0 with crate(tokio-service) < 0.2.0) +BuildRequires: (crate(unicase) >= 2.0.0 with crate(unicase) < 3.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(num_cpus) >= 1.0.0 with crate(num_cpus) < 2.0.0) +BuildRequires: (crate(pretty_env_logger) >= 0.2.0 with crate(pretty_env_logger) < 0.3.0) +BuildRequires: (crate(spmc) >= 0.2.0 with crate(spmc) < 0.3.0) +BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A modern HTTP library. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Mar 09 2018 Igor Gnatenko - 0.11.22-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c485027 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hyper-0.11.22.crate) = f82e725d4c5479c29ddfc789472ef48cd48c03896bb1d25c10636eaeca928665097e490eab747a597997995ffc6aa35d35eb34555bb48faf130f6a6168b4305c