From 786eb33a43e51a017824dabbeeaa09a5d851e7fca99815befa10be4411c4facf Mon Sep 17 00:00:00 2001
From: Soc Virnyl Estela <socvirnyl.estela@gmail.com>
Date: Sun, 9 Oct 2022 02:07:00 +0000
Subject: [PATCH] - Explicitly just enable unstable features with `--features
 unstable` - Rebuild wasm-wasi plugins manually.

OBS-URL: https://build.opensuse.org/package/show/utilities/zellij?expand=0&rev=25
---
 zellij.changes |  6 ++++++
 zellij.spec    | 26 +++++++++++++-------------
 2 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/zellij.changes b/zellij.changes
index 58597e5..10d1d00 100644
--- a/zellij.changes
+++ b/zellij.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Sun Oct  9 02:05:25 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
+
+- Explicitly just enable unstable features with `--features unstable`
+- Rebuild wasm-wasi plugins manually.
+
 -------------------------------------------------------------------
 Sat Oct  8 10:51:51 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
 
diff --git a/zellij.spec b/zellij.spec
index 05b31b9..5f51982 100644
--- a/zellij.spec
+++ b/zellij.spec
@@ -78,25 +78,25 @@ Zsh command-line completion support for %{name}.
 mkdir -p .cargo
 cp %{SOURCE2} .cargo/config
 # Remove prebuilt binaries
-# rm assets/plugins/*
+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/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
+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/
+mv target/wasm32-wasi/release/*.wasm assets/plugins/
 
 # Build zellij proper
-%{cargo_build} --all-features
+%{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
@@ -105,7 +105,7 @@ cp %{SOURCE2} .cargo/config
 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
-%{cargo_install} --all-features
+%{cargo_install} --features unstable
 
 %if %{with test}
 %check