# Generated by rust2rpm 25
# * missing dev-dependencies: snapbox, toml-test-harness
%bcond_with check
%global debug_package %{nil}
%global crate toml
Name: rust-toml
Version: 0.8.2
Release: %autorelease
Summary: Native Rust encoder and decoder of TOML-formatted files and streams
License: MIT OR Apache-2.0
URL: https://crates.io/crates/toml
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A native Rust encoder and decoder of TOML-formatted files and streams.
Provides implementations of the standard Serialize/Deserialize traits
for TOML data to facilitate deserializing and serializing Rust
structures.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+display-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+display-devel %{_description}
This package contains library source intended for building other packages which
use the "display" feature of the "%{crate}" crate.
%files -n %{name}+display-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+indexmap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+indexmap-devel %{_description}
This package contains library source intended for building other packages which
use the "indexmap" feature of the "%{crate}" crate.
%files -n %{name}+indexmap-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+parse-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+parse-devel %{_description}
This package contains library source intended for building other packages which
use the "parse" feature of the "%{crate}" crate.
%files -n %{name}+parse-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+preserve_order-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+preserve_order-devel %{_description}
This package contains library source intended for building other packages which
use the "preserve_order" feature of the "%{crate}" crate.
%files -n %{name}+preserve_order-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog