# Generated by rust2rpm 27 # * outdated dev-dependencies: notify %bcond check 0 %global debug_package %{nil} %global crate config Name: rust-config Version: 0.15.11 Release: %autorelease Summary: Layered configuration system for Rust applications License: MIT OR Apache-2.0 URL: https://crates.io/crates/config Source: %{crates_source} # * Switch yaml-rust2 dependency to saphyr # * Cherry-picked from https://github.com/rust-cli/config-rs/pull/656 Patch10: 656.patch BuildRequires: cargo-rpm-macros >= 24 %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}/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}+async-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-devel %{_description} This package contains library source intended for building other packages which use the "async" feature of the "%{crate}" crate. %files -n %{name}+async-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-trait-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-trait-devel %{_description} This package contains library source intended for building other packages which use the "async-trait" feature of the "%{crate}" crate. %files -n %{name}+async-trait-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+convert-case-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+convert-case-devel %{_description} This package contains library source intended for building other packages which use the "convert-case" feature of the "%{crate}" crate. %files -n %{name}+convert-case-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+convert_case-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+convert_case-devel %{_description} This package contains library source intended for building other packages which use the "convert_case" feature of the "%{crate}" crate. %files -n %{name}+convert_case-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-rust2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-rust2-devel %{_description} This package contains library source intended for building other packages which use the "yaml-rust2" feature of the "%{crate}" crate. %files -n %{name}+yaml-rust2-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