b23614c9a8
* Drop legacy binding updates * templates: Properly replace author email * templates: Update npm packages * bindings: Improve cmake file * cmake: Support amalgamated build * cmake: Correct library scopes * make: Fix tree-sitter.pc generation - update to 0.24.1: * fix(generate): move generated header files into the generate crate - update do 0.24.0: * docs: add Kotlin to the playground * fix(generate): remove necessary files from gitignore template * feat(generate): bump tree-sitter dev dependency to 0.23 * fix(cli): remove conflicting short flags in the fuzz subcommand * feat(bindings): bump go-tree-sitter version * docs(changelog): add 0.23.0 release notes * feat: add an API to time out query executions * fix(generate): disallow inline variables referencing themselves * fix(rust): add missing TSNode functions * fix(lib): correct extra node creation from non-zero root-alias cursors * fix(test): exit with an error if a test marked with :error has no error * fix(test): retain attributes when running test -u * feat(language): derive Clone and Copy on LanguageFn * fix(lib): backtrack to the last relevant iterator if no child was found * fix(generate): add tree-sitter to the dev-dependencies of the Cargo.toml * fix(binding_web): correct edit signature * build(lib): build using cmake * fix(cli): keep skipped tests unchanged in the test/corpus OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=31
27 lines
1019 B
Plaintext
27 lines
1019 B
Plaintext
# -*- rpm-spec -*-
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# SPDX-FileCopyrightText: 2024 Björn Bidar
|
|
%_treesitter_base_name tree-sitter
|
|
%_treesitter_grammardir %{_libdir}
|
|
%_treesitter_grammar_develdir %{_includedir}/%{_treesitter_base_name}/grammars
|
|
%_treesitter_grammar_base_libname lib%{_treesitter_base_name}
|
|
%treesitter_target() %{_rpmconfigdir}/tree-sitter-target.py
|
|
%treesitter_set_flags export NODE_PATH=$NODE_PATH:%{_treesitter_grammar_develdir}:$PWD
|
|
|
|
%__treesitter_devel_package_name() %name-devel
|
|
%treesitter_devel_package \
|
|
%package -n %{__treesitter_devel_package_name} \
|
|
Summary: Devel package for %{name} containing it's grammar source \
|
|
BuildArch: noarch \
|
|
%{_treesitter_devel_provides} \
|
|
%description -n %{__treesitter_devel_package_name} \
|
|
This package contains grammar sources for use in other grammars. \
|
|
%files -n %{__treesitter_devel_package_name} \
|
|
%{treesitter_devel_files}
|
|
|
|
### LUA-MACROS ###
|
|
|
|
|
|
|
|
%_treesitter_macro_init %{_treesitter_definitions}%{lua: rpm.define("_treesitter_macro_init %{nil}")}
|