summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 11:37:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 11:37:47 +0000
commit4ce81e30b4606c0b4161608fc1ff932a6e225bfe (patch)
tree0cb7a5a429ce658a2e4fbe10feb5ae1d23406c39
parent57e8d12f35b73f5685fd31101788fb006897ffc1 (diff)
automatic import of python-grako
-rw-r--r--.gitignore1
-rw-r--r--python-grako.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..51d1d4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grako-3.99.9.zip
diff --git a/python-grako.spec b/python-grako.spec
new file mode 100644
index 0000000..a294ee5
--- /dev/null
+++ b/python-grako.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-grako
+Version: 3.99.9
+Release: 1
+Summary: Grako takes a grammar in a variation of EBNF as input, and outputs a memoizing PEG/Packrat parser in Python.
+License: BSD License
+URL: https://bitbucket.org/neogeny/grako
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/33/0d/6db911c7f6458974745c91c1e71841e347364798a5cc01e8149e84352c77/grako-3.99.9.zip
+BuildArch: noarch
+
+Requires: python3-regex
+
+%description
+*At least for the people who send me mail about a new language that they're designing, the general advice is: do it to learn about how to write a compiler. Don't have any expectations that anyone will use it, unless you hook up with some sort of organization in a position to push it hard. It's a lottery, and some can buy a lot of the tickets. There are plenty of beautiful languages (more beautiful than C) that didn't catch on. But someone does win the lottery, and doing a language at least teaches you something.*
+ `Dennis Ritchie`_ (1941-2011)
+
+%package -n python3-grako
+Summary: Grako takes a grammar in a variation of EBNF as input, and outputs a memoizing PEG/Packrat parser in Python.
+Provides: python-grako
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-grako
+*At least for the people who send me mail about a new language that they're designing, the general advice is: do it to learn about how to write a compiler. Don't have any expectations that anyone will use it, unless you hook up with some sort of organization in a position to push it hard. It's a lottery, and some can buy a lot of the tickets. There are plenty of beautiful languages (more beautiful than C) that didn't catch on. But someone does win the lottery, and doing a language at least teaches you something.*
+ `Dennis Ritchie`_ (1941-2011)
+
+%package help
+Summary: Development documents and examples for grako
+Provides: python3-grako-doc
+%description help
+*At least for the people who send me mail about a new language that they're designing, the general advice is: do it to learn about how to write a compiler. Don't have any expectations that anyone will use it, unless you hook up with some sort of organization in a position to push it hard. It's a lottery, and some can buy a lot of the tickets. There are plenty of beautiful languages (more beautiful than C) that didn't catch on. But someone does win the lottery, and doing a language at least teaches you something.*
+ `Dennis Ritchie`_ (1941-2011)
+
+%prep
+%autosetup -n grako-3.99.9
+
+%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-grako -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 3.99.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..47fa782
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2e94817e48be1cd2a7603ce92cc22b8e grako-3.99.9.zip