Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e3ee9bb386 | |||
| f4473fbf07 | |||
| 6a817b5692 | |||
| 1846e8abca | |||
| 5bc46a3aa9 | |||
|
|
6f12c28908 |
18
_service
18
_service
@@ -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 <bjorn.bidar@thaodan.de></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>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:40a7a823a7a4aa875c26ce27ba014618050d84377b2aaa687a7e4cc4f03abd25
|
||||
size 375131
|
||||
3
tree-sitter-javascript-0.23.1.tar.gz
Normal file
3
tree-sitter-javascript-0.23.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fc5b8f5a491a6db33ca4854b044b89363ff7615f4291977467f52c1b92a0c032
|
||||
size 290550
|
||||
2
tree-sitter-javascript-rpmlintrc
Normal file
2
tree-sitter-javascript-rpmlintrc
Normal 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$")
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user