# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate trustfall_rustdoc Name: rust-trustfall_rustdoc Version: 0.38.0 Release: %autorelease Summary: Run Trustfall queries across multiple rustdoc JSON format versions License: Apache-2.0 OR MIT URL: https://crates.io/crates/trustfall_rustdoc Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Exclude maintainer scripts in scripts/ from the crate Patch: trustfall_rustdoc-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Run Trustfall queries across multiple rustdoc JSON format versions.} %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}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustc-hash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-hash-devel %{_description} This package contains library source intended for building other packages which use the "rustc-hash" feature of the "%{crate}" crate. %files -n %{name}+rustc-hash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v56-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v56-devel %{_description} This package contains library source intended for building other packages which use the "v56" feature of the "%{crate}" crate. %files -n %{name}+v56-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v57-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v57-devel %{_description} This package contains library source intended for building other packages which use the "v57" feature of the "%{crate}" crate. %files -n %{name}+v57-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