summaryrefslogtreecommitdiff
path: root/python-grpcio-channelz.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 22:03:54 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 22:03:54 +0000
commit692536acefa8bf97c87d29f22168f5f9ecba5c61 (patch)
tree0eaaf6b402752f1ab2d575b2eabfd550de44db88 /python-grpcio-channelz.spec
parent58d252abbd80111501257cd50097a6236dc1d7e6 (diff)
automatic import of python-grpcio-channelz
Diffstat (limited to 'python-grpcio-channelz.spec')
-rw-r--r--python-grpcio-channelz.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/python-grpcio-channelz.spec b/python-grpcio-channelz.spec
new file mode 100644
index 0000000..24fbd61
--- /dev/null
+++ b/python-grpcio-channelz.spec
@@ -0,0 +1,74 @@
+%global _empty_manifest_terminate_build 0
+Name: python-grpcio-channelz
+Version: 1.53.0
+Release: 1
+Summary: Channel Level Live Debug Information Service for gRPC
+License: Apache License 2.0
+URL: https://grpc.io
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/82/f9afb317bbdaf7dc10aa9aa60a50d257bf51ae20fbd291f54fc54973a03d/grpcio-channelz-1.53.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-protobuf
+Requires: python3-grpcio
+
+%description
+Channelz is a live debug tool in gRPC Python.
+
+%package -n python3-grpcio-channelz
+Summary: Channel Level Live Debug Information Service for gRPC
+Provides: python-grpcio-channelz
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-grpcio-channelz
+Channelz is a live debug tool in gRPC Python.
+
+%package help
+Summary: Development documents and examples for grpcio-channelz
+Provides: python3-grpcio-channelz-doc
+%description help
+Channelz is a live debug tool in gRPC Python.
+
+%prep
+%autosetup -n grpcio-channelz-1.53.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-grpcio-channelz -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.53.0-1
+- Package Spec generated