# Generated by rust2rpm 27 %bcond check 1 Name: atuin Version: 18.3.0 Release: %autorelease Summary: Magical shell history SourceLicense: MIT %global _license %{shrink: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0) AND (Apache-2.0 AND MIT) 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 (ISC) AND (ISC AND MIT AND OpenSSL) AND (MIT) AND (MIT AND (MIT OR Apache-2.0)) AND (MIT AND Apache-2.0) AND (MIT AND BSD-3-Clause) AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (MPL-2.0) AND (Unlicense OR MIT) AND (Zlib) AND (Zlib OR Apache-2.0 OR MIT) } License: %_license URL: https://atuin.sh Source: https://github.com/atuinsh/atuin/archive/refs/tags/v%{version}.tar.gz # * Switch cli-clipboard for arboard # * Cherry-picked from https://github.com/atuinsh/atuin/pull/2067 Patch10: atuin-drop-cli-clipboard.patch # * Update tonic and prost dependencies # * Cherry-picked from https://github.com/atuinsh/atuin/pull/2250 and # https://github.com/atuinsh/atuin/pull/2251 Patch11: atuin-bump-tonic.patch # * Bump metrics dependencies # * Cherry-picked from https://github.com/atuinsh/atuin/pull/2062 Patch12: atuin-fix-metrics.patch # * Update tiny-bip39 to 2.0.0 # * Cherry-picked https://github.com/atuinsh/atuin/pull/2643 Patch13: atuin-Update-tiny-bip39.patch # * Update tracing-tree to 0.4.0 # * Cherry-picked https://github.com/atuinsh/atuin/pull/2259 Patch14: atuin-update-tracing-tree.patch BuildRequires: cargo-rpm-macros >= 24 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 synchronization of your history between machines, via an Atuin server. } %description %{_description} %package all-users Summary: atuin init script for all users Requires: atuin = %{version}-%{release} BuildArch: noarch # TODO: Add Requires/Recommends to bash-preexec %description all-users %{_description} This package contains the init script to enable atuin for all users. %prep %autosetup -n atuin-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %{cargo_license_summary -a} %{cargo_license -a} > LICENSE.dependencies # Create auxiliary files mkdir -p other_installs/shell_completion # Generate all shell-completions for shell in bash fish zsh; do ./target/rpm/atuin gen-completions --shell ${shell} -o other_installs/shell_completion done # Write the atuin init scripts statically mkdir -p other_installs/libexec/atuin for shell in bash fish zsh; do ./target/rpm/atuin init ${shell} > other_installs/libexec/atuin/atuin-init.${shell} done # Write the profile.d files enabling the install for all users # Currently only bash is supported mkdir -p other_installs/profile.d cat > other_installs/profile.d/atuin.sh <