# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate interpolator Name: rust-interpolator Version: 0.5.0 Release: %autorelease Summary: Runtime format strings, fully compatible with std's macros License: MIT OR Apache-2.0 URL: https://crates.io/crates/interpolator Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Update proptest-derive dev-dependency from 0.3 to 0.6: # https://github.com/ModProg/interpolator/pull/15; still allow 0.5 for now, # https://bugzilla.redhat.com/show_bug.cgi?id=2370964 Patch: interpolator-fix-metadata.diff # * Downstream-only: ignore test that requires assert-dbg, not in the crate Patch10: 0001-Downstream-only-ignore-test-that-requires-assert-dbg.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Runtime format strings, fully compatible with std's macros.} %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}/CHANGELOG.md %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}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+iter-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+iter-devel %{_description} This package contains library source intended for building other packages which use the "iter" feature of the "%{crate}" crate. %files -n %{name}+iter-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+number-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+number-devel %{_description} This package contains library source intended for building other packages which use the "number" feature of the "%{crate}" crate. %files -n %{name}+number-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pointer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pointer-devel %{_description} This package contains library source intended for building other packages which use the "pointer" feature of the "%{crate}" crate. %files -n %{name}+pointer-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 %cargo_test -a %endif %changelog %autochangelog