# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate value-bag Name: rust-%{crate} Version: 1.0.0~alpha.9 Release: %autorelease Summary: Anonymous structured values # Upstream license specification: Apache-2.0 OR MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/value-bag Source: %{crates_source} # Initial patched metadata # * drop WASM-specific dev-dependencies Patch0: value-bag-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Anonymous structured values.} %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}+erased-serde1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+erased-serde1-devel %{_description} This package contains library source intended for building other packages which use the "erased-serde1" feature of the "%{crate}" crate. %files -n %{name}+erased-serde1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+error-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+error-devel %{_description} This package contains library source intended for building other packages which use the "error" feature of the "%{crate}" crate. %files -n %{name}+error-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 %package -n %{name}+serde1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde1-devel %{_description} This package contains library source intended for building other packages which use the "serde1" feature of the "%{crate}" crate. %files -n %{name}+serde1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1_fmt-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde1_fmt-devel %{_description} This package contains library source intended for building other packages which use the "serde1_fmt" feature of the "%{crate}" crate. %files -n %{name}+serde1_fmt-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1_lib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde1_lib-devel %{_description} This package contains library source intended for building other packages which use the "serde1_lib" feature of the "%{crate}" crate. %files -n %{name}+serde1_lib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sval-devel %{_description} This package contains library source intended for building other packages which use the "sval" feature of the "%{crate}" crate. %files -n %{name}+sval-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sval1-devel %{_description} This package contains library source intended for building other packages which use the "sval1" feature of the "%{crate}" crate. %files -n %{name}+sval1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval1_lib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sval1_lib-devel %{_description} This package contains library source intended for building other packages which use the "sval1_lib" feature of the "%{crate}" crate. %files -n %{name}+sval1_lib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+test-devel %{_description} This package contains library source intended for building other packages which use the "test" feature of the "%{crate}" crate. %files -n %{name}+test-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