Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package tree-sitter-javascript for
openSUSE:Factory checked in at 2026-01-19 18:36:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tree-sitter-javascript (Old)
and /work/SRC/openSUSE:Factory/.tree-sitter-javascript.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tree-sitter-javascript"
Mon Jan 19 18:36:35 2026 rev:4 rq:1327969 version:0.23.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/tree-sitter-javascript/tree-sitter-javascript.changes
2024-12-11 21:06:55.843468589 +0100
+++
/work/SRC/openSUSE:Factory/.tree-sitter-javascript.new.1928/tree-sitter-javascript.changes
2026-01-19 18:40:55.277049884 +0100
@@ -1,0 +2,10 @@
+Fri Jan 16 21:54:49 UTC 2026 - Matej Cepl <[email protected]>
+
+- Deduplicate files in python_sitearch.
+
+-------------------------------------------------------------------
+Sun Aug 10 23:59:07 UTC 2025 - Georg Pfuetzenreuter
<[email protected]>
+
+- Build and package Python bindings
+
+-------------------------------------------------------------------
New:
----
tree-sitter-javascript-rpmlintrc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ tree-sitter-javascript.spec ++++++
--- /var/tmp/diff_new_pack.JRbYGo/_old 2026-01-19 18:40:55.909076035 +0100
+++ /var/tmp/diff_new_pack.JRbYGo/_new 2026-01-19 18:40:55.909076035 +0100
@@ -17,6 +17,9 @@
%define _name javascript
+%define python_subpackage_only 1
+%define python_libname tree_sitter_javascript
+%{?sle15_python_module_pythons}
Name: tree-sitter-javascript
Version: 0.23.1
Release: 0
@@ -24,27 +27,45 @@
License: MIT
URL: https://github.com/tree-sitter/tree-sitter-javascript
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source99: tree-sitter-javascript-rpmlintrc
BuildRequires: tree-sitter
%treesitter_grammars %{_name}
%description
%{summary}.
+%package -n python-tree-sitter-javascript
+Summary: Python bindings for JavaScript TS grammar
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pip}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
+BuildRequires: python-rpm-macros
+BuildRequires: fdupes
+%python_subpackages
+
+%description -n python-tree-sitter-javascript
+Python bindings for the JavaScript grammar for tree-sitter.
+
%prep
-%autosetup
+%autosetup -p1
%build
%treesitter_configure
%treesitter_build
+%pyproject_wheel
%install
%treesitter_install
%treesitter_devel_install
+%pyproject_install
#neovim stuff
install -d %{buildroot}%{_libdir}/tree_sitter
ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
%files
%license LICENSE
%treesitter_files
@@ -55,3 +76,15 @@
%treesitter_devel_package
+%files %{python_files %{name}}
+%dir %{python_sitearch}/%{python_libname}
+%dir %{python_sitearch}/%{python_libname}/queries
+%pycache_only %{python_sitearch}/%{python_libname}/__pycache__
+%{python_sitearch}/%{python_libname}/__init__.py
+%{python_sitearch}/%{python_libname}/__init__.pyi
+%{python_sitearch}/%{python_libname}/_binding.abi3.so
+%{python_sitearch}/%{python_libname}/binding.c
+%{python_sitearch}/%{python_libname}/py.typed
+%{python_sitearch}/%{python_libname}/queries/*.scm
+%{python_sitearch}/%{python_libname}-%{version}.dist-info
+
++++++ tree-sitter-javascript-rpmlintrc ++++++
# nothing we can do about that in case of Python
addFilter("^python31\d-tree-sitter-javascript\.x86_64: E:
devel-file-in-non-devel-package
/usr/lib64/python3\.1\d/site-packages/tree_sitter_javascript/binding\.c$")