New dependency for neovim. I would rather not maintain this package, as I am only trying to fix #1225887
OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter-markdown?expand=0&rev=1
This commit is contained in:
commit
9b237dbf8d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
15
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/tree-sitter-grammars/tree-sitter-markdown.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">refs/tags/v0.2.3</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime" />
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="buildtime" />
|
||||||
|
</services>
|
3
tree-sitter-markdown-0.2.3.obscpio
Normal file
3
tree-sitter-markdown-0.2.3.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8ab2b47ab74db56b99921a03fe518437490d1a153bdc9987538e57ed36061ae0
|
||||||
|
size 5488141
|
4
tree-sitter-markdown.changes
Normal file
4
tree-sitter-markdown.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 21 11:23:55 UTC 2024 - Richard Rahl <rrahl0@disroot.org>
|
||||||
|
|
||||||
|
- initial packaging
|
4
tree-sitter-markdown.obsinfo
Normal file
4
tree-sitter-markdown.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: tree-sitter-markdown
|
||||||
|
version: 0.2.3
|
||||||
|
mtime: 1711101125
|
||||||
|
commit: 62516e8c78380e3b51d5b55727995d2c511436d8
|
71
tree-sitter-markdown.spec
Normal file
71
tree-sitter-markdown.spec
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
#
|
||||||
|
# spec file for package tree-sitter-markdown
|
||||||
|
#
|
||||||
|
# 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 markdown
|
||||||
|
Name: tree-sitter-%{_name}
|
||||||
|
Version: 0.7.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Markdown grammar for tree-sitter
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/ikatyang/tree-sitter-markdown
|
||||||
|
Source: %{name}-%{version}.tar.xz
|
||||||
|
BuildRequires: tree-sitter
|
||||||
|
|
||||||
|
%description
|
||||||
|
The parser is designed to read markdown according to the CommonMark Spec, but
|
||||||
|
some extensions to the spec from different sources such as Github flavored
|
||||||
|
markdown are also included. These can be toggled on or off at compile time.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Devel files for %{name}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Development files for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
cd tree-sitter-markdown
|
||||||
|
tree-sitter generate --no-bindings src/grammar.json
|
||||||
|
cd ..
|
||||||
|
cd tree-sitter-markdown-inline
|
||||||
|
tree-sitter generate --no-bindings src/grammar.json
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||||
|
mv %{buildroot}%{_libdir}/libtree-sitter-markdown.so.0.2 %{buildroot}%{_libdir}/libtree-sitter-markdown.so
|
||||||
|
mv %{buildroot}%{_libdir}/libtree-sitter-markdown-inline.so.0.2 %{buildroot}%{_libdir}/libtree-sitter-markdown-inline.so
|
||||||
|
#remove unncessary stuff
|
||||||
|
rm -rf %{buildroot}%{_prefix}/lib
|
||||||
|
rm %{buildroot}%{_libdir}/libtree-sitter-markdown{.so.0,-inline.so.0}
|
||||||
|
rm %{buildroot}%{_libdir}/libtree-sitter-{markdown-inline.a,markdown.a}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_libdir}/libtree-sitter-markdown.so
|
||||||
|
%{_libdir}/libtree-sitter-markdown-inline.so
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/tree_sitter
|
||||||
|
%{_libdir}/pkgconfig/tree-sitter-markdown*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user