Richard Rahl 2024-12-05 08:13:30 +00:00 committed by Git OBS Bridge
parent 1979016529
commit d6926697ab
3 changed files with 25 additions and 7 deletions

View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Dec 4 23:29:49 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- format spec file like the other grammars
- add neovim links
- enable devel package
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jul 07 13:53:19 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de> Sun Jul 07 13:53:19 UTC 2024 - Björn Bidar <bjorn.bidar@thaodan.de>

View File

@ -17,12 +17,11 @@
%define _name qmljs %define _name qmljs
Summary: QML grammar for tree-sitter Name: tree-sitter-qmljs
Name: tree-sitter-%{_name}
Version: 0.1.2.41.febf48a Version: 0.1.2.41.febf48a
Release: 0 Release: 0
Summary: QML grammar for tree-sitter
License: MIT License: MIT
Group: Development/Tools/Other
URL: https://github.com/yuja/tree-sitter-qmljs URL: https://github.com/yuja/tree-sitter-qmljs
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRequires: tree-sitter BuildRequires: tree-sitter
@ -33,7 +32,7 @@ BuildRequires: treesitter_grammar_src(tree-sitter-typescript)
%{summary}. %{summary}.
%prep %prep
%autosetup -p1 %autosetup
%build %build
%treesitter_configure %treesitter_configure
@ -41,11 +40,20 @@ BuildRequires: treesitter_grammar_src(tree-sitter-typescript)
%install %install
%treesitter_install %treesitter_install
%treesitter_devel_install
%check #neovim stuff
install -d %{buildroot}%{_libdir}/tree_sitter
ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so
%files %files
%{treesitter_files}
%license LICENSE %license LICENSE
%treesitter_files
%{_libdir}/tree_sitter/%{_name}.so
%if 0%{?suse_version} < 1600
%dir %{_libdir}/tree_sitter
%endif
%treesitter_devel_package
%changelog %changelog