# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate hyper-tls Name: rust-%{crate} Version: 0.3.1 Release: 3%{?dist} Summary: Default TLS implementation for use with hyper # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/hyper-tls Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No "vendored" feature Patch0: hyper-tls-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(bytes/default) >= 0.4.0 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(futures/default) >= 0.1.21 with crate(futures/default) < 0.2.0) BuildRequires: (crate(hyper/default) >= 0.12.0 with crate(hyper/default) < 0.13.0) BuildRequires: (crate(native-tls/default) >= 0.2.0 with crate(native-tls/default) < 0.3.0) BuildRequires: (crate(tokio-io/default) >= 0.1.0 with crate(tokio-io/default) < 0.2.0) %if %{with check} BuildRequires: (crate(tokio/default) >= 0.1.5 with crate(tokio/default) < 0.2.0) %endif %global _description \ Default TLS implementation for use with hyper. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Feb 02 2019 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 12 2018 Josh Stone - 0.3.1-2 - Adapt to new packaging * Tue Oct 02 2018 Josh Stone - 0.3.1-1 - Update to 0.3.1 * Sun Jul 15 2018 Igor Gnatenko - 0.3.0-1 - Initial package