%global debug_package %{nil} # Online build is now default (enable_net=True required in Copr). # Local vendored builds can use: # rpmbuild -ba --with vendored zellij.spec %bcond_with vendored %{!?bash_completions_dir:%global bash_completions_dir %{_datadir}/bash-completion/completions} %{!?fish_completions_dir:%global fish_completions_dir %{_datadir}/fish/vendor_completions.d} %{!?zsh_completions_dir:%global zsh_completions_dir %{_datadir}/zsh/site-functions} Name: zellij Version: 0.44.1 Release: 2%{?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#/zellij-%{version}.tar.gz %if %{with vendored} Source1: %{name}-%{version}-vendor.tar.zst %endif BuildRequires: rust BuildRequires: cargo BuildRequires: gcc BuildRequires: python3-devel BuildRequires: cmake BuildRequires: openssl-devel BuildRequires: perl-devel BuildRequires: openssl-perl BuildRequires: perl-FindBin BuildRequires: perl-IPC-Cmd BuildRequires: perl-Time-Piece BuildRequires: zstd %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, with layouts and plugins. %prep %autosetup -n %{name}-%{version} # Kill the toolchain file so rustup doesn't attempt network access rm -f rust-toolchain.toml %if %{with vendored} # Unpacking SOURCE1 safely extracts 'vendor/' AND the correct '.cargo/config.toml' # generated by the Makefile. Do NOT overwrite it. tar -xaf %{SOURCE1} %endif %build export CARGO_HOME=$PWD/.cargo-home export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 %if %{with vendored} export CARGO_NET_OFFLINE=true cargo build --release --frozen --offline %else cargo build --release %endif %install install -Dpm 0755 target/release/zellij %{buildroot}%{_bindir}/zellij mkdir -p %{buildroot}%{bash_completions_dir} mkdir -p %{buildroot}%{fish_completions_dir} mkdir -p %{buildroot}%{zsh_completions_dir} target/release/zellij setup --generate-completion bash \ > %{buildroot}%{bash_completions_dir}/zellij target/release/zellij setup --generate-completion fish \ > %{buildroot}%{fish_completions_dir}/zellij.fish target/release/zellij setup --generate-completion zsh \ > %{buildroot}%{zsh_completions_dir}/_zellij %files %license LICENSE.md %doc README.md %{_bindir}/zellij %{bash_completions_dir}/zellij %{fish_completions_dir}/zellij.fish %{zsh_completions_dir}/_zellij %changelog * Tue May 05 2026 sachesi - 0.44.1-3 - Default to online build (--without vendored). Set enable_net=True in Copr. * Tue Apr 28 2026 sachesi - 0.44.1-2 - Generate bash, fish and zsh completions from the built zellij binary - Stop installing static completion helper files from zellij-utils/assets/completions - Enable vendored/offline builds by default for COPR/mock without network access * Thu Apr 23 2026 sachesi - 0.44.1-1 - Switch to vendored offline COPR build