# Generated by rust2rpm 27 # * missing dev-dependency: tryfn ^0.2.1 %bcond check 0 %global debug_package %{nil} %global crate annotate-snippets Name: rust-annotate-snippets Version: 0.11.5 Release: %autorelease Summary: Library for building code annotations License: MIT OR Apache-2.0 URL: https://crates.io/crates/annotate-snippets Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only divan dev-dependency Patch: annotate-snippets-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Library for building code annotations.} %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}+memchr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+memchr-devel %{_description} This package contains library source intended for building other packages which use the "memchr" feature of the "%{crate}" crate. %files -n %{name}+memchr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+simd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+simd-devel %{_description} This package contains library source intended for building other packages which use the "simd" feature of the "%{crate}" crate. %files -n %{name}+simd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+testing-colors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing-colors-devel %{_description} This package contains library source intended for building other packages which use the "testing-colors" feature of the "%{crate}" crate. %files -n %{name}+testing-colors-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