tree-sitter-qmljs/tree-sitter-qmljs.spec
Richard Rahl 53c43f9431 - update to 0.2.0:
* merge with dev
  * regenerate
  * accept multiple pragma values
  * add make rule to review parser changes in qtdeclarative repo
  * allow string literal in pragma values
  * define our set of reserved identifiers to get around "new {}" conflicts
  * add test of multi-line string literal
  * include tree_sitter/parser.h as local header
  * remove queries from rust binding
  * feat: migrate to tree-sitter.json

OBS-URL: https://build.opensuse.org/package/show/editors:tree-sitter/tree-sitter-qmljs?expand=0&rev=3
2025-01-03 23:03:07 +00:00

60 lines
1.6 KiB
RPMSpec

#
# spec file for package tree-sitter-qmljs
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _name qmljs
Name: tree-sitter-qmljs
Version: 0.2.0
Release: 0
Summary: QML grammar for tree-sitter
License: MIT
URL: https://github.com/yuja/tree-sitter-qmljs
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: tree-sitter
BuildRequires: treesitter_grammar_src(tree-sitter-typescript)
%treesitter_grammars %{_name}
%description
%{summary}.
%prep
%autosetup
%build
%treesitter_configure
%treesitter_build
%install
%treesitter_install
%treesitter_devel_install
#neovim stuff
install -d %{buildroot}%{_libdir}/tree_sitter
ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so
%files
%license LICENSE
%treesitter_files
%{_libdir}/tree_sitter/%{_name}.so
%if 0%{?suse_version} < 1600
%dir %{_libdir}/tree_sitter
%endif
%treesitter_devel_package
%changelog