# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate bon Name: rust-bon Version: 3.3.2 Release: %autorelease Summary: Next-gen builder generator, named function's arguments, and more! License: MIT OR Apache-2.0 URL: https://crates.io/crates/bon Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Next-gen compile-time-checked builder generator, named function's arguments, and more!.} %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 %{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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+experimental-getter-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+experimental-getter-devel %{_description} This package contains library source intended for building other packages which use the "experimental-getter" feature of the "%{crate}" crate. %files -n %{name}+experimental-getter-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+experimental-overwritable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+experimental-overwritable-devel %{_description} This package contains library source intended for building other packages which use the "experimental-overwritable" feature of the "%{crate}" crate. %files -n %{name}+experimental-overwritable-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+implied-bounds-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+implied-bounds-devel %{_description} This package contains library source intended for building other packages which use the "implied-bounds" feature of the "%{crate}" crate. %files -n %{name}+implied-bounds-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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check # skip trybuild tests that fail due to missing test fixtures (from from fedora's rust-derive_more package) %cargo_test -a -- --lib %endif %changelog %autochangelog