2022-04-20 13:56:13 +02:00
|
|
|
#
|
|
|
|
# spec file for package helix
|
|
|
|
#
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2022-05-19 03:49:22 +02:00
|
|
|
|
2022-05-30 16:50:15 +02:00
|
|
|
%global _helix_runtimedir %{_sharedstatedir}/%{name}/runtime
|
2022-04-20 13:56:13 +02:00
|
|
|
|
|
|
|
Name: helix
|
- Update to version 22.08.1:
* Patch release that fixes a panic caused by closing splits or buffers (#3633)
- Other changes before the patch release (22.08):
* Breaking changes:
- Special keymap names for +, ; and % have been replaced with those literal characters (#2677, #3556)
- A-Left and A-Right have become C-Left and C-Right for word-wise motion (#2500)
- The catppuccin theme's name has been corrected from catpuccin (#2713)
- catppuccin has been replaced by its variants, catppuccin_frappe, catppuccin_latte,
catppuccin_macchiato, catppuccin_mocha (#3281)
- C-n and C-p have been removed from the default insert mode keymap (#3340)
- The extend_line command has been replaced with extend_line_below and
a new extend_line command now exists (#3046)
* Features:
- Add an integration testing harness (#2359)
- Indent guides (#1796, 906259c)
- Cursorline (#2170, fde9e03)
- Select all instances of the symbol under the cursor (<space>h) (#2738)
- A picker for document and workspace LSP diagnostics (<space>g/<space>G) (#2013, #2984)
- Allow styling the mode indicator per-mode (#2676)
- Live preview for the theme picker (#1798)
- Configurable statusline (#2434)
- LSP SignatureHelp (#1755, a8b123f)
- A picker for the jumplist (#3033)
- Configurable external formatter binaries (#2942)
- Bracketed paste support (#3233, 12ddd03)
* Commands:
- :insert-output and :append-output which insert/append output from a shell command (#2589)
- The t textobject (]t/[t/mit/mat) for navigating tests (#2807)
- C-Backspace and C-Delete for word-wise deletion in prompts and pickers (#2500)
- A-Delete for forward word-wise deletion in insert mode (#2500)
OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=32
2022-09-03 14:46:25 +02:00
|
|
|
Version: 22.08.1
|
2022-04-20 13:56:13 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A post-modern modal text editor written in Rust
|
2022-05-01 08:56:15 +02:00
|
|
|
License: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT or Unlicense) AND (Zlib OR Apache-2.0 OR MIT) AND Apache-2.0 AND BSL-1.0 AND ISC AND MIT AND MPL-2.0+ AND Zlib AND MPL-2.0
|
2022-05-19 03:49:22 +02:00
|
|
|
URL: https://github.com/helix-editor/helix
|
- Update to version 22.08.1:
* Patch release that fixes a panic caused by closing splits or buffers (#3633)
- Other changes before the patch release (22.08):
* Breaking changes:
- Special keymap names for +, ; and % have been replaced with those literal characters (#2677, #3556)
- A-Left and A-Right have become C-Left and C-Right for word-wise motion (#2500)
- The catppuccin theme's name has been corrected from catpuccin (#2713)
- catppuccin has been replaced by its variants, catppuccin_frappe, catppuccin_latte,
catppuccin_macchiato, catppuccin_mocha (#3281)
- C-n and C-p have been removed from the default insert mode keymap (#3340)
- The extend_line command has been replaced with extend_line_below and
a new extend_line command now exists (#3046)
* Features:
- Add an integration testing harness (#2359)
- Indent guides (#1796, 906259c)
- Cursorline (#2170, fde9e03)
- Select all instances of the symbol under the cursor (<space>h) (#2738)
- A picker for document and workspace LSP diagnostics (<space>g/<space>G) (#2013, #2984)
- Allow styling the mode indicator per-mode (#2676)
- Live preview for the theme picker (#1798)
- Configurable statusline (#2434)
- LSP SignatureHelp (#1755, a8b123f)
- A picker for the jumplist (#3033)
- Configurable external formatter binaries (#2942)
- Bracketed paste support (#3233, 12ddd03)
* Commands:
- :insert-output and :append-output which insert/append output from a shell command (#2589)
- The t textobject (]t/[t/mit/mat) for navigating tests (#2807)
- C-Backspace and C-Delete for word-wise deletion in prompts and pickers (#2500)
- A-Delete for forward word-wise deletion in insert mode (#2500)
OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=32
2022-09-03 14:46:25 +02:00
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}-source.tar.xz#/%{name}-%{version}.tar.xz
|
2022-08-28 16:06:56 +02:00
|
|
|
Source1: vendor.tar.xz
|
2022-04-20 13:56:13 +02:00
|
|
|
Source2: cargo_config
|
2022-05-30 16:50:15 +02:00
|
|
|
Source3: helix-rpmlintrc
|
2022-09-15 02:36:55 +02:00
|
|
|
Source4: README-suse-maint.md
|
2022-05-30 16:50:15 +02:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: c_compiler
|
2022-04-20 13:56:13 +02:00
|
|
|
BuildRequires: cargo-packaging
|
2022-08-28 15:34:19 +02:00
|
|
|
Suggests: %{name}-runtime
|
2022-05-19 03:45:13 +02:00
|
|
|
ExclusiveArch: %{rust_arches}
|
2022-04-20 13:56:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A kakoune/neovim inspired modal text editor with built-in LSP and
|
|
|
|
has treesitter support for syntax highlighting and improved navigation
|
|
|
|
|
|
|
|
%prep
|
2022-08-28 16:06:56 +02:00
|
|
|
%autosetup -a1 -c -n %{name}-%{version}
|
2022-04-20 13:56:13 +02:00
|
|
|
mkdir -p .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
|
|
|
|
2022-08-28 16:06:56 +02:00
|
|
|
%package runtime
|
|
|
|
Summary: Runtime files for %{name}
|
|
|
|
Suggests: %{name}
|
2022-08-28 15:34:19 +02:00
|
|
|
|
|
|
|
%description runtime
|
|
|
|
Helix runtime files. Separated due to how huge the runtime files are.
|
|
|
|
The runtime contains tree-sitter and grammars that makes run helix normally
|
|
|
|
if there is no runtime present in the users config directory specifically
|
|
|
|
`XDG_CONFIG_HOME/helix`.
|
|
|
|
|
2022-04-20 13:56:13 +02:00
|
|
|
%build
|
|
|
|
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true
|
2022-05-30 16:50:15 +02:00
|
|
|
%{cargo_build}
|
|
|
|
HELIX_RUNTIME="$PWD/runtime" ./target/release/hx --grammar build
|
2022-04-20 13:56:13 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_helix_runtimedir}
|
2022-08-28 16:13:36 +02:00
|
|
|
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/hx %{buildroot}%{_libdir}/%{name}/hx
|
2022-04-20 13:56:13 +02:00
|
|
|
cp -rv "runtime/queries" %{buildroot}%{_helix_runtimedir}
|
|
|
|
cp -rv "runtime/themes" %{buildroot}%{_helix_runtimedir}
|
2022-08-28 16:23:29 +02:00
|
|
|
find "%{_builddir}/%{name}-%{version}/runtime/grammars" -type f -name '*.so' -exec \
|
2022-05-31 01:08:10 +02:00
|
|
|
install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
|
2022-04-20 13:56:13 +02:00
|
|
|
install -Dm644 runtime/tutor.txt -t %{buildroot}%{_helix_runtimedir}
|
|
|
|
ln -sv %{_helix_runtimedir} %{buildroot}%{_libdir}/%{name}/runtime
|
|
|
|
install -D -d -m 0755 %{buildroot}%{_bindir}
|
2022-05-30 16:50:15 +02:00
|
|
|
ln -sv %{_libdir}/%{name}/hx %{buildroot}%{_bindir}/%{name}
|
2022-04-20 13:56:13 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2022-05-30 16:50:15 +02:00
|
|
|
%doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md
|
2022-08-28 15:34:19 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
2022-05-30 16:50:15 +02:00
|
|
|
# hx symlinked as helix
|
2022-04-20 13:56:13 +02:00
|
|
|
%{_bindir}/%{name}
|
2022-05-30 16:50:15 +02:00
|
|
|
# The real hx binary
|
|
|
|
%{_libdir}/%{name}/hx
|
2022-09-08 00:13:21 +02:00
|
|
|
# Tutor
|
|
|
|
%{_helix_runtimedir}/tutor.txt
|
2022-05-30 16:50:15 +02:00
|
|
|
|
2022-08-28 15:34:19 +02:00
|
|
|
%files runtime
|
2022-05-30 16:50:15 +02:00
|
|
|
# Runtimes and runtime files
|
2022-05-31 01:08:10 +02:00
|
|
|
%dir %{_sharedstatedir}/%{name}
|
2022-04-20 13:56:13 +02:00
|
|
|
%dir %{_helix_runtimedir}
|
|
|
|
%dir %{_helix_runtimedir}/queries
|
|
|
|
%dir %{_helix_runtimedir}/themes
|
2022-05-30 16:59:42 +02:00
|
|
|
%dir %{_helix_runtimedir}/grammars
|
2022-04-20 13:56:13 +02:00
|
|
|
|
2022-05-30 16:59:42 +02:00
|
|
|
# Grammars
|
2022-09-03 15:34:47 +02:00
|
|
|
%{_helix_runtimedir}/grammars/*
|
2022-05-30 16:59:42 +02:00
|
|
|
|
|
|
|
# Queries
|
2022-09-03 15:34:47 +02:00
|
|
|
%{_helix_runtimedir}/queries/*
|
2022-05-30 16:59:42 +02:00
|
|
|
|
|
|
|
# Themes
|
2022-09-03 15:34:47 +02:00
|
|
|
%{_helix_runtimedir}/themes/*
|
|
|
|
|
2022-05-30 16:50:15 +02:00
|
|
|
# Symlinked runtime directory
|
2022-04-20 13:56:13 +02:00
|
|
|
%{_libdir}/%{name}/runtime
|
|
|
|
|
|
|
|
%changelog
|