2022-07-26 17:17:08 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2022-07-29 14:53:01 +02:00
|
|
|
|
2022-10-04 17:35:56 +02:00
|
|
|
%bcond_with test
|
2022-07-26 17:17:08 +02:00
|
|
|
Name: zellij
|
2022-09-25 09:06:32 +02:00
|
|
|
Version: 0.31.4
|
2022-07-26 17:17:08 +02:00
|
|
|
Release: 0
|
2022-07-29 14:53:01 +02:00
|
|
|
Summary: Terminal workspace with batteries included
|
2022-07-26 17:17:08 +02:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/zellij-org/zellij
|
|
|
|
Source0: https://github.com/zellij-org/zellij/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: vendor.tar.gz
|
|
|
|
Source2: cargo_config
|
2022-07-29 14:53:01 +02:00
|
|
|
Source3: README.suse-maint.md
|
2022-07-26 17:17:08 +02:00
|
|
|
BuildRequires: cargo-packaging
|
2022-10-04 06:44:38 +02:00
|
|
|
BuildRequires: libgcc_s1
|
2022-10-09 04:31:26 +02:00
|
|
|
BuildRequires: mandown
|
2022-08-20 08:38:34 +02:00
|
|
|
BuildRequires: rust+cargo >= 1.62
|
2022-10-10 12:21:27 +02:00
|
|
|
ExclusiveArch: %{rust_tier1_arches}
|
2022-07-26 17:17:08 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2022-07-29 14:53:01 +02:00
|
|
|
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
|
2022-07-26 17:17:08 +02:00
|
|
|
infrastructure layer.
|
|
|
|
|
2022-07-29 14:53:01 +02:00
|
|
|
Zellij includes a layout system, and a plugin system allowing one to create plugins in any
|
2022-07-26 17:17:08 +02:00
|
|
|
language that compiles to WebAssembly.
|
|
|
|
|
2022-10-04 17:35:56 +02:00
|
|
|
%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}.
|
|
|
|
|
2022-07-26 17:17:08 +02:00
|
|
|
%prep
|
|
|
|
%autosetup -a1
|
2022-07-29 14:56:04 +02:00
|
|
|
mkdir -p .cargo
|
2022-07-26 17:17:08 +02:00
|
|
|
cp %{SOURCE2} .cargo/config
|
2022-08-03 12:11:22 +02:00
|
|
|
# Remove prebuilt binaries
|
2022-10-09 04:07:00 +02:00
|
|
|
rm assets/plugins/*
|
2022-07-26 17:17:08 +02:00
|
|
|
|
|
|
|
%build
|
2022-08-03 12:11:22 +02:00
|
|
|
# First rebuilt plugins we just deleted
|
|
|
|
# Note: RUSTFLAGS break linking with WASM-files, so we don't use the cargo_build-macro here
|
2022-10-09 04:11:47 +02:00
|
|
|
pushd default-plugins/compact-bar
|
|
|
|
cargo --offline build --release --target=wasm32-wasi
|
|
|
|
popd
|
2022-10-09 04:07:00 +02:00
|
|
|
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
|
2022-10-09 04:11:47 +02:00
|
|
|
|
2022-08-03 12:11:22 +02:00
|
|
|
# Move the results to the place they are expected
|
2022-10-09 04:07:00 +02:00
|
|
|
mv target/wasm32-wasi/release/*.wasm assets/plugins/
|
2022-08-03 12:11:22 +02:00
|
|
|
|
|
|
|
# Build zellij proper
|
2022-10-09 04:07:00 +02:00
|
|
|
%{cargo_build} --features unstable
|
2022-10-04 17:35:56 +02:00
|
|
|
./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
|
2022-10-09 06:51:57 +02:00
|
|
|
mandown docs/MANPAGE.md > target/zellij.1
|
2022-07-26 17:17:08 +02:00
|
|
|
|
|
|
|
%install
|
2022-10-06 00:25:22 +02:00
|
|
|
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
|
2022-10-09 04:56:11 +02:00
|
|
|
install -Dm644 -T ./target/zellij.1 %{buildroot}%{_mandir}/man1/zellij.1
|
2022-10-09 04:07:00 +02:00
|
|
|
%{cargo_install} --features unstable
|
2022-07-26 17:17:08 +02:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
2022-10-05 01:04:11 +02:00
|
|
|
%{cargo_test}
|
2022-07-26 17:17:08 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/zellij
|
2022-10-09 07:42:59 +02:00
|
|
|
%{_mandir}/man1/zellij.1%{?ext_man}
|
2022-07-26 17:17:08 +02:00
|
|
|
%license LICENSE.md
|
2022-10-09 04:31:26 +02:00
|
|
|
%doc README.md docs/ARCHITECTURE.md docs/MANPAGE.md docs/TERMINOLOGY.md docs/THIRD_PARTY_INSTALL.md
|
2022-07-26 17:17:08 +02:00
|
|
|
|
2022-10-04 17:35:56 +02:00
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion/*
|
|
|
|
|
|
|
|
%files fish-completion
|
2022-10-04 18:13:21 +02:00
|
|
|
%dir %{_datadir}/fish
|
2022-10-04 17:35:56 +02:00
|
|
|
%{_datadir}/fish/*
|
|
|
|
|
|
|
|
%files zsh-completion
|
2022-10-04 18:13:21 +02:00
|
|
|
%dir %{_datadir}/zsh
|
2022-10-04 17:35:56 +02:00
|
|
|
%{_datadir}/zsh/*
|
|
|
|
|
2022-07-26 17:17:08 +02:00
|
|
|
%changelog
|