# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate bon Name: rust-bon Version: 3.9.0 Release: %autorelease Summary: Compile-time-checked builder generator License: MIT OR Apache-2.0 URL: https://crates.io/crates/bon Source: %{crates_source} # * https://github.com/elastio/bon/issues/375 Source10: https://github.com/elastio/bon/raw/refs/tags/v3.9.0/LICENSE-APACHE # * https://github.com/elastio/bon/issues/375 Source11: https://github.com/elastio/bon/raw/refs/tags/v3.9.0/LICENSE-MIT 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 %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}+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-generics-setters-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+experimental-generics-setters-devel %{_description} This package contains library source intended for building other packages which use the "experimental-generics-setters" feature of the "%{crate}" crate. %files -n %{name}+experimental-generics-setters-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 cp -pav %{SOURCE10} %{SOURCE11} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # ignore failures in brittle compiler error UI tests export TRYBUILD=overwrite %cargo_test %endif %changelog %autochangelog