summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 05:53:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 05:53:58 +0000
commit954e5366cde176af02a90b796a3723809c44d06f (patch)
tree73f5a34b15e27e71f2b6d5cb979814169bd862fe
parent88d4acbf030514279b26af7b8c5f813e89656ba0 (diff)
automatic import of python-widlparseropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-widlparser.spec99
-rw-r--r--sources1
3 files changed, 101 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9227cd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/widlparser-1.1.3.tar.gz
diff --git a/python-widlparser.spec b/python-widlparser.spec
new file mode 100644
index 0000000..0ade1e8
--- /dev/null
+++ b/python-widlparser.spec
@@ -0,0 +1,99 @@
+%global _empty_manifest_terminate_build 0
+Name: python-widlparser
+Version: 1.1.3
+Release: 1
+Summary: WebIDL Parser
+License: MIT Licence
+URL: https://pypi.org/project/widlparser/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/54/0bd957e5f44841b4a494419d4ac65c5562688fdaf1c4583d60070ed8a7cb/widlparser-1.1.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-typing-extensions
+Requires: python3-types-PyYAML
+Requires: python3-mypy
+Requires: python3-flake8
+Requires: python3-flake8-annotations
+Requires: python3-flake8-bandit
+Requires: python3-flake8-bugbear
+Requires: python3-flake8-commas
+Requires: python3-flake8-comprehensions
+Requires: python3-flake8-continuation
+Requires: python3-flake8-datetimez
+Requires: python3-flake8-docstrings
+Requires: python3-flake8-import-order
+Requires: python3-flake8-literal
+Requires: python3-flake8-modern-annotations
+Requires: python3-flake8-noqa
+Requires: python3-flake8-pyproject
+Requires: python3-flake8-requirements
+Requires: python3-flake8-typechecking-import
+Requires: python3-flake8-use-fstring
+Requires: python3-pep8-naming
+
+%description
+Stand-alone WebIDL Parser in Python. Requires Python 3.7+.
+Parses WebIDL per: http://dev.w3.org/2006/webapi/WebIDL/ (plus a few legacy compatability items)
+This parser was created to support a W3C specification parser and pre-processor, it's API is geared towards finding and identifying various WebIDL constructs by name. However, all of the WebIDL source is parsed and stored in the construct objects. The parser has error recovery and preserves the entire input for re-serialization and markup of the WebIDL constructs.
+
+%package -n python3-widlparser
+Summary: WebIDL Parser
+Provides: python-widlparser
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-widlparser
+Stand-alone WebIDL Parser in Python. Requires Python 3.7+.
+Parses WebIDL per: http://dev.w3.org/2006/webapi/WebIDL/ (plus a few legacy compatability items)
+This parser was created to support a W3C specification parser and pre-processor, it's API is geared towards finding and identifying various WebIDL constructs by name. However, all of the WebIDL source is parsed and stored in the construct objects. The parser has error recovery and preserves the entire input for re-serialization and markup of the WebIDL constructs.
+
+%package help
+Summary: Development documents and examples for widlparser
+Provides: python3-widlparser-doc
+%description help
+Stand-alone WebIDL Parser in Python. Requires Python 3.7+.
+Parses WebIDL per: http://dev.w3.org/2006/webapi/WebIDL/ (plus a few legacy compatability items)
+This parser was created to support a W3C specification parser and pre-processor, it's API is geared towards finding and identifying various WebIDL constructs by name. However, all of the WebIDL source is parsed and stored in the construct objects. The parser has error recovery and preserves the entire input for re-serialization and markup of the WebIDL constructs.
+
+%prep
+%autosetup -n widlparser-1.1.3
+
+%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-widlparser -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d7c470e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5e7977c69c5605319150fb2234bd82c5 widlparser-1.1.3.tar.gz