# Generated by rust2rpm 26 %bcond_without check # prevent library files from being installed %global cargo_install_lib 0 %global crate atuin Name: rust-atuin Version: 18.2.0 Release: %autorelease Summary: magical shell history License: MIT URL: https://crates.io/crates/atuin Source: atuin-18.2.0.crate Source: atuin-18.2.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: 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.} %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 %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/atuin %{_datadir}/bash-completion/completions/atuin %{_datadir}/fish/completions/atuin %{_datadir}/zsh/site-functions/atuin %config %{_sysconfdir}/profile.d/atuin.sh %prep %autosetup -n atuin-18.2.0 -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install # Generate all of the shell-completions for completion in bash fish zsh; do %{buildroot}%{_bindir}/atuin gen-completions --shell $completion -o . done install -Dpm 644 atuin.bash %{buildroot}%{_datadir}/bash-completion/completions/atuin install -Dpm 644 atuin.fish %{buildroot}%{_datadir}/fish/completions/atuin install -Dpm 644 _atuin %{buildroot}%{_datadir}/zsh/site-functions/atuin # Add atuin to default profile mkdir -p %{buildroot}%{_sysconfdir}/profile.d cat > %{buildroot}%{_sysconfdir}/profile.d/atuin.sh <