## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate gengo Name: rust-gengo Version: 0.12.0 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 version of rstest 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 ## START: Generated by rpmautospec * Thu Jan 09 2025 Benjamin A. Beasley - 0.12.0-1 - Update to 0.12.0 (close RHBZ#2336477) * Sun Dec 08 2024 Benjamin A. Beasley - 0.11.5-2 - No longer allow older rstest versions * Sun Dec 08 2024 Benjamin A. Beasley - 0.11.5-1 - Initial package (close RHBZ#2326890) ## END: Generated by rpmautospec