diff --git a/tree-sitter-gomod-1.1.0.tar.gz b/tree-sitter-gomod-1.1.0.tar.gz new file mode 100644 index 0000000..5f03e32 --- /dev/null +++ b/tree-sitter-gomod-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66f55e0dfa9d654484146c405261d667196d3b20872fa3f7813d5125a82d6de8 +size 27295 diff --git a/tree-sitter-gomod.changes b/tree-sitter-gomod.changes index f5e07d9..b03c910 100644 --- a/tree-sitter-gomod.changes +++ b/tree-sitter-gomod.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Dec 4 22:27:35 UTC 2024 - Richard Rahl + +- switch to new upstream url +- add neovim links +- switch to download_files service +- add devel package + ------------------------------------------------------------------- Wed Nov 13 21:15:48 UTC 2024 - Björn Bidar diff --git a/tree-sitter-gomod.spec b/tree-sitter-gomod.spec index 82c8065..35f7d44 100644 --- a/tree-sitter-gomod.spec +++ b/tree-sitter-gomod.spec @@ -16,15 +16,14 @@ # -%define _name gomod -Summary: A tree-sitter grammar for go.mod files -Name: tree-sitter-%{_name} +%define _name gomod +Name: tree-sitter-gomod Version: 1.1.0 Release: 0 +Summary: A tree-sitter grammar for go.mod files License: MIT -Group: Development/Tools/Other -URL: https://github.com/tree-sitter/tree-sitter-go-mod -Source0: %{name}-%{version}.tar.gz +URL: https://github.com/camdencheek/tree-sitter-go-mod +Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: tree-sitter %treesitter_grammars %{_name} @@ -32,7 +31,7 @@ BuildRequires: tree-sitter %{summary}. %prep -%autosetup -p1 +%autosetup -n tree-sitter-go-mod-%{version} %build %treesitter_configure @@ -40,9 +39,20 @@ BuildRequires: tree-sitter %install %treesitter_install +%treesitter_devel_install + +#neovim stuff +install -d %{buildroot}%{_libdir}/tree_sitter +ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so %files -%{treesitter_files} %license LICENSE +%treesitter_files +%{_libdir}/tree_sitter/%{_name}.so +%if 0%{?suse_version} < 1600 +%dir %{_libdir}/tree_sitter +%endif + +%treesitter_devel_package %changelog