summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 18:56:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 18:56:41 +0000
commit339aa2abacd30aa7c6acc1323a0827eed27a68c4 (patch)
tree562dfddf3e20fd12cba056f671a4abdcfd3a3c79
parent2fba39f3adbf8ece35d3287ebfaeb815b6962ba4 (diff)
automatic import of python-lark
-rw-r--r--.gitignore1
-rw-r--r--python-lark.spec150
-rw-r--r--sources1
3 files changed, 152 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b4431f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lark-1.1.5.tar.gz
diff --git a/python-lark.spec b/python-lark.spec
new file mode 100644
index 0000000..8347a23
--- /dev/null
+++ b/python-lark.spec
@@ -0,0 +1,150 @@
+%global _empty_manifest_terminate_build 0
+Name: python-lark
+Version: 1.1.5
+Release: 1
+Summary: a modern parsing library
+License: MIT
+URL: https://github.com/lark-parser/lark
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a2/25/8e16de418fc83bb00dabaf8c7110bc45a90bf5481a70aa5f1668fcea73bc/lark-1.1.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-atomicwrites
+Requires: python3-js2py
+Requires: python3-regex
+
+%description
+
+Lark is a modern general-purpose parsing library for Python.
+
+With Lark, you can parse any context-free grammar, efficiently, with very little code.
+
+Main Features:
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
+ - Earley parser
+ - Can parse all context-free grammars
+ - Full support for ambiguous grammars
+ - LALR(1) parser
+ - Fast and light, competitive with PLY
+ - Can generate a stand-alone parser
+ - CYK parser, for highly ambiguous grammars
+ - EBNF grammar
+ - Unicode fully supported
+ - Automatic line & column tracking
+ - Standard library of terminals (strings, numbers, names, etc.)
+ - Import grammars from Nearley.js
+ - Extensive test suite
+ - And much more!
+
+Since version 1.0, only Python versions 3.6 and up are supported.
+
+
+
+
+%package -n python3-lark
+Summary: a modern parsing library
+Provides: python-lark
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-lark
+
+Lark is a modern general-purpose parsing library for Python.
+
+With Lark, you can parse any context-free grammar, efficiently, with very little code.
+
+Main Features:
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
+ - Earley parser
+ - Can parse all context-free grammars
+ - Full support for ambiguous grammars
+ - LALR(1) parser
+ - Fast and light, competitive with PLY
+ - Can generate a stand-alone parser
+ - CYK parser, for highly ambiguous grammars
+ - EBNF grammar
+ - Unicode fully supported
+ - Automatic line & column tracking
+ - Standard library of terminals (strings, numbers, names, etc.)
+ - Import grammars from Nearley.js
+ - Extensive test suite
+ - And much more!
+
+Since version 1.0, only Python versions 3.6 and up are supported.
+
+
+
+
+%package help
+Summary: Development documents and examples for lark
+Provides: python3-lark-doc
+%description help
+
+Lark is a modern general-purpose parsing library for Python.
+
+With Lark, you can parse any context-free grammar, efficiently, with very little code.
+
+Main Features:
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
+ - Earley parser
+ - Can parse all context-free grammars
+ - Full support for ambiguous grammars
+ - LALR(1) parser
+ - Fast and light, competitive with PLY
+ - Can generate a stand-alone parser
+ - CYK parser, for highly ambiguous grammars
+ - EBNF grammar
+ - Unicode fully supported
+ - Automatic line & column tracking
+ - Standard library of terminals (strings, numbers, names, etc.)
+ - Import grammars from Nearley.js
+ - Extensive test suite
+ - And much more!
+
+Since version 1.0, only Python versions 3.6 and up are supported.
+
+
+
+
+%prep
+%autosetup -n lark-1.1.5
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-lark -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..587a3ed
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b9048974c5ce56997e9e536dda475159 lark-1.1.5.tar.gz