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
commit7b9f5eb006d9ca9a1b98c3b80cf59e9e49b4fe68 (patch)
treeae69faebd386f8c74c91dd8a3bd89ccac31f4d21
parent2fba39f3adbf8ece35d3287ebfaeb815b6962ba4 (diff)
automatic import of python-grpclib
-rw-r--r--.gitignore1
-rw-r--r--python-grpclib.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ab4b4bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grpclib-0.4.3.tar.gz
diff --git a/python-grpclib.spec b/python-grpclib.spec
new file mode 100644
index 0000000..23244c0
--- /dev/null
+++ b/python-grpclib.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-grpclib
+Version: 0.4.3
+Release: 1
+Summary: Pure-Python gRPC implementation for asyncio
+License: BSD-3-Clause
+URL: https://github.com/vmagamedov/grpclib
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/50/c7191f1d21a0917eda0a9be82118d79492c379e34739becefbbb29f5bbee/grpclib-0.4.3.tar.gz
+BuildArch: noarch
+
+
+%description
+|project|_ |documentation|_ |version|_ |tag|_ |license|_
+This project is based on `hyper-h2`_ and **requires Python >= 3.7**.
+Example
+~~~~~~~
+See `examples`_ directory in the project's repository for all available
+examples.
+
+%package -n python3-grpclib
+Summary: Pure-Python gRPC implementation for asyncio
+Provides: python-grpclib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-grpclib
+|project|_ |documentation|_ |version|_ |tag|_ |license|_
+This project is based on `hyper-h2`_ and **requires Python >= 3.7**.
+Example
+~~~~~~~
+See `examples`_ directory in the project's repository for all available
+examples.
+
+%package help
+Summary: Development documents and examples for grpclib
+Provides: python3-grpclib-doc
+%description help
+|project|_ |documentation|_ |version|_ |tag|_ |license|_
+This project is based on `hyper-h2`_ and **requires Python >= 3.7**.
+Example
+~~~~~~~
+See `examples`_ directory in the project's repository for all available
+examples.
+
+%prep
+%autosetup -n grpclib-0.4.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-grpclib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a396c3f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0fdfd42266d5350693b27862537298a3 grpclib-0.4.3.tar.gz