# Generated by rust2rpm 20 # The rstest dev-dependency has cyclic deps %bcond_with check %global crate zoxide Name: rust-%{crate} Version: 0.8.0 Release: %autorelease Summary: Smarter cd command for your terminal # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/zoxide Source: %{crates_source} # Initial patched metadata # * Update clap to 3.0.0, https://github.com/ajeetdsouza/zoxide/commit/b6b024c452635d672e3dc58707ef86cb944a52ab Patch0: zoxide-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Smarter cd command for your terminal.} %description %{_description} %package -n %{crate} Summary: %{summary} # CC0 # MIT # MIT or ASL 2.0 # Unlicense or MIT License: MIT and CC0 # For interactive mode Recommends: fzf %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/zoxide %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %if %{with check} echo '/usr/bin/bash' echo '/usr/bin/fish' echo '/usr/bin/shellcheck' echo '/usr/bin/xonsh' echo '/usr/bin/zsh' %endif %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog