# Generated by rust2rpm 27 %bcond check 1 %global crate gimoji Name: rust-gimoji Version: 1.1.1 Release: %autorelease Summary: Easily add emojis to your git commit messages 🎉 License: MIT URL: https://crates.io/crates/gimoji Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Update ratatui to 0.29 # https://github.com/zeenix/gimoji/pull/180 Patch: gimoji-fix-metadata.diff # * Update ratatui to 0.29 # * Cherry-picked from https://github.com/zeenix/gimoji/pull/180 Patch10: 180.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Easily add emojis to your git commit messages 🎉.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-MIT %license LICENSE.dependencies %doc CONTRIBUTING.md %doc README.md %{_bindir}/gimoji %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog