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
This commit is contained in:
Martin Pluskal 2024-11-19 15:02:09 +00:00 committed by Git OBS Bridge
commit 0142498485
8 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
_service Normal file
View File

@ -0,0 +1,19 @@
<!-- -*- xml -*- !-->
<services>
<service name="obs_scm" mode="manual">
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="revision">@PARENT_TAG@</param>
<param name="url">https://github.com/camdencheek/tree-sitter-gomod.git</param>
<param name="filename">tree-sitter-gomod</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">Björn Bidar &#60;bjorn.bidar@thaodan.de&#62;</param>
</service>
<service name="set_version" mode="manual"/>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/camdencheek/tree-sitter-gomod.git</param>
<param name="changesrevision">3b01edce2b9ea6766ca19328d1850e456fde3103</param></service></servicedata>

View File

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

View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Wed Nov 13 21:15:48 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>
- Initial packaging for openSUSE
- Added with version 1.1.0
* A tree-sitter grammar for go.mod files

View File

@ -0,0 +1,4 @@
name: tree-sitter-gomod
version: 1.1.0
mtime: 1726089634
commit: 3b01edce2b9ea6766ca19328d1850e456fde3103

48
tree-sitter-gomod.spec Normal file
View File

@ -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