commit 01424984852cbaab4fcff48bbcc1dcd88c043034b44ea7c3fc8e7518adb1b0a7 Author: Martin Pluskal Date: Tue Nov 19 15:02:09 2024 +0000 Add new tree-sitter package for go.mod files OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter-gomod?expand=0&rev=1 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..d2fb6bf --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + + @PARENT_TAG@ + v(.*) + @PARENT_TAG@ + https://github.com/camdencheek/tree-sitter-gomod.git + tree-sitter-gomod + git + enable + Björn Bidar <bjorn.bidar@thaodan.de> + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..59a344f --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/camdencheek/tree-sitter-gomod.git + 3b01edce2b9ea6766ca19328d1850e456fde3103 \ No newline at end of file diff --git a/tree-sitter-gomod-1.1.0.obscpio b/tree-sitter-gomod-1.1.0.obscpio new file mode 100644 index 0000000..4fb4f7e --- /dev/null +++ b/tree-sitter-gomod-1.1.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f7899cd0016b57567ae5fab81ed4d90059e6720a4007e0c8410f2a7fa4786cb +size 175115 diff --git a/tree-sitter-gomod.changes b/tree-sitter-gomod.changes new file mode 100644 index 0000000..f5e07d9 --- /dev/null +++ b/tree-sitter-gomod.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Nov 13 21:15:48 UTC 2024 - Björn Bidar + +- Initial packaging for openSUSE +- Added with version 1.1.0 + * A tree-sitter grammar for go.mod files diff --git a/tree-sitter-gomod.obsinfo b/tree-sitter-gomod.obsinfo new file mode 100644 index 0000000..371812a --- /dev/null +++ b/tree-sitter-gomod.obsinfo @@ -0,0 +1,4 @@ +name: tree-sitter-gomod +version: 1.1.0 +mtime: 1726089634 +commit: 3b01edce2b9ea6766ca19328d1850e456fde3103 diff --git a/tree-sitter-gomod.spec b/tree-sitter-gomod.spec new file mode 100644 index 0000000..82c8065 --- /dev/null +++ b/tree-sitter-gomod.spec @@ -0,0 +1,48 @@ +# +# spec file for package tree-sitter-gomod +# +# 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 gomod +Summary: A tree-sitter grammar for go.mod files +Name: tree-sitter-%{_name} +Version: 1.1.0 +Release: 0 +License: MIT +Group: Development/Tools/Other +URL: https://github.com/tree-sitter/tree-sitter-go-mod +Source0: %{name}-%{version}.tar.gz +BuildRequires: tree-sitter +%treesitter_grammars %{_name} + +%description +%{summary}. + +%prep +%autosetup -p1 + +%build +%treesitter_configure +%treesitter_build + +%install +%treesitter_install + +%files +%{treesitter_files} +%license LICENSE + +%changelog