# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate gengo Name: rust-gengo Version: 0.11.5 Release: %autorelease Summary: Get the language distribution stats of your repository License: MIT OR Apache-2.0 URL: https://crates.io/crates/gengo Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Allow an older rstest until it can be updated Patch: gengo-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: Get the language distribution stats of your repository.} %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}/crates-io.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}+max-performance-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+max-performance-devel %{_description} This package contains library source intended for building other packages which use the "max-performance" feature of the "%{crate}" crate. %files -n %{name}+max-performance-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+max-performance-safe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+max-performance-safe-devel %{_description} This package contains library source intended for building other packages which use the "max-performance-safe" feature of the "%{crate}" crate. %files -n %{name}+max-performance-safe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+owo-colors-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+owo-colors-devel %{_description} This package contains library source intended for building other packages which use the "owo-colors" feature of the "%{crate}" crate. %files -n %{name}+owo-colors-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Do not depend on criterion; it is needed only for benchmarks. tomcli set Cargo.toml del dev-dependencies.criterion %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * The test test_git_javascript only works in a git checkout, using the # test/javascript branch. See .github/workflows/ci.yml in git for an idea of # how this is supposed to work. %cargo_test -- -- --exact --skip test_git_javascript %endif %changelog %autochangelog