summaryrefslogtreecommitdiff
path: root/python-strobesbufs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-strobesbufs.spec')
-rw-r--r--python-strobesbufs.spec92
1 files changed, 92 insertions, 0 deletions
diff --git a/python-strobesbufs.spec b/python-strobesbufs.spec
new file mode 100644
index 0000000..e834995
--- /dev/null
+++ b/python-strobesbufs.spec
@@ -0,0 +1,92 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Strobesbufs
+Version: 0.0.299
+Release: 1
+Summary: Contains all the protos created by strobesbuf as a package to use
+License: GPLv3
+URL: https://github.com/strobes-co/strobesbufs-py
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/43/90/b4ed19bf9f6787a197c1404cacf69dbdaf685ef18b1c4a33a075e7402b6b/Strobesbufs-0.0.299.tar.gz
+BuildArch: noarch
+
+Requires: python3-grpcio
+Requires: python3-grpcio-tools
+
+%description
+# Strobesbufs Protos
+
+Strobesbufs Protos is a library containing all the autogenerated python files for grpc proto
+file used here([Protos](https://github.com/strobes-co/protos/tree/package)).
+
+
+
+
+%package -n python3-Strobesbufs
+Summary: Contains all the protos created by strobesbuf as a package to use
+Provides: python-Strobesbufs
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Strobesbufs
+# Strobesbufs Protos
+
+Strobesbufs Protos is a library containing all the autogenerated python files for grpc proto
+file used here([Protos](https://github.com/strobes-co/protos/tree/package)).
+
+
+
+
+%package help
+Summary: Development documents and examples for Strobesbufs
+Provides: python3-Strobesbufs-doc
+%description help
+# Strobesbufs Protos
+
+Strobesbufs Protos is a library containing all the autogenerated python files for grpc proto
+file used here([Protos](https://github.com/strobes-co/protos/tree/package)).
+
+
+
+
+%prep
+%autosetup -n Strobesbufs-0.0.299
+
+%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-Strobesbufs -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.299-1
+- Package Spec generated