[packages/tree-sitter-lua] fix broken neovim symlink; rel 2

atler atler at pld-linux.org
Tue Feb 11 16:27:27 CET 2025


commit c95cf15bd0274452c98ca9714383d6193c1b2e00
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Feb 11 15:50:07 2025 +0100

    fix broken neovim symlink; rel 2
    
    soname is actually libtree-sitter-lua.MAJOR.MINOR and
    libtree-sitter-lua.MAJOR is just a bogus symlink

 tree-sitter-lua.spec | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tree-sitter-lua.spec b/tree-sitter-lua.spec
index a4d248c..6d66b9c 100644
--- a/tree-sitter-lua.spec
+++ b/tree-sitter-lua.spec
@@ -1,7 +1,7 @@
 Summary:	Lua grammar for tree-sitter
 Name:		tree-sitter-lua
 Version:	0.2.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -9,7 +9,7 @@ Source0:	https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v%{vers
 URL:		https://github.com/tree-sitter-grammars/tree-sitter-lua
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		ts_lua_soname	libtree-sitter-lua.so.0
+%define		ts_lua_soname	libtree-sitter-lua.so.0.14
 
 %description
 Lua grammar for tree-sitter.
@@ -63,6 +63,8 @@ install -d $RPM_BUILD_ROOT%{_libdir}/nvim/parser
 	LIBDIR="%{_libdir}" \
 	PCLIBDIR="%{_pkgconfigdir}"
 
+%{__ln_s} -f %{_libdir}/%{ts_lua_soname} $RPM_BUILD_ROOT%{_libdir}/libtree-sitter-lua.so
+
 %{__ln_s} %{_libdir}/%{ts_lua_soname} $RPM_BUILD_ROOT%{_libdir}/nvim/parser/lua.so
 
 %clean
@@ -74,8 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc LICENSE.md README.md
-%attr(755,root,root) %{_libdir}/libtree-sitter-lua.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/%{ts_lua_soname}
+%attr(755,root,root) %{_libdir}/%{ts_lua_soname}
 
 %files devel
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tree-sitter-lua.git/commitdiff/c95cf15bd0274452c98ca9714383d6193c1b2e00



More information about the pld-cvs-commit mailing list