- Separate runtime files. They make this whole package too huge.

- Update service file
- Update of vendored dependencies

OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=26
This commit is contained in:
Soc Virnyl Estela 2022-08-28 13:34:19 +00:00 committed by Git OBS Bridge
parent 1e94942ff5
commit f5871decdc
7 changed files with 29 additions and 23 deletions

View File

@ -1,18 +1,7 @@
<services>
<service mode="disabled" name="download_url">
<param name="prefer-old">true</param>
<param name="protocol">https</param>
<param name="host">github.com</param>
<param name="path">helix-editor/helix/releases/download/22.05/helix-22.05-source.tar.xz</param>
</service>
<service mode="disabled" name="set_version"/>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">helix</param>
<param name="compression">xz</param>
<param name="compression">gz</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">

3
helix-22.05.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96603cf5504bbd7ebeee1867d65356cccaa2877f697da50c0ad3789a3eb287e4
size 1734836

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a68b8576e0cf0757a3debbc6cf7e2691585b8027ecec623acbb7853177d948da
size 66646816

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Aug 28 13:21:54 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Separate runtime files. They make this whole package too huge.
- Update service file
- Update of vendored dependencies
-------------------------------------------------------------------
Mon Jun 20 03:28:41 UTC 2022 - William Brown <william.brown@suse.com>

View File

@ -24,13 +24,14 @@ Release: 0
Summary: A post-modern modal text editor written in Rust
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
URL: https://github.com/helix-editor/helix
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: cargo_config
Source3: helix-rpmlintrc
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: cargo-packaging
Suggests: %{name}-runtime
ExclusiveArch: %{rust_arches}
%description
@ -42,6 +43,16 @@ has treesitter support for syntax highlighting and improved navigation
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
%package runtime
Summary: Runtime files for %{name}
Suggests: %{name}
%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`.
%build
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true
%{cargo_build}
@ -64,15 +75,14 @@ ln -sv %{_libdir}/%{name}/hx %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md
%dir %{_libdir}/%{name}
# hx symlinked as helix
%{_bindir}/%{name}
# The real hx binary
%{_libdir}/%{name}/hx
%files runtime
# Runtimes and runtime files
%dir %{_libdir}/%{name}
%dir %{_sharedstatedir}/%{name}
%dir %{_helix_runtimedir}
%dir %{_helix_runtimedir}/queries

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85f229e1177d40df2f7d6be7f06a36d0342b3a306d7907ec267ccd1007977bc9
size 23456536

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35200e80fcba5b3a81421dbbb7d58135bff91013f52fdfdab2764ca82698c7cc
size 14422572