%global debug_package %{nil} Name: zoxide Version: 0.9.4 Release: 1%{?dist} Summary: A smarter cd command. Supports all major shells. License: MIT URL: https://github.com/ajeetdsouza/%{name} Source: https://github.com/ajeetdsouza/%{name}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cargo BuildRequires: rust %description zoxide is a smarter cd command, inspired by z and autojump. It remembers which directories you use most frequently, so you can "jump" to them in just a few keystrokes. zoxide works on all major shells. %prep %autosetup -n %{name}-%{version} %build cargo build --release --locked %install install -Dpm 0755 target/release/%{name} -t %{buildroot}%{_bindir}/ install -Dpm 0644 man/man1/*.1 -t %{buildroot}/%{_mandir}/man1/ %files %license LICENSE %doc CHANGELOG.md README.md %{_bindir}/%{name} %{_mandir}/man1/zoxide.1* %{_mandir}/man1/zoxide-add.1* %{_mandir}/man1/zoxide-import.1* %{_mandir}/man1/zoxide-init.1* %{_mandir}/man1/zoxide-query.1* %{_mandir}/man1/zoxide-remove.1* %changelog * Mon Jun 17 2024 Andrey Brusnik - 0.9.4-1 - feat: Added zoxide package