%global debug_package %{nil} Name: atuin Version: 18.0.2 Release: 1.20240308173904228221.main.7.g01b216a%{?dist} Summary: Magical shell history License: MIT URL: https://github.com/atuinsh/atuin Source0: v18.0.2.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc %description Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands. Additionally, it provides optional and fully encrypted synchronisation of your history between machines, via an Atuin server. %prep %autosetup -p1 -n atuin-18.0.2 %build cargo build --release for completion in "bash" "fish" "zsh"; do target/release/atuin gen-completions --shell $completion -o . done %install install -Dpm 755 target/release/atuin %{buildroot}%{_bindir}/atuin install -Dpm 644 atuin.bash %{buildroot}%{_datadir}/bash-completion/completions/atuin install -Dpm 644 atuin.bash %{buildroot}%{_datadir}/fish/completions/atuin install -Dpm 644 atuin.bash %{buildroot}%{_datadir}/zsh/site-functions/atuin rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* %files %license LICENSE %doc README.md %{_bindir}/atuin %{_datadir}/bash-completion/completions/atuin %{_datadir}/fish/completions/atuin %{_datadir}/zsh/site-functions/atuin %changelog %autochangelog