summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 10:41:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 10:41:17 +0000
commitdcd88b2f5205101e34370a55d9062442f37bfa3a (patch)
treecb896d5968d382c25c63c25e5265ac5b5d385c4c
parent8dcdfa37d8e65cc3a2dde8a79d3706753a0714e1 (diff)
automatic import of python-parse-type
-rw-r--r--.gitignore1
-rw-r--r--python-parse-type.spec126
-rw-r--r--sources1
3 files changed, 128 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..61f9afa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/parse_type-0.6.0.tar.gz
diff --git a/python-parse-type.spec b/python-parse-type.spec
new file mode 100644
index 0000000..925ca79
--- /dev/null
+++ b/python-parse-type.spec
@@ -0,0 +1,126 @@
+%global _empty_manifest_terminate_build 0
+Name: python-parse-type
+Version: 0.6.0
+Release: 1
+Summary: Simplifies to build parse types based on the parse module
+License: BSD
+URL: https://github.com/jenisys/parse_type
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/d4/8d79b78547df1c670406146776e1a91b1d5a1f5b928c0d7249e4fd1019bb/parse_type-0.6.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+Requires: python3-ordereddict
+Requires: python3-enum34
+Requires: python3-parse
+Requires: python3-parse
+Requires: python3-coverage
+Requires: python3-pytest-html
+Requires: python3-pytest-cov
+Requires: python3-tox
+Requires: python3-pytest
+Requires: python3-pytest
+Requires: python3-sphinx
+
+%description
+*type converter*
+ A type converter function that converts a textual representation
+ of a value type into instance of this value type.
+ In addition, a type converter function is often annotated with attributes
+ that allows the `parse`_ module to use it in a generic way.
+ A type converter is also called a *parse_type* (a definition used here).
+*cardinality field*
+ A naming convention for related types that differ in cardinality.
+ A cardinality field is a type name suffix in the format of a field.
+ It allows parse format expression, ala::
+ "{person:Person}" #< Cardinality: 1 (one; the normal case)
+ "{person:Person?}" #< Cardinality: 0..1 (zero or one = optional)
+ "{persons:Person*}" #< Cardinality: 0..* (zero or more = many0)
+ "{persons:Person+}" #< Cardinality: 1..* (one or more = many)
+ This naming convention mimics the relationship descriptions in UML diagrams.
+
+%package -n python3-parse-type
+Summary: Simplifies to build parse types based on the parse module
+Provides: python-parse-type
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-parse-type
+*type converter*
+ A type converter function that converts a textual representation
+ of a value type into instance of this value type.
+ In addition, a type converter function is often annotated with attributes
+ that allows the `parse`_ module to use it in a generic way.
+ A type converter is also called a *parse_type* (a definition used here).
+*cardinality field*
+ A naming convention for related types that differ in cardinality.
+ A cardinality field is a type name suffix in the format of a field.
+ It allows parse format expression, ala::
+ "{person:Person}" #< Cardinality: 1 (one; the normal case)
+ "{person:Person?}" #< Cardinality: 0..1 (zero or one = optional)
+ "{persons:Person*}" #< Cardinality: 0..* (zero or more = many0)
+ "{persons:Person+}" #< Cardinality: 1..* (one or more = many)
+ This naming convention mimics the relationship descriptions in UML diagrams.
+
+%package help
+Summary: Development documents and examples for parse-type
+Provides: python3-parse-type-doc
+%description help
+*type converter*
+ A type converter function that converts a textual representation
+ of a value type into instance of this value type.
+ In addition, a type converter function is often annotated with attributes
+ that allows the `parse`_ module to use it in a generic way.
+ A type converter is also called a *parse_type* (a definition used here).
+*cardinality field*
+ A naming convention for related types that differ in cardinality.
+ A cardinality field is a type name suffix in the format of a field.
+ It allows parse format expression, ala::
+ "{person:Person}" #< Cardinality: 1 (one; the normal case)
+ "{person:Person?}" #< Cardinality: 0..1 (zero or one = optional)
+ "{persons:Person*}" #< Cardinality: 0..* (zero or more = many0)
+ "{persons:Person+}" #< Cardinality: 1..* (one or more = many)
+ This naming convention mimics the relationship descriptions in UML diagrams.
+
+%prep
+%autosetup -n parse-type-0.6.0
+
+%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-parse-type -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7084cbc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+992e1c83bd41bfa44de5ed670d03d594 parse_type-0.6.0.tar.gz