ecb902d
# Generated by rust2rpm 26
2d6b77a
%bcond_without check
5bc4f97
%global debug_package %{nil}
5bc4f97
5bc4f97
%global crate headers
5bc4f97
581e0c2
Name:           rust-headers
ecb902d
Version:        0.4.0
bf650a4
Release:        %autorelease
5bc4f97
Summary:        Typed HTTP headers
5bc4f97
5bc4f97
License:        MIT
5bc4f97
URL:            https://crates.io/crates/headers
5bc4f97
Source:         %{crates_source}
5bc4f97
ecb902d
BuildRequires:  cargo-rpm-macros >= 24
4304d5d
4304d5d
%global _description %{expand:
4304d5d
Typed HTTP headers.}
5bc4f97
5bc4f97
%description %{_description}
5bc4f97
5bc4f97
%package        devel
5bc4f97
Summary:        %{summary}
5bc4f97
BuildArch:      noarch
5bc4f97
5bc4f97
%description    devel %{_description}
5bc4f97
6d24c6f
This package contains library source intended for building other packages which
6d24c6f
use the "%{crate}" crate.
5bc4f97
5bc4f97
%files          devel
581e0c2
%license %{crate_instdir}/LICENSE
581e0c2
%doc %{crate_instdir}/README.md
581e0c2
%{crate_instdir}/
5bc4f97
5bc4f97
%package     -n %{name}+default-devel
5bc4f97
Summary:        %{summary}
5bc4f97
BuildArch:      noarch
5bc4f97
5bc4f97
%description -n %{name}+default-devel %{_description}
5bc4f97
6d24c6f
This package contains library source intended for building other packages which
6d24c6f
use the "default" feature of the "%{crate}" crate.
5bc4f97
5bc4f97
%files       -n %{name}+default-devel
581e0c2
%ghost %{crate_instdir}/Cargo.toml
2d6b77a
2d6b77a
%package     -n %{name}+nightly-devel
2d6b77a
Summary:        %{summary}
2d6b77a
BuildArch:      noarch
2d6b77a
2d6b77a
%description -n %{name}+nightly-devel %{_description}
2d6b77a
6d24c6f
This package contains library source intended for building other packages which
6d24c6f
use the "nightly" feature of the "%{crate}" crate.
2d6b77a
2d6b77a
%files       -n %{name}+nightly-devel
581e0c2
%ghost %{crate_instdir}/Cargo.toml
5bc4f97
5bc4f97
%prep
ecb902d
%autosetup -n %{crate}-%{version} -p1
5bc4f97
%cargo_prep
5bc4f97
4304d5d
%generate_buildrequires
4304d5d
%cargo_generate_buildrequires
4304d5d
5bc4f97
%build
5bc4f97
%cargo_build
5bc4f97
5bc4f97
%install
5bc4f97
%cargo_install
5bc4f97
5bc4f97
%if %{with check}
5bc4f97
%check
5bc4f97
%cargo_test
5bc4f97
%endif
5bc4f97
5bc4f97
%changelog
bf650a4
%autochangelog