[packages/tree-sitter-markdown] up to 0.4.1 (new soname)

atler atler at pld-linux.org
Sun Mar 23 13:41:29 CET 2025


commit 253cf3d1efd054a417d3e7cc9f727f89db2867f7
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Mar 23 12:48:46 2025 +0100

    up to 0.4.1 (new soname)

 grammar-path.patch        | 11 +++++++++++
 tree-sitter-markdown.spec | 12 +++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/tree-sitter-markdown.spec b/tree-sitter-markdown.spec
index 2306530..695cbf7 100644
--- a/tree-sitter-markdown.spec
+++ b/tree-sitter-markdown.spec
@@ -1,16 +1,17 @@
 Summary:	Markdown grammar for tree-sitter
 Name:		tree-sitter-markdown
-Version:	0.3.2
-Release:	2
+Version:	0.4.1
+Release:	1
 License:	MIT
 Group:		Libraries
 Source0:	https://github.com/tree-sitter-grammars/tree-sitter-markdown/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	cdd73980b94d2f8a37b2b8af22ca8792
+# Source0-md5:	d69bc7a1f679ad85e861aafeff28b569
+Patch0:		grammar-path.patch
 URL:		https://github.com/tree-sitter-grammars/tree-sitter-markdown
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		ts_markdown_soname		libtree-sitter-markdown.so.0.14
-%define		ts_markdown_inline_soname	libtree-sitter-markdown-inline.so.0.14
+%define		ts_markdown_soname		libtree-sitter-markdown.so.14.0
+%define		ts_markdown_inline_soname	libtree-sitter-markdown-inline.so.14.0
 
 %description
 A Markdown parser for tree-sitter.
@@ -41,6 +42,7 @@ Markdown parser for Neovim.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %{__make} \
diff --git a/grammar-path.patch b/grammar-path.patch
new file mode 100644
index 0000000..27cfd0a
--- /dev/null
+++ b/grammar-path.patch
@@ -0,0 +1,11 @@
+--- tree-sitter-markdown-0.4.1/common/common.mak.orig	2025-03-21 16:39:14.000000000 +0100
++++ tree-sitter-markdown-0.4.1/common/common.mak	2025-03-23 12:46:26.632279471 +0100
+@@ -66,7 +66,7 @@
+ 		-e 's|@CMAKE_INSTALL_PREFIX@|$(PREFIX)|' \
+ 		-e 's|@TS_REQUIRES@|$(REQUIRES)|' $< > $@
+ 
+-$(PARSER): $(SRC_DIR)/grammar.js
++$(PARSER): grammar.js
+ 	$(TS) generate $^
+ 
+ install: all
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tree-sitter-markdown.git/commitdiff/253cf3d1efd054a417d3e7cc9f727f89db2867f7



More information about the pld-cvs-commit mailing list