From 284190113d579db90a0ba2ca6ce426c2c353f0c2ea5a4f5794926021f1ddb4be Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 6 Apr 2023 13:28:56 +0000 Subject: [PATCH] - Remove HELIX_DISABLE_AUTO_GRAMMAR_BUILD. OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=58 --- helix.changes | 5 +++++ helix.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/helix.changes b/helix.changes index c02d368..0fc57a4 100644 --- a/helix.changes +++ b/helix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 6 13:27:49 UTC 2023 - Soc Virnyl Estela + +- Remove HELIX_DISABLE_AUTO_GRAMMAR_BUILD. + ------------------------------------------------------------------- Thu Apr 6 12:20:41 UTC 2023 - Soc Virnyl Estela diff --git a/helix.spec b/helix.spec index 53116cc..964b092 100644 --- a/helix.spec +++ b/helix.spec @@ -92,10 +92,7 @@ cp %{SOURCE2} .cargo/config.toml sed -e '/^\#\!\/usr\/bin\/env .*/d' -i contrib/completion/hx.* %build -export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true -export HELIX_RUNTIME="%{_builddir}/%{name}-%{version}/runtime" %{cargo_build} -./target/release/hx --grammar build # Shell completions sed -i "s|hx|helix|g" contrib/completion/hx.* @@ -114,6 +111,9 @@ find "%{_builddir}/%{name}-%{version}/runtime/grammars" -type f -name '*.so' -ex install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \; install -Dm644 runtime/tutor -t %{buildroot}%{_helix_runtimedir} +# Not needed during runtime +rm -rfv %{buildroot}%{_helix_runtimedir}/grammars/sources + # Desktop application file install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/Helix.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %suse_update_desktop_file %{name}