# Generated by rust2rpm 28 # * Nearly all tests require scripts/regenerate_test_rustdocs.sh to be run # first. This, in turn, requires a git repository and is just generally # impractical outside of an upstream git checkout. %bcond check 0 %global debug_package %{nil} %global crate trustfall-rustdoc-adapter Name: rust-trustfall-rustdoc-adapter Version: 57.0.7 Release: %autorelease Summary: Trustfall query adapter for rustdoc JSON data License: Apache-2.0 OR MIT URL: https://crates.io/crates/trustfall-rustdoc-adapter Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove unused, benchmark-only dev-dependency on criterion Patch: trustfall-rustdoc-adapter-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Trustfall query adapter for rustdoc JSON data.} %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}/AGENTS.md %doc %{crate_instdir}/CONTRIBUTING.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}+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 %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