From 2d7286e7f911c51b38ed0938ec2598ff0241a9b76b4b51404a164bb56938b8c4 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 21 Jun 2024 14:16:51 +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-lua?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + _service | 15 +++++++++++ tree-sitter-lua-2.1.3.obscpio | 3 +++ tree-sitter-lua.changes | 4 +++ tree-sitter-lua.obsinfo | 4 +++ tree-sitter-lua.spec | 48 +++++++++++++++++++++++++++++++++++ 7 files changed, 98 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 tree-sitter-lua-2.1.3.obscpio create mode 100644 tree-sitter-lua.changes create mode 100644 tree-sitter-lua.obsinfo create mode 100644 tree-sitter-lua.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..62f1caf --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + https://github.com/Azganoth/tree-sitter-lua.git + git + refs/tags/v2.1.3 + @PARENT_TAG@ + v(.*) + + + + *.tar + xz + + + diff --git a/tree-sitter-lua-2.1.3.obscpio b/tree-sitter-lua-2.1.3.obscpio new file mode 100644 index 0000000..5078cdb --- /dev/null +++ b/tree-sitter-lua-2.1.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b71403df6fe7082f5b2e756a41ef2d81ba15d0c66fcd2907f3bcf3c40b417c7c +size 464395 diff --git a/tree-sitter-lua.changes b/tree-sitter-lua.changes new file mode 100644 index 0000000..787a6ce --- /dev/null +++ b/tree-sitter-lua.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 21 11:41:48 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/tree-sitter-lua.obsinfo b/tree-sitter-lua.obsinfo new file mode 100644 index 0000000..a22ae5b --- /dev/null +++ b/tree-sitter-lua.obsinfo @@ -0,0 +1,4 @@ +name: tree-sitter-lua +version: 2.1.3 +mtime: 1660452210 +commit: 6b02dfd7f07f36c223270e97eb0adf84e15a4cef diff --git a/tree-sitter-lua.spec b/tree-sitter-lua.spec new file mode 100644 index 0000000..671769d --- /dev/null +++ b/tree-sitter-lua.spec @@ -0,0 +1,48 @@ +# +# spec file for package tree-sitter-lua +# +# 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 lua +Name: tree-sitter-%{_name} +Version: 2.1.3 +Release: 0 +Summary: Lua grammar for tree-sitter +License: MIT +URL: https://github.com/Azganoth/tree-sitter-lua +Source: %{name}-%{version}.tar.xz +BuildRequires: tree-sitter +%treesitter_grammars %{_name} + +%description +%{summary}. + +%prep +%autosetup -p1 + +%build +%treesitter_configure +%treesitter_build + +%install +%treesitter_install + +%files +%license LICENSE.txt +%doc README.md +%{treesitter_files} + +%changelog