Blame rust-http-body0.3.spec

c9b0cb8
# Generated by rust2rpm 16
c9b0cb8
%bcond_without check
c9b0cb8
%global debug_package %{nil}
c9b0cb8
c9b0cb8
%global crate http-body
c9b0cb8
c9b0cb8
Name:           rust-%{crate}0.3
c9b0cb8
Version:        0.3.1
c9b0cb8
Release:        1%{?dist}
c9b0cb8
Summary:        Trait representing an asynchronous, streaming, HTTP request or response body
c9b0cb8
c9b0cb8
# Upstream license specification: MIT
c9b0cb8
License:        MIT
c9b0cb8
URL:            https://crates.io/crates/http-body
c9b0cb8
Source:         %{crates_source}
c9b0cb8
c9b0cb8
ExclusiveArch:  %{rust_arches}
c9b0cb8
%if %{__cargo_skip_build}
c9b0cb8
BuildArch:      noarch
c9b0cb8
%endif
c9b0cb8
c9b0cb8
BuildRequires:  rust-packaging
c9b0cb8
c9b0cb8
%global _description %{expand:
c9b0cb8
Trait representing an asynchronous, streaming, HTTP request or response body.}
c9b0cb8
c9b0cb8
%description %{_description}
c9b0cb8
c9b0cb8
%package        devel
c9b0cb8
Summary:        %{summary}
c9b0cb8
BuildArch:      noarch
c9b0cb8
c9b0cb8
%description    devel %{_description}
c9b0cb8
c9b0cb8
This package contains library source intended for building other packages
c9b0cb8
which use "%{crate}" crate.
c9b0cb8
c9b0cb8
%files          devel
c9b0cb8
%license LICENSE
c9b0cb8
%doc README.md CHANGELOG.md
c9b0cb8
%{cargo_registry}/%{crate}-%{version_no_tilde}/
c9b0cb8
c9b0cb8
%package     -n %{name}+default-devel
c9b0cb8
Summary:        %{summary}
c9b0cb8
BuildArch:      noarch
c9b0cb8
c9b0cb8
%description -n %{name}+default-devel %{_description}
c9b0cb8
c9b0cb8
This package contains library source intended for building other packages
c9b0cb8
which use "default" feature of "%{crate}" crate.
c9b0cb8
c9b0cb8
%files       -n %{name}+default-devel
c9b0cb8
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
c9b0cb8
c9b0cb8
%prep
c9b0cb8
%autosetup -n %{crate}-%{version_no_tilde} -p1
c9b0cb8
%cargo_prep
c9b0cb8
c9b0cb8
%generate_buildrequires
c9b0cb8
%cargo_generate_buildrequires
c9b0cb8
c9b0cb8
%build
c9b0cb8
%cargo_build
c9b0cb8
c9b0cb8
%install
c9b0cb8
%cargo_install
c9b0cb8
c9b0cb8
%if %{with check}
c9b0cb8
%check
c9b0cb8
%cargo_test
c9b0cb8
%endif
c9b0cb8
c9b0cb8
%changelog
c9b0cb8
* Sun Mar 07 2021 Fabio Valentini <decathorpe@gmail.com> - 0.3.1-1
c9b0cb8
- Initial package