Name: zellij Version: 0.43.0 Release: 1%{?dist} Summary: A terminal workspace with batteries included. License: MIT URL: https://github.com/zellij-org/zellij Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 %description Zellij is a workspace aimed at developers, ops-oriented people and anyone who loves the terminal. At its core, it is a terminal multiplexer (similar to tmux and screen), but this is merely its infrastructure layer. Zellij includes a layout system, and a plugin system allowing one to create plugins in any language that compiles to WebAssembly. %package bash-completion Summary: Bash Completion for %{name} Requires: bash-completion BuildArch: noarch %description bash-completion Bash command-line completion support for %{name}. %package fish-completion Summary: Fish Completion for %{name} Requires: fish BuildArch: noarch %description fish-completion Fish command-line completion support for %{name}. %prep %autosetup -p1 %build cargo xtask format cargo xtask build # Generate shell completions ./target/release/%{name} setup --generate-completion bash > target/%{name}.bash" ./target/release/%{name} setup --generate-completion fish > target/%{name}.fish %install cargo xtask install --no-web #strip --strip-all %{buildroot}%{_bindir}/* # Shell completions install -pvD -m 0644 target/%{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -pvD -m 0644 target/%{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish %files %{_bindir}/%{name} %files bash-completion %{_datadir}/bash-completion/* %files fish-completion %dir %{_datadir}/fish %{_datadir}/fish/*