From 0b9291b42dea433901c57bdafbfc018e5704db842934fd0d43e2a3d7af61406e Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 21 Jun 2024 14:17:41 +0000 Subject: [PATCH] New dependency for neovim. I would rather not maintain this package, as I am only trying to fix #1225887 OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter-query?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + _service | 15 +++++++++++ tree-sitter-query-0.4.0.obscpio | 3 +++ tree-sitter-query.changes | 4 +++ tree-sitter-query.obsinfo | 4 +++ tree-sitter-query.spec | 47 +++++++++++++++++++++++++++++++++ 7 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 tree-sitter-query-0.4.0.obscpio create mode 100644 tree-sitter-query.changes create mode 100644 tree-sitter-query.obsinfo create mode 100644 tree-sitter-query.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..76fcf8a --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + https://github.com/tree-sitter-grammars/tree-sitter-query.git + git + refs/tags/v0.4.0 + @PARENT_TAG@ + v(.*) + + + + *.tar + xz + + + diff --git a/tree-sitter-query-0.4.0.obscpio b/tree-sitter-query-0.4.0.obscpio new file mode 100644 index 0000000..171c237 --- /dev/null +++ b/tree-sitter-query-0.4.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d337fab392cda992c50e96161260cf27d427a378c21c5511d6ccf5213746d92 +size 333323 diff --git a/tree-sitter-query.changes b/tree-sitter-query.changes new file mode 100644 index 0000000..c2f9e35 --- /dev/null +++ b/tree-sitter-query.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 21 11:18:02 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/tree-sitter-query.obsinfo b/tree-sitter-query.obsinfo new file mode 100644 index 0000000..79541ab --- /dev/null +++ b/tree-sitter-query.obsinfo @@ -0,0 +1,4 @@ +name: tree-sitter-query +version: 0.4.0 +mtime: 1716717270 +commit: f767fb0ac5e711b6d44c5e0c8d1f349687a86ce0 diff --git a/tree-sitter-query.spec b/tree-sitter-query.spec new file mode 100644 index 0000000..f8902de --- /dev/null +++ b/tree-sitter-query.spec @@ -0,0 +1,47 @@ +# +# spec file for package tree-sitter-query +# +# Copyright (c) 2024 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/ +# + + +%define _name query +Name: tree-sitter-%{_name} +Version: 0.4.0 +Release: 0 +Summary: TS query grammar for tree-sitter +License: Apache-2.0 +URL: https://github.com/tree-sitter-grammars/tree-sitter-query +Source: %{name}-%{version}.tar.xz +BuildRequires: tree-sitter +%treesitter_grammars %{_name} +%description +A tree-sitter parser for tree-sitter query files (scheme-like). + +%prep +%autosetup -p1 + +%build +%treesitter_configure +%treesitter_build + +%install +%treesitter_install + +%files +%license LICENSE +%doc README.md +%{treesitter_files} + +%changelog