7a9a70ff83
* BREAKING CHANGE: switch config/layout/theme language to KDL (https://github.com/zellij-org/zellij/pull/1759) * debugging: Improve error handling in screen thread (https://github.com/zellij-org/zellij/pull/1670) * fix: Server exits when client panics (https://github.com/zellij-org/zellij/pull/1731) * fix: Server panics when writing to suppressed pane (https://github.com/zellij-org/zellij/pull/1749) * debugging: Improve error handling in screen thread private functions (https://github.com/zellij-org/zellij/pull/1770) * fix(nix): add DiskArbitration and Foundation to darwin builds (https://github.com/zellij-org/zellij/pull/1724) * debugging: Remove calls to `panic` in server/tab (https://github.com/zellij-org/zellij/pull/1748) * debugging: Improve error format in server/thread_bus (https://github.com/zellij-org/zellij/pull/1775) * feat: command pane - send commands to Zellij and re-run them with ENTER (https://github.com/zellij-org/zellij/pull/1787) * fix: escape quotes and backslashes when converting YAML to KDL (https://github.com/zellij-org/zellij/pull/1790) * fix: frameless pane wrong size after closing other panes (https://github.com/zellij-org/zellij/pull/1776) * fix: error on mixed nodes in layouts (https://github.com/zellij-org/zellij/pull/1791) * fix: error on duplicate pane_template / tab_template definitions in layouts (https://github.com/zellij-org/zellij/pull/1792) * fix: accept session-name through the cli properly (https://github.com/zellij-org/zellij/pull/1793) * fix: Prevent recursive sessions from layout files (https://github.com/zellij-org/zellij/pull/1766) * fix: better error messages and recovery from layout issues (https://github.com/zellij-org/zellij/pull/1797) * feat: allow layouts to have a global cwd (https://github.com/zellij-org/zellij/pull/1798) * feat: edit panes in layouts (https://github.com/zellij-org/zellij/pull/1799) * debugging: Log `thread_bus` IPC messages only in debug mode (https://github.com/zellij-org/zellij/pull/1800) * feat: improve zellij run CLI (https://github.com/zellij-org/zellij/pull/1804) * docs: Add tips for code contributions to CONTRIBUTING (https://github.com/zellij-org/zellij/pull/1805) * feat: change floating panes to be grouped rather than scattered (https://github.com/zellij-org/zellij/pull/1810) * fix: default to vi editor when we can't an editor in EDITOR or VISUAL and none is configured (https://github.com/zellij-org/zellij/pull/1811) * deps: upgrade log4rs to 1.2.0 (https://github.com/zellij-org/zellij/pull/1814) * feat: allow `DumpScreen` to dump the viewport by default (https://github.com/zellij-org/zellij/pull/1794) * Terminal compatibility: clear scroll region when terminal pane is cleared (https://github.com/zellij-org/zellij/pull/1826) * feat: allow defining tab cwd in layouts (https://github.com/zellij-org/zellij/pull/1828) * debugging: Remove calls to `unwrap` from plugin WASM VM (https://github.com/zellij-org/zellij/pull/1827) * debugging: Improve error handling in `server/route` (https://github.com/zellij-org/zellij/pull/1808) OBS-URL: https://build.opensuse.org/package/show/utilities/zellij?expand=0&rev=40
155 lines
4.6 KiB
RPMSpec
155 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.32.0
|
|
Release: 0
|
|
Summary: Terminal workspace with batteries included
|
|
License: MIT
|
|
URL: https://github.com/zellij-org/zellij
|
|
Source0: https://github.com/zellij-org/zellij/archive/refs/tags/v%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
Source2: cargo_config
|
|
Source3: README.suse-maint.md
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: libgcc_s1
|
|
|
|
%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
|