# Generated by rust2rpm 26 %bcond_without check Name: atuin Version: 18.3.0 Release: %autorelease Summary: magical shell history %global _license %{shrink: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (BSL-1.0) AND (ISC) AND (MIT) AND (MIT AND BSD-3-Clause) AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR BSD-1-Clause) AND (MIT OR Apache-2.0 OR Zlib) AND (MPL-2.0) AND (Unlicense OR MIT) } License: %_license URL: https://atuin.sh Source: https://github.com/atuinsh/atuin/archive/refs/tags/v%{version}.tar.gz Source: atuin-18.3.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 25 BuildRequires: protobuf-devel %if %{with check} BuildRequires: postgresql-test-rpm-macros %endif %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} %prep %autosetup -n atuin-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install install -Dpm0755 target/rpm/atuin -t %{buildroot}%{_bindir}/ # 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 <