OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-gomod?expand=0&rev=1
This commit is contained in:
parent
6383c39a3b
commit
34c11134e6
3
tree-sitter-gomod-1.1.0.tar.gz
Normal file
3
tree-sitter-gomod-1.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:66f55e0dfa9d654484146c405261d667196d3b20872fa3f7813d5125a82d6de8
|
||||
size 27295
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 22:27:35 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
|
||||
|
||||
- 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 <bjorn.bidar@thaodan.de>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user