%global debug_package %{nil} 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. %prep %autosetup -p1 %cargo_prep %build %cargo_build # Generate shell completions #./%{name} setup --generate-completion bash > %{name}.bash #./%{name} setup --generate-completion fish > %{name}.fish %install %cargo_install #strip --strip-all %{buildroot}%{_bindir}/* # Shell completions #install -pvD -m 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} #install -pvD -m 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish %files %{_bindir}/%{name} #%{bash_completions_dir}/%{name} #%{fish_completions_dir}/%{name}.fish