Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package helix for openSUSE:Factory checked in at 2022-10-22 15:59:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/helix (Old) and /work/SRC/openSUSE:Factory/.helix.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "helix" Sat Oct 22 15:59:58 2022 rev:7 rq:1030522 version:22.08.1 Changes: -------- --- /work/SRC/openSUSE:Factory/helix/helix.changes 2022-09-15 22:59:17.717233161 +0200 +++ /work/SRC/openSUSE:Factory/.helix.new.2275/helix.changes 2022-10-22 16:00:00.474631518 +0200 @@ -1,0 +2,7 @@ +Sat Oct 15 10:16:46 UTC 2022 - Soc Virnyl Estela <socvirnyl.est...@gmail.com> + +- Add shell completions for bash, fish and zsh. +- Add desktop application entry and icon. +- Increase memory to 8G and storage to 16G in _constraints file. + +------------------------------------------------------------------- New: ---- _constraints ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ helix.spec ++++++ --- /var/tmp/diff_new_pack.z9QHJl/_old 2022-10-22 16:00:01.710633427 +0200 +++ /var/tmp/diff_new_pack.z9QHJl/_new 2022-10-22 16:00:01.730633458 +0200 @@ -39,6 +39,36 @@ A kakoune/neovim inspired modal text editor with built-in LSP and has treesitter support for syntax highlighting and improved navigation +%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}. + %prep %autosetup -a1 -c -n %{name}-%{version} mkdir -p .cargo @@ -59,6 +89,12 @@ %{cargo_build} HELIX_RUNTIME="$PWD/runtime" ./target/release/hx --grammar build +# Shell completions +sed -i "s|hx|helix|g" contrib/completion/hx.* + +# Desktop file +sed -i "s|hx|helix|g" contrib/Helix.desktop + %install mkdir -p %{buildroot}%{_libdir}/%{name} mkdir -p %{buildroot}%{_helix_runtimedir} @@ -72,14 +108,33 @@ install -D -d -m 0755 %{buildroot}%{_bindir} ln -sv %{_libdir}/%{name}/hx %{buildroot}%{_bindir}/%{name} +# Desktop application file +install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/Helix.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop + +# Icon +install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png + +# Shell completions +install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/completion/hx.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} +install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/completion/hx.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish +install -Dm644 -T %{_builddir}/%{name}-%{version}/contrib/completion/hx.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name} + + %files %license LICENSE %doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md %dir %{_libdir}/%{name} + +# Desktop application file +%{_datadir}/pixmaps/* +%{_datadir}/applications/* + # hx symlinked as helix %{_bindir}/%{name} + # The real hx binary %{_libdir}/%{name}/hx + # Tutor %{_helix_runtimedir}/tutor.txt @@ -103,4 +158,15 @@ # Symlinked runtime directory %{_libdir}/%{name}/runtime +%files bash-completion +%{_datadir}/bash-completion/* + +%files fish-completion +%dir %{_datadir}/fish +%{_datadir}/fish/* + +%files zsh-completion +%dir %{_datadir}/zsh +%{_datadir}/zsh/* + %changelog ++++++ _constraints ++++++ <?xml version="1.0"?> <constraints> <hardware> <physicalmemory> <size unit="G">8</size> </physicalmemory> <disk> <size unit="G">16</size> </disk> </hardware> </constraints>