# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate manyhow Name: rust-manyhow Version: 0.11.4 Release: %autorelease Summary: Proc macro error handling à la anyhow x proc-macro-error License: MIT OR Apache-2.0 URL: https://crates.io/crates/manyhow Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Update proc-macro-utils dev-dependency to 0.10.0: # https://github.com/ModProg/manyhow/pull/22 Patch: manyhow-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Proc macro error handling à la anyhow x proc-macro-error.} %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}+darling-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+darling-devel %{_description} This package contains library source intended for building other packages which use the "darling" feature of the "%{crate}" crate. %files -n %{name}+darling-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+darling_core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+darling_core-devel %{_description} This package contains library source intended for building other packages which use the "darling_core" feature of the "%{crate}" crate. %files -n %{name}+darling_core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+macros-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+macros-devel %{_description} This package contains library source intended for building other packages which use the "macros" feature of the "%{crate}" crate. %files -n %{name}+macros-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+syn-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+syn-devel %{_description} This package contains library source intended for building other packages which use the "syn" feature of the "%{crate}" crate. %files -n %{name}+syn-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+syn1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+syn1-devel %{_description} This package contains library source intended for building other packages which use the "syn1" feature of the "%{crate}" crate. %files -n %{name}+syn1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+syn2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+syn2-devel %{_description} This package contains library source intended for building other packages which use the "syn2" feature of the "%{crate}" crate. %files -n %{name}+syn2-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog