parent
36ffa61392
commit
98b4089070
@ -0,0 +1 @@
|
|||||||
|
/hyper-0.11.22.crate
|
@ -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 <ignatenkobrain@fedoraproject.org> - 0.11.22-1
|
||||||
|
- Initial package
|
Loading…
Reference in new issue