diff --git a/.files b/.files
index 3296545..1cfda20 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 8fc0b0a..7bc5ba2 100644
--- a/.rev
+++ b/.rev
@@ -7,4 +7,12 @@
I want to maintain zellij in openSUSE:Factory991453
+
+ 2e2f4d3804d905ad3220d3b6744de4e5
+ 0.31.0
+
+ dimstar_suse
+
+ 992545
+
diff --git a/.servicemark b/.servicemark
new file mode 100644
index 0000000..cd7fba3
--- /dev/null
+++ b/.servicemark
@@ -0,0 +1 @@
+deae55651572344575c97b37a10b7e21
diff --git a/README.suse-maint.md b/README.suse-maint.md
new file mode 100644
index 0000000..00fd484
--- /dev/null
+++ b/README.suse-maint.md
@@ -0,0 +1,11 @@
+1. Install `rpmdevtools`
+2. If updating a version, modify the Version string.
+3. Run `rpmdev-spectool -g zellij.spec` and remove the previous version tar ball.
+4. Add the new tarball and extract it
+5. Move the extracted `zellij-` as `zellij`.
+6. Run `osc service disabledrun`
+
+Then add version changes with `osc vc` and then `osc ci`
+
+
+
diff --git a/_constraints b/_constraints
new file mode 100644
index 0000000..bed8e5e
--- /dev/null
+++ b/_constraints
@@ -0,0 +1,8 @@
+
+
+
+
+ 8
+
+
+
diff --git a/_service b/_service
new file mode 100644
index 0000000..e1588f3
--- /dev/null
+++ b/_service
@@ -0,0 +1,11 @@
+
+
+ zellij
+ gz
+ true
+
+
+ zellij
+
+
+
diff --git a/vendor.tar.gz b/vendor.tar.gz
index 55391b0..65a1439 120000
--- a/vendor.tar.gz
+++ b/vendor.tar.gz
@@ -1 +1 @@
-/ipfs/bafybeigdwudjsrxzdnj7yuuve4a2hyhwcb3ayqjl46isqu3uhvn6udau3e
\ No newline at end of file
+/ipfs/bafybeieedwxug5mskaeb3qwnw7qymoui7zc63usuoqe52ytgs3rynbzdnq
\ No newline at end of file
diff --git a/zellij-0.30.0.tar.gz b/zellij-0.30.0.tar.gz
deleted file mode 120000
index c492219..0000000
--- a/zellij-0.30.0.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeid4wuwedeon4kfywz65fmkt4wz5fjxxxkgk45q3h7j5w32vv6vzye
\ No newline at end of file
diff --git a/zellij-0.31.0.tar.gz b/zellij-0.31.0.tar.gz
new file mode 120000
index 0000000..c88e123
--- /dev/null
+++ b/zellij-0.31.0.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeibgrjy4tbfzp3dvjuxe4q2n2vzhv5hb3u65snbpxtoiqezyuguhxa
\ No newline at end of file
diff --git a/zellij.changes b/zellij.changes
index 7285030..49a46df 100644
--- a/zellij.changes
+++ b/zellij.changes
@@ -1,4 +1,49 @@
-------------------------------------------------------------------
+Mon Aug 1 07:38:35 UTC 2022 - Guillaume GARDET
+
+- Add _constraints to avoid OOM
+
+-------------------------------------------------------------------
+Fri Jul 29 12:35:43 UTC 2022 - Soc Virnyl Estela
+
+- Bump version to 0.31.0:
+ * feat: Log errors causing "empty message received from client" (https://github.com/zellij-org/zellij/pull/1459)
+ * chore(dependencies): update `crossbeam` `0.8.0` -> `0.8.1` (https://github.com/zellij-org/zellij/pull/1463)
+ * add(option): `default-layout` setting for changing the default layout upon start, example: `default_layout: compact` (https://github.com/zellij-org/zellij/pull/1467)
+ * fix: many typos (https://github.com/zellij-org/zellij/pull/1481)
+ * add: checksum for release binary (https://github.com/zellij-org/zellij/pull/1482)
+ * fix: update cli tooltips (https://github.com/zellij-org/zellij/pull/1488)
+ * refactor: deduplicate code in `screen.rs` (https://github.com/zellij-org/zellij/pull/1453)
+ * chore(dependencies): update `clap`: `3.1.18` -> `3.2.2` (https://github.com/zellij-org/zellij/pull/1496)
+ * fix: send `WriteChars:` once per action (https://github.com/zellij-org/zellij/pull/1516)
+ * feat: allow swapping tabs, in a fullscreen pane (https://github.com/zellij-org/zellij/pull/1515)
+ * feat: add action of undo renmae (https://github.com/zellij-org/zellij/pull/1513)
+ * fix(docs): fix macport installation instructions (https://github.com/zellij-org/zellij/pull/1529)
+ * feat: allow hex colors for themes (https://github.com/zellij-org/zellij/pull/1536)
+ * fix: client hang when server is killed / shutdown delay (https://github.com/zellij-org/zellij/pull/1535)
+ * fix: properly handle in-place editor in full-screen (https://github.com/zellij-org/zellij/pull/1544)
+ * Terminal compatibility: properly trim whitespace in lines with wide-characters when resizing panes (https://github.com/zellij-org/zellij/pull/1545)
+ * fix: reset scroll properly when typing in certain edge cases (https://github.com/zellij-org/zellij/pull/1547)
+ * fix: logging may fill up /tmp, now logs are capped at 100 kB (https://github.com/zellij-org/zellij/pull/1548)
+ * fix: crash when terminal rows or columns are 0 (https://github.com/zellij-org/zellij/pull/1552)
+ * refactor: moved shared data structures to zellij-utils (https://github.com/zellij-org/zellij/pull/1541)
+ * feat: support displaying images/video in the terminal with sixel graphics (https://github.com/zellij-org/zellij/pull/1557)
+ * fix: add usage comment to fish `auto-start` script (https://github.com/zellij-org/zellij/pull/1583)
+ * fix: refactor match session name (https://github.com/zellij-org/zellij/pull/1582)
+ * fix: print "Session detached" rather than "Bye from Zellij!" when detaching from a session (https://github.com/zellij-org/zellij/pull/1573#issuecomment-1181562138)
+ * performance: improve terminal responsiveness (https://github.com/zellij-org/zellij/pull/1585 and https://github.com/zellij-org/zellij/pull/1610)
+ * Terminal compatibility: persist cursor show/hide across alternate screen (https://github.com/zellij-org/zellij/pull/1586)
+ * fix: support multi-argument EDITOR/VISUAL/scrollback-editor commands (https://github.com/zellij-org/zellij/pull/1587)
+ * fix: avoid sending mouse click events on pane frames to applications (https://github.com/zellij-org/zellij/pull/1584)
+ * feat: search through terminal scrollback (https://github.com/zellij-org/zellij/pull/1521)
+ * feat: support themes directory (https://github.com/zellij-org/zellij/pull/1577)
+ * feat: Improve logging by writing server panics into the logfile (https://github.com/zellij-org/zellij/pull/1602)
+ * fix: reflect configured keybindings in the status bar (https://github.com/zellij-org/zellij/pull/1242)
+ * add: capability to dispatch actions from the cli (https://github.com/zellij-org/zellij/pull/1265)
+
+- add README.suse-maint.md
+
+-------------------------------------------------------------------
Fri Jul 22 08:03:02 UTC 2022 - Soc Virnyl Estela
- Initial spec for zellij 0.30.0
diff --git a/zellij.spec b/zellij.spec
index 58faabc..29dc933 100644
--- a/zellij.spec
+++ b/zellij.spec
@@ -15,16 +15,19 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+
%bcond_with test
Name: zellij
-Version: 0.30.0
+Version: 0.31.0
Release: 0
-Summary: Terminal workspace with batteries included
+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#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: cargo_config
+Source3: README.suse-maint.md
+BuildRequires: rust+cargo >= 1.62
BuildRequires: cargo-packaging
ExclusiveArch: %{rust_tier1_arches}
%if %{with test}
@@ -32,27 +35,44 @@ 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
+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
+Zellij includes a layout system, and a plugin system allowing one to create plugins in any
language that compiles to WebAssembly.
%prep
%autosetup -a1
-mkdir .cargo
+mkdir -p .cargo
cp %{SOURCE2} .cargo/config
+# Remove prebuilt binaries
+rm assets/plugins/*
%build
-%{cargo_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/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} --all-features
%install
-%{cargo_install}
+%{cargo_install} --all-features
%if %{with test}
%check
-%{cargo_test}
+%{cargo_test} --all-features
%endif
%files