# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate config Name: rust-%{crate} Version: 0.12.0 Release: %autorelease Summary: Layered configuration system for Rust applications # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/config Source: %{crates_source} # adjust hard deps of reqwest/warp to allow slightly newer minor revs Patch0: config-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Layered configuration system for Rust applications.} %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}+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}+ini-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ini-devel %{_description} This package contains library source intended for building other packages which use the "ini" feature of the "%{crate}" crate. %files -n %{name}+ini-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json-devel %{_description} This package contains library source intended for building other packages which use the "json" feature of the "%{crate}" crate. %files -n %{name}+json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json5-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json5-devel %{_description} This package contains library source intended for building other packages which use the "json5" feature of the "%{crate}" crate. %files -n %{name}+json5-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+json5_rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+json5_rs-devel %{_description} This package contains library source intended for building other packages which use the "json5_rs" feature of the "%{crate}" crate. %files -n %{name}+json5_rs-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 %package -n %{name}+ron-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ron-devel %{_description} This package contains library source intended for building other packages which use the "ron" feature of the "%{crate}" crate. %files -n %{name}+ron-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust-ini-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rust-ini-devel %{_description} This package contains library source intended for building other packages which use the "rust-ini" feature of the "%{crate}" crate. %files -n %{name}+rust-ini-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+toml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+toml-devel %{_description} This package contains library source intended for building other packages which use the "toml" feature of the "%{crate}" crate. %files -n %{name}+toml-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+yaml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-devel %{_description} This package contains library source intended for building other packages which use the "yaml" feature of the "%{crate}" crate. %files -n %{name}+yaml-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+yaml-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-rust-devel %{_description} This package contains library source intended for building other packages which use the "yaml-rust" feature of the "%{crate}" crate. %files -n %{name}+yaml-rust-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog