From 55352033886ea6cef2611e886587bc404b889ec279d8d9b82554eb46e168cf2f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 21 Apr 2022 16:40:05 +0000 Subject: [PATCH] - add README.SUSE: * contains information on workarounds and how to run helix - remove %post message from spec file OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=9 --- README.SUSE | 45 +++++++++++++++++++++++++++++++++++++++++++++ helix.changes | 6 ++++++ helix.spec | 11 +---------- 3 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 README.SUSE diff --git a/README.SUSE b/README.SUSE new file mode 100644 index 0000000..10d37bd --- /dev/null +++ b/README.SUSE @@ -0,0 +1,45 @@ +HELIX EDITOR FOR YOUR INFORMATION + +Soc Virnyl Estela + +This is a small document that explains how to run/use helix. +Because of the limitations of cargo-packaging in openSUSE Build Service, +we have to resort on some workarounds before running helix. + +TABLE OF CONTENTS + + The Name of the launcher binary + Before running helix + Fetching and building grammars + Troubleshooting + Documentation + +THE NAME OF THE LAUNCHER BINARY + +The launcher binary is renamed as 'helix', alias hx='helix' if you were using 'hx'. + +BEFORE RUNNING HELIX + +Helix needs its runtime files so make sure to copy/symlink the runtime/ directory +into the config directory (for example ~/.config/helix/runtime).If you see an error when +launching helix, copy the runtime directory. +Runtime directory is found in '/usr/lib64/helix/runtime'. + +FETCHING AND BUILDING GRAMMARS + +Run 'helix --grammar fetch' then 'helix --grammar build' to install the grammars. +To customize language-specific settings, you can copy '/usr/share/doc/packages/helix/languages.toml' +to '~/.helix/' or '~/.config/helix'. + +TROUBLESHOOTING + +If you see an error when launching helix for the first time, it might be +because you did not copy the runtime directory. +Otherwise, open an issue at: + + https://github.com/helix-editor/helix/issues/new + +DOCUMENTATION + + https://docs.helix-editor.com + diff --git a/helix.changes b/helix.changes index bfaa93f..a6a5770 100644 --- a/helix.changes +++ b/helix.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 21 16:38:20 UTC 2022 - Soc Virnyl Estela + +- add README.SUSE +- remove %post message from spec file + ------------------------------------------------------------------- Thu Apr 21 12:13:46 UTC 2022 - Soc Virnyl Estela diff --git a/helix.spec b/helix.spec index 1c10b37..3b3b7f3 100644 --- a/helix.spec +++ b/helix.spec @@ -58,18 +58,9 @@ ln -sv %{_helix_runtimedir} %{buildroot}%{_libdir}/%{name}/runtime install -D -d -m 0755 %{buildroot}%{_bindir} install -Dm755 %{SOURCE3} %{buildroot}%{_bindir}/%{name} -%post -p /bin/bash -MESSAGE="The launcher binary is renamed as 'helix', alias hx='helix' if you were using 'hx'. -Helix also needs its runtime files so make sure to copy/symlink the runtime/ directory into the config directory (for example ~/.config/helix/runtime). -If you see an error when launching helix, copy the runtime directory. Runtime directory is found in '/usr/lib64/helix/runtime'. -Then run 'helix --grammar fetch' then 'helix --grammar build' to install the grammars. -To customize language-specific settings, you can copy '/usr/share/doc/packages/helix/languages.toml' -to '~/.helix/' or '~/.config/helix'. More information can be found in https://docs.helix-editor.com/languages.html" -echo -e "${MESSAGE}" - %files %license LICENSE -%doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md +%doc README.md README.SUSE CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md %{_bindir}/%{name} %dir %{_sharedstatedir}/%{name} %dir %{_helix_runtimedir}