36b8e32
# Generated by rust2rpm 24
aee88eb
%bcond_without check
6446cfe
%global debug_package %{nil}
6446cfe
6446cfe
%global crate yaml-rust
6446cfe
36b8e32
Name:           rust-yaml-rust
c3c64d2
Version:        0.4.5
d904a07
Release:        %autorelease
059d684
Summary:        Missing YAML 1.2 parser for rust
6446cfe
7dba2c4
# Upstream license specification: MIT/Apache-2.0
36b8e32
License:        MIT OR Apache-2.0
6446cfe
URL:            https://crates.io/crates/yaml-rust
e5933e0
Source:         %{crates_source}
6446cfe
36b8e32
BuildRequires:  rust-packaging >= 21
6446cfe
aee88eb
%global _description %{expand:
36b8e32
The missing YAML 1.2 parser for rust.}
4d1f799
4d1f799
%description %{_description}
6446cfe
6446cfe
%package        devel
6446cfe
Summary:        %{summary}
6446cfe
BuildArch:      noarch
6446cfe
4d1f799
%description    devel %{_description}
6446cfe
36b8e32
This package contains library source intended for building other packages which
36b8e32
use the "%{crate}" crate.
4d1f799
4d1f799
%files          devel
36b8e32
%license %{crate_instdir}/LICENSE-APACHE
36b8e32
%license %{crate_instdir}/LICENSE-MIT
36b8e32
%doc %{crate_instdir}/README.md
36b8e32
%{crate_instdir}/
4d1f799
4d1f799
%package     -n %{name}+default-devel
4d1f799
Summary:        %{summary}
4d1f799
BuildArch:      noarch
4d1f799
4d1f799
%description -n %{name}+default-devel %{_description}
4d1f799
36b8e32
This package contains library source intended for building other packages which
36b8e32
use the "default" feature of the "%{crate}" crate.
4d1f799
4d1f799
%files       -n %{name}+default-devel
36b8e32
%ghost %{crate_instdir}/Cargo.toml
6446cfe
6446cfe
%prep
e5933e0
%autosetup -n %{crate}-%{version_no_tilde} -p1
36b8e32
# prevent dependency on /usr/bin/ruby from being generated
6446cfe
chmod -x tests/specs/cpp2rust.rb
6446cfe
%cargo_prep
6446cfe
aee88eb
%generate_buildrequires
aee88eb
%cargo_generate_buildrequires
aee88eb
6446cfe
%build
6446cfe
%cargo_build
6446cfe
6446cfe
%install
6446cfe
%cargo_install
6446cfe
6446cfe
%if %{with check}
6446cfe
%check
6446cfe
%cargo_test
6446cfe
%endif
6446cfe
6446cfe
%changelog
d904a07
%autochangelog