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 BuildRequires: protobuf-compiler BuildRequires: openssl-devel BuildRequires: python3-devel BuildRequires: perl-devel BuildRequires: openssl-perl BuildRequires: perl-FindBin BuildRequires: perl-IPC-Cmd %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 #cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" ##%build ###cargo xtask build --release --no-web # Generate shell completions ##./target/release/%{name} setup --generate-completion bash > target/%{name}.bash" ##./target/release/%{name} setup --generate-completion fish > target/%{name}.fish %install export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 cargo install --root=%{buildroot}%{_prefix} --path=. rm -f %{buildroot}%{_prefix}/.crates.toml \ %{buildroot}%{_prefix}/.crates2.json strip --strip-all %{buildroot}%{_bindir}/* #install -Dm755 %{buildroot}/target/release/%{name} %{_bindir} #strip --strip-all %{buildroot}%{_bindir}/%{name} # 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/*