# Generated by rust2rpm 21 %bcond_without check %global crate cfg-if Name: rust-%{crate}0.1 Version: 0.1.10 Release: %mkrel 3 Summary: Macro to ergonomically define an item depending on a large number of #[cfg] parameters Group: Development/Other # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/cfg-if Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildArch: noarch BuildRequires: rust-packaging >= 21 %global _description %{expand: Macro to ergonomically define an item depending on a large number of #[cfg] parameters. Structured like an if-else chain, the first matching branch is the item that gets emitted.} %description %{_description} %package devel Summary: %{summary} Group: Development/Other 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} Group: Development/Other 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}+compiler_builtins-devel Summary: %{summary} Group: Development/Other BuildArch: noarch %description -n %{name}+compiler_builtins-devel %{_description} This package contains library source intended for building other packages which use the "compiler_builtins" feature of the "%{crate}" crate. %files -n %{name}+compiler_builtins-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+core-devel Summary: %{summary} Group: Development/Other BuildArch: noarch %description -n %{name}+core-devel %{_description} This package contains library source intended for building other packages which use the "core" feature of the "%{crate}" crate. %files -n %{name}+core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-dep-of-std-devel Summary: %{summary} Group: Development/Other BuildArch: noarch %description -n %{name}+rustc-dep-of-std-devel %{_description} This package contains library source intended for building other packages which use the "rustc-dep-of-std" feature of the "%{crate}" crate. %files -n %{name}+rustc-dep-of-std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Fri Jun 24 2022 papoteur <papoteur> 0.1.10-3.mga9 + Revision: 1865740 - Mass Rebuild for dependencies * Mon Mar 21 2022 umeabot <umeabot> 0.1.10-2.mga9 + Revision: 1816486 - Mageia 9 Mass Rebuild * Tue Mar 01 2022 guillomovitch <guillomovitch> 0.1.10-1.mga9 + Revision: 1787250 - imported package rust-cfg-if0.1 * Tue Mar 01 2022 Guillaume Rousse <guillomovitch@gmail.com> - 0.1.10-1 - Initial package