# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate toml_edit Name: rust-toml_edit0.5 Version: 0.5.0 Release: %autorelease Summary: Yet another format-preserving TOML parser # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/toml_edit Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Yet another format-preserving TOML parser.} %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}/CHANGELOG.md %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}+easy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+easy-devel %{_description} This package contains library source intended for building other packages which use the "easy" feature of the "%{crate}" crate. %files -n %{name}+easy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-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 -- -- --skip valid/comment/everywhere.toml --skip valid/string/escape-esc.toml --skip valid/string/hex-escape.toml --skip invalid/local-date/feb-29.toml --skip invalid/local-date/feb-30.toml --skip invalid/local-datetime/feb-29.toml --skip invalid/local-datetime/feb-30.toml --skip valid/datetime/no-seconds.toml --skip invalid/spec/table-9-0.toml --skip invalid/spec/table-9-1.toml --skip valid/inline-table/newline.toml --skip valid/key/unicode.toml --skip invalid/inline-table/duplicate-key-3.toml --skip invalid/inline-table/overwrite-8.toml --skip invalid/table/append-with-dotted-keys-2.toml --skip invalid/table/duplicate-key-dotted-table2.toml --skip invalid/table/duplicate-key-dotted-table.toml --skip invalid/table/redefine-2.toml --skip invalid/table/redefine-3.toml --skip invalid/datetime/feb-29.toml --skip invalid/datetime/feb-30.toml %endif %changelog %autochangelog