SHA256
1
0
forked from pool/helix

Accepting request 979976 from home:uncomfyhalomacro:branches:editors

- remove false positive by adding filter to shared-library-without-dependency-information

OBS-URL: https://build.opensuse.org/request/show/979976
OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=22
This commit is contained in:
Soc Virnyl Estela 2022-05-30 23:08:10 +00:00 committed by Git OBS Bridge
parent a0d368c169
commit 99fe475412
3 changed files with 98 additions and 68 deletions

View File

@ -1 +1,3 @@
addFilter("files-duplicate")
addFilter("shared-library-without-dependency-information")

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 30 23:06:18 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- remove false positive by adding filter to shared-library-without-dependency-information
-------------------------------------------------------------------
Sun May 29 16:53:38 UTC 2022 - socvirnyl.estela@gmail.com

View File

@ -48,18 +48,25 @@ export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=true
HELIX_RUNTIME="$PWD/runtime" ./target/release/hx --grammar build
%install
# Debug info for helix's runtime grammars is not needed nor make sense
%global __debug_install_post %{nil}
%global debug_package %{nil}
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_helix_runtimedir}
install -m 0755 %{_builddir}/%{name}/target/release/hx %{buildroot}%{_libdir}/%{name}/hx
cp -rv "runtime/queries" %{buildroot}%{_helix_runtimedir}
cp -rv "runtime/themes" %{buildroot}%{_helix_runtimedir}
find "%{_builddir}/%{name}/runtime/grammars" -type f -name '*.so' -exec \
install -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
install --verbose -Dm 755 {} -t "%{buildroot}%{_helix_runtimedir}/grammars" \;
install -Dm644 runtime/tutor.txt -t %{buildroot}%{_helix_runtimedir}
ln -sv %{_helix_runtimedir} %{buildroot}%{_libdir}/%{name}/runtime
install -D -d -m 0755 %{buildroot}%{_bindir}
ln -sv %{_libdir}/%{name}/hx %{buildroot}%{_bindir}/%{name}
# HACK for disabling debuginfo?
touch %{_builddir}/%{name}/debugsourcefiles.list
%files
%license LICENSE
%doc README.md CHANGELOG.md languages.toml docs/CONTRIBUTING.md docs/architecture.md docs/vision.md
@ -71,84 +78,100 @@ ln -sv %{_libdir}/%{name}/hx %{buildroot}%{_bindir}/%{name}
%{_libdir}/%{name}/hx
# Runtimes and runtime files
%dir %{_libdir}/%{name}/
%dir %{_sharedstatedir}/%{name}/
%dir %{_libdir}/%{name}
%dir %{_sharedstatedir}/%{name}
%dir %{_helix_runtimedir}
%dir %{_helix_runtimedir}/queries
%dir %{_helix_runtimedir}/themes
%dir %{_helix_runtimedir}/grammars
# Grammars
%{_helix_runtimedir}/grammars/rust.so
%{_helix_runtimedir}/grammars/tablegen.so
%{_helix_runtimedir}/grammars/regex.so
%{_helix_runtimedir}/grammars/c.so
%{_helix_runtimedir}/grammars/protobuf.so
%{_helix_runtimedir}/grammars/haskell.so
%{_helix_runtimedir}/grammars/ledger.so
%{_helix_runtimedir}/grammars/elixir.so
%{_helix_runtimedir}/grammars/fish.so
%{_helix_runtimedir}/grammars/embedded-template.so
%{_helix_runtimedir}/grammars/tsq.so
%{_helix_runtimedir}/grammars/graphql.so
%{_helix_runtimedir}/grammars/vue.so
%{_helix_runtimedir}/grammars/sql.so
%{_helix_runtimedir}/grammars/python.so
%{_helix_runtimedir}/grammars/svelte.so
%{_helix_runtimedir}/grammars/iex.so
%{_helix_runtimedir}/grammars/json.so
%{_helix_runtimedir}/grammars/rescript.so
%{_helix_runtimedir}/grammars/git-diff.so
%{_helix_runtimedir}/grammars/bash.so
%{_helix_runtimedir}/grammars/tsx.so
%{_helix_runtimedir}/grammars/dart.so
%{_helix_runtimedir}/grammars/javascript.so
%{_helix_runtimedir}/grammars/ocaml-interface.so
%{_helix_runtimedir}/grammars/cpp.so
%{_helix_runtimedir}/grammars/git-commit.so
%{_helix_runtimedir}/grammars/r.so
%{_helix_runtimedir}/grammars/gdscript.so
%{_helix_runtimedir}/grammars/comment.so
%{_helix_runtimedir}/grammars/latex.so
%{_helix_runtimedir}/grammars/eex.so
%{_helix_runtimedir}/grammars/git-rebase.so
%{_helix_runtimedir}/grammars/julia.so
%{_helix_runtimedir}/grammars/toml.so
%{_helix_runtimedir}/grammars/llvm.so
%{_helix_runtimedir}/grammars/php.so
%{_helix_runtimedir}/grammars/perl.so
%{_helix_runtimedir}/grammars/go.so
%{_helix_runtimedir}/grammars/nix.so
%{_helix_runtimedir}/grammars/gleam.so
%{_helix_runtimedir}/grammars/erlang.so
%{_helix_runtimedir}/grammars/solidity.so
%{_helix_runtimedir}/grammars/cmake.so
%{_helix_runtimedir}/grammars/glsl.so
%{_helix_runtimedir}/grammars/typescript.so
%{_helix_runtimedir}/grammars/zig.so
%{_helix_runtimedir}/grammars/llvm-mir.so
%{_helix_runtimedir}/grammars/markdown.so
%{_helix_runtimedir}/grammars/make.so
%{_helix_runtimedir}/grammars/ocaml.so
%{_helix_runtimedir}/grammars/heex.so
%{_helix_runtimedir}/grammars/css.so
%{_helix_runtimedir}/grammars/lua.so
%{_helix_runtimedir}/grammars/swift.so
%{_helix_runtimedir}/grammars/dockerfile.so
%{_helix_runtimedir}/grammars/elm.so
%{_helix_runtimedir}/grammars/scala.so
%{_helix_runtimedir}/grammars/wgsl.so
%{_helix_runtimedir}/grammars/html.so
%{_helix_runtimedir}/grammars/ruby.so
%{_helix_runtimedir}/grammars/c-sharp.so
%{_helix_runtimedir}/grammars/lean.so
%{_helix_runtimedir}/grammars/c.so
%{_helix_runtimedir}/grammars/cairo.so
%{_helix_runtimedir}/grammars/cmake.so
%{_helix_runtimedir}/grammars/comment.so
%{_helix_runtimedir}/grammars/cpon.so
%{_helix_runtimedir}/grammars/cpp.so
%{_helix_runtimedir}/grammars/css.so
%{_helix_runtimedir}/grammars/dart.so
%{_helix_runtimedir}/grammars/devicetree.so
%{_helix_runtimedir}/grammars/dockerfile.so
%{_helix_runtimedir}/grammars/eex.so
%{_helix_runtimedir}/grammars/elixir.so
%{_helix_runtimedir}/grammars/elm.so
%{_helix_runtimedir}/grammars/embedded-template.so
%{_helix_runtimedir}/grammars/erlang.so
%{_helix_runtimedir}/grammars/fish.so
%{_helix_runtimedir}/grammars/gdscript.so
%{_helix_runtimedir}/grammars/git-commit.so
%{_helix_runtimedir}/grammars/git-config.so
%{_helix_runtimedir}/grammars/kotlin.so
%{_helix_runtimedir}/grammars/twig.so
%{_helix_runtimedir}/grammars/git-diff.so
%{_helix_runtimedir}/grammars/git-rebase.so
%{_helix_runtimedir}/grammars/gitattributes.so
%{_helix_runtimedir}/grammars/gitignore.so
%{_helix_runtimedir}/grammars/gleam.so
%{_helix_runtimedir}/grammars/glsl.so
%{_helix_runtimedir}/grammars/go.so
%{_helix_runtimedir}/grammars/gomod.so
%{_helix_runtimedir}/grammars/gowork.so
%{_helix_runtimedir}/grammars/graphql.so
%{_helix_runtimedir}/grammars/hare.so
%{_helix_runtimedir}/grammars/haskell.so
%{_helix_runtimedir}/grammars/hcl.so
%{_helix_runtimedir}/grammars/org.so
%{_helix_runtimedir}/grammars/yaml.so
%{_helix_runtimedir}/grammars/heex.so
%{_helix_runtimedir}/grammars/html.so
%{_helix_runtimedir}/grammars/iex.so
%{_helix_runtimedir}/grammars/java.so
%{_helix_runtimedir}/grammars/javascript.so
%{_helix_runtimedir}/grammars/json.so
%{_helix_runtimedir}/grammars/julia.so
%{_helix_runtimedir}/grammars/kotlin.so
%{_helix_runtimedir}/grammars/latex.so
%{_helix_runtimedir}/grammars/lean.so
%{_helix_runtimedir}/grammars/ledger.so
%{_helix_runtimedir}/grammars/llvm-mir.so
%{_helix_runtimedir}/grammars/llvm.so
%{_helix_runtimedir}/grammars/lua.so
%{_helix_runtimedir}/grammars/make.so
%{_helix_runtimedir}/grammars/markdown.so
%{_helix_runtimedir}/grammars/meson.so
%{_helix_runtimedir}/grammars/nickel.so
%{_helix_runtimedir}/grammars/nix.so
%{_helix_runtimedir}/grammars/nu.so
%{_helix_runtimedir}/grammars/ocaml-interface.so
%{_helix_runtimedir}/grammars/ocaml.so
%{_helix_runtimedir}/grammars/odin.so
%{_helix_runtimedir}/grammars/org.so
%{_helix_runtimedir}/grammars/perl.so
%{_helix_runtimedir}/grammars/php.so
%{_helix_runtimedir}/grammars/protobuf.so
%{_helix_runtimedir}/grammars/python.so
%{_helix_runtimedir}/grammars/r.so
%{_helix_runtimedir}/grammars/regex.so
%{_helix_runtimedir}/grammars/rescript.so
%{_helix_runtimedir}/grammars/ruby.so
%{_helix_runtimedir}/grammars/rust.so
%{_helix_runtimedir}/grammars/scala.so
%{_helix_runtimedir}/grammars/scheme.so
%{_helix_runtimedir}/grammars/solidity.so
%{_helix_runtimedir}/grammars/sql.so
%{_helix_runtimedir}/grammars/sshclientconfig.so
%{_helix_runtimedir}/grammars/svelte.so
%{_helix_runtimedir}/grammars/swift.so
%{_helix_runtimedir}/grammars/tablegen.so
%{_helix_runtimedir}/grammars/toml.so
%{_helix_runtimedir}/grammars/tsq.so
%{_helix_runtimedir}/grammars/tsx.so
%{_helix_runtimedir}/grammars/twig.so
%{_helix_runtimedir}/grammars/typescript.so
%{_helix_runtimedir}/grammars/vala.so
%{_helix_runtimedir}/grammars/verilog.so
%{_helix_runtimedir}/grammars/vue.so
%{_helix_runtimedir}/grammars/wgsl.so
%{_helix_runtimedir}/grammars/yaml.so
%{_helix_runtimedir}/grammars/zig.so
# Queries
%{_helix_runtimedir}/queries/bash