17
0

6 Commits

Author SHA256 Message Date
e3ee9bb386 Accepting request 1327969 from editors:tree-sitter
- Add Source line for rpmlintrc file
- Deduplicate files in python_sitearch.

- Build and package Python bindings

OBS-URL: https://build.opensuse.org/request/show/1327969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter-javascript?expand=0&rev=4
2026-01-19 17:36:35 +00:00
f4473fbf07 Add rpmlintrc to Sources
OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-javascript?expand=0&rev=4
2026-01-16 21:57:43 +00:00
6a817b5692 Deduplicate files in python_sitearch.
OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-javascript?expand=0&rev=3
2026-01-16 21:54:56 +00:00
1846e8abca Build and package Python bindings
OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-javascript?expand=0&rev=2
2026-01-16 18:36:50 +00:00
5bc46a3aa9 Accepting request 1229617 from editors:tree-sitter
- update to 0.23.1:
  * build: update bindings
  * feat!: remove glimmer template tags
  * build: update bindings
  * fix(swift): add scanner.c to sources
- update to 0.23.0:
  * fix: operator precedence rules for tagged template functions
  * build: update bindings
  * fix(go): correct test
  * fix: move go.mod to root dir
  * fix: for in / of statements containing new lines
  * fix: disallow semi injection before a backtick
  * fix: add import.meta to meta_property
- update to 0.21.4:
  * fix: jsx_text node trims whitespace too often
  * fix: automatic semicolon should be inserted given a number decimal
  * fix: comment optimization should not cause automatic-semi insert
  * fix: unnecessary seq sequences
  * fix: comment should be terminal
- update to 0.21.3:
  * fix: comments should not consume 2028+2029, and neither should
    identifiers
  * feat(build): and add jsx
  * feat(build): add mjs and cjs file types
  * fix(build): use flag_if_supported for cc flags
- update to 0.21.2:
  * chore: bump deps
- update to 0.21.1:
  * chore: remove reset function
  * fix: un-inline statement

OBS-URL: https://build.opensuse.org/request/show/1229617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tree-sitter-javascript?expand=0&rev=3
2024-12-11 20:02:37 +00:00
Richard Rahl
6f12c28908 OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-javascript?expand=0&rev=1 2024-12-05 08:13:24 +00:00
6 changed files with 105 additions and 28 deletions

View File

@@ -1,18 +0,0 @@
<!-- -*- xml -*- !-->
<services>
<service name="obs_scm" mode="disabled">
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="revision">@PARENT_TAG@</param>
<param name="url">https://github.com/tree-sitter/tree-sitter-javascript.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">Björn Bidar &#60;bjorn.bidar@thaodan.de&#62;</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:40a7a823a7a4aa875c26ce27ba014618050d84377b2aaa687a7e4cc4f03abd25
size 375131

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc5b8f5a491a6db33ca4854b044b89363ff7615f4291977467f52c1b92a0c032
size 290550

View File

@@ -0,0 +1,2 @@
# 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$")

View File

@@ -1,3 +1,56 @@
-------------------------------------------------------------------
Fri Jan 16 21:54:49 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Deduplicate files in python_sitearch.
-------------------------------------------------------------------
Sun Aug 10 23:59:07 UTC 2025 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
- Build and package Python bindings
-------------------------------------------------------------------
Wed Dec 4 22:56:42 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- update to 0.23.1:
* build: update bindings
* feat!: remove glimmer template tags
* build: update bindings
* fix(swift): add scanner.c to sources
- update to 0.23.0:
* fix: operator precedence rules for tagged template functions
* build: update bindings
* fix(go): correct test
* fix: move go.mod to root dir
* fix: for in / of statements containing new lines
* fix: disallow semi injection before a backtick
* fix: add import.meta to meta_property
- update to 0.21.4:
* fix: jsx_text node trims whitespace too often
* fix: automatic semicolon should be inserted given a number decimal
* fix: comment optimization should not cause automatic-semi insert
* fix: unnecessary seq sequences
* fix: comment should be terminal
- update to 0.21.3:
* fix: comments should not consume 2028+2029, and neither should
identifiers
* feat(build): and add jsx
* feat(build): add mjs and cjs file types
* fix(build): use flag_if_supported for cc flags
- update to 0.21.2:
* chore: bump deps
- update to 0.21.1:
* chore: remove reset function
* fix: un-inline statement
* fix: only allow automatic_semicolons after static
* chore: generate
* fix: static can be on its own line
* feat(queries): highlight glimmer tags
* docs: update readme
* build: update npm scripts and rust injection query name
- switch to download_files service
- add neovim links
- enable devel package
-------------------------------------------------------------------
Mon Apr 29 22:01:09 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>

View File

@@ -16,36 +16,76 @@
#
%define _name javascript
Summary: Javascript grammar for tree-sitter
Name: tree-sitter-%{_name}
Version: 0.21.0
%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
Summary: Javascript grammar for tree-sitter
License: MIT
Group: Development/Tools/Other
URL: https://github.com/tree-sitter/tree-sitter-javascript
Source0: %{name}-%{version}.tar.gz
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 -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
%{treesitter_files}
%license LICENSE
%treesitter_files
%{_libdir}/tree_sitter/%{_name}.so
%if 0%{?suse_version} < 1600
%dir %{_libdir}/tree_sitter
%endif
%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
%changelog