6b05ca28e5
* debugging: improve error handling in `zellij_server::pty` (https://github.com/zellij-org/zellij/pull/1840) * feat: allow command panes to optionally close on exit (https://github.com/zellij-org/zellij/pull/1869) * add: everforest-dark, everforest-light themes to the example theme directory (https://github.com/zellij-org/zellij/pull/1873) * feat: support multiple themes in one file (https://github.com/zellij-org/zellij/pull/1855) * debugging: Remove calls to unwrap in `zellij_server::ui::*` (https://github.com/zellij-org/zellij/pull/1870) * debugging: Remove calls to unwrap in `zellij_server::pty_writer` (https://github.com/zellij-org/zellij/pull/1872) * docs(example): update the format of the themes for the example directory (https://github.com/zellij-org/zellij/pull/1877) * debugging: Remove calls to unwrap in `zellij_server::terminal_bytes` (https://github.com/zellij-org/zellij/pull/1876) * debugging: Remove calls to unwrap in `zellij_server::output` (https://github.com/zellij-org/zellij/pull/1878) * fix: resolve `zellij setup --clean` panic (https://github.com/zellij-org/zellij/pull/1882) * feat: allow toggling mouse mode at runtime (https://github.com/zellij-org/zellij/pull/1883) * fix: display status bar properly if limited to only 1 line (https://github.com/zellij-org/zellij/pull/1875) * feat: allow starting command panes suspended (https://github.com/zellij-org/zellij/pull/1887) * debugging: Remove calls to unwrap in `zellij_server::os_input_output` (https://github.com/zellij-org/zellij/pull/1895) * fix: remove space key from shared_except (https://github.com/zellij-org/zellij/pull/1884) * fix: clear search when sending terminating char (https://github.com/zellij-org/zellij/pull/1853) * fix: properly convert the backslash key from old YAML config files (https://github.com/zellij-org/zellij/pull/1879) * fix: clear floating panes indication when closing a floating command pane (https://github.com/zellij-org/zellij/pull/1897) * Terminal compatibility: do not reset bold when resetting DIM (https://github.com/zellij-org/zellij/pull/1803) * fix: Do not advertise 24 bit color support unchecked (https://github.com/zellij-org/zellij/pull/1900) * fix: treat CWD properly when opening your editor through `zellij edit` or `ze` (https://github.com/zellij-org/zellij/pull/1904) * fix: allow cli actions to be run outside of a tty environment (https://github.com/zellij-org/zellij/pull/1905) * Terminal compatibility: send focus in/out events to terminal panes (https://github.com/zellij-org/zellij/pull/1908) * fix: various bugs with no-frames and floating panes (https://github.com/zellij-org/zellij/pull/1909) * debugging: Improve error logging in server (https://github.com/zellij-org/zellij/pull/1881) * docs: add kanagawa theme (https://github.com/zellij-org/zellij/pull/1913) * fix: use 'temp_dir' instead of hard-coded '/tmp/' (https://github.com/zellij-org/zellij/pull/1898) * debugging: Don't strip debug symbols from release binaries (https://github.com/zellij-org/zellij/pull/1916) * deps: upgrade termwiz to 0.19.0 and rust MSRV to 1.60.0 (https://github.com/zellij-org/zellij/pull/1896) OBS-URL: https://build.opensuse.org/package/show/utilities/zellij?expand=0&rev=42
154 lines
4.6 KiB
RPMSpec
154 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package zellij
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_with test
|
|
Name: zellij
|
|
Version: 0.33.0
|
|
Release: 0
|
|
Summary: Terminal workspace with batteries included
|
|
License: MIT
|
|
URL: https://github.com/zellij-org/zellij
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
Source2: cargo_config
|
|
Source3: README.suse-maint.md
|
|
BuildRequires: cargo-packaging
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
BuildRequires: mandown
|
|
%endif
|
|
|
|
BuildRequires: rust+cargo >= 1.59
|
|
ExclusiveArch: %{rust_tier1_arches}
|
|
%if %{with test}
|
|
BuildRequires: pkgconfig(openssl)
|
|
%endif
|
|
|
|
%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}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and bash-completion)
|
|
Requires: bash-completion
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
Bash command-line completion support for %{name}.
|
|
|
|
%package fish-completion
|
|
Summary: Fish Completion for %{name}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and fish)
|
|
Requires: fish
|
|
BuildArch: noarch
|
|
|
|
%description fish-completion
|
|
Fish command-line completion support for %{name}.
|
|
|
|
%package zsh-completion
|
|
Summary: Zsh Completion for %{name}
|
|
Group: System/Shells
|
|
Supplements: (%{name} and zsh)
|
|
Requires: zsh
|
|
BuildArch: noarch
|
|
|
|
%description zsh-completion
|
|
Zsh command-line completion support for %{name}.
|
|
|
|
%prep
|
|
%autosetup -a1
|
|
mkdir -p .cargo
|
|
cp %{SOURCE2} .cargo/config
|
|
# Remove prebuilt binaries
|
|
rm assets/plugins/*
|
|
|
|
%build
|
|
# First rebuilt plugins we just deleted
|
|
# Note: RUSTFLAGS break linking with WASM-files, so we don't use the cargo_build-macro here
|
|
pushd default-plugins/compact-bar
|
|
cargo --offline build --release --target=wasm32-wasi
|
|
popd
|
|
pushd default-plugins/status-bar
|
|
cargo --offline build --release --target=wasm32-wasi
|
|
popd
|
|
pushd default-plugins/tab-bar
|
|
cargo --offline build --release --target=wasm32-wasi
|
|
popd
|
|
pushd default-plugins/strider
|
|
cargo --offline build --release --target=wasm32-wasi
|
|
popd
|
|
|
|
# Move the results to the place they are expected
|
|
mv target/wasm32-wasi/release/*.wasm assets/plugins/
|
|
|
|
# Build zellij proper
|
|
%{cargo_build} --features unstable
|
|
./target/release/zellij setup --generate-completion bash > target/zellij.bash
|
|
./target/release/zellij setup --generate-completion fish > target/zellij.fish
|
|
./target/release/zellij setup --generate-completion zsh > target/zellij.zsh
|
|
mandown docs/MANPAGE.md > target/zellij.1
|
|
|
|
%install
|
|
install -Dm644 -T ./target/zellij.bash %{buildroot}%{_datadir}/bash-completion/completions/zellij
|
|
install -Dm644 -T ./target/zellij.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/zellij.fish
|
|
install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions/_zellij
|
|
install -Dm644 -T %{_builddir}/%{name}-%{version}/assets/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
install -Dm644 -T %{_builddir}/%{name}-%{version}/assets/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
install -Dm644 -T ./target/zellij.1 %{buildroot}%{_mandir}/man1/zellij.1
|
|
%endif
|
|
|
|
%{cargo_install} --features unstable
|
|
%if %{with test}
|
|
%check
|
|
%{cargo_test}
|
|
%endif
|
|
|
|
%files
|
|
%{_bindir}/zellij
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/applications/*
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
%{_mandir}/man1/zellij.1%{?ext_man}
|
|
%endif
|
|
|
|
%license LICENSE.md
|
|
%doc README.md docs/ARCHITECTURE.md docs/MANPAGE.md docs/TERMINOLOGY.md docs/THIRD_PARTY_INSTALL.md
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion/*
|
|
|
|
%files fish-completion
|
|
%dir %{_datadir}/fish
|
|
%{_datadir}/fish/*
|
|
|
|
%files zsh-completion
|
|
%dir %{_datadir}/zsh
|
|
%{_datadir}/zsh/*
|
|
|
|
%changelog
|