summaryrefslogtreecommitdiff
path: root/python-yandexcloud.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 17:22:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 17:22:11 +0000
commitac587001d24a1f946938eeb103a42f0e6b57d509 (patch)
tree49b71b2ae36c1b82106354d97b4324d4c407eff7 /python-yandexcloud.spec
parentcc3f2997470f80e5ea30e1de58f36abf6ea2a209 (diff)
automatic import of python-yandexcloud
Diffstat (limited to 'python-yandexcloud.spec')
-rw-r--r--python-yandexcloud.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/python-yandexcloud.spec b/python-yandexcloud.spec
new file mode 100644
index 0000000..19e8468
--- /dev/null
+++ b/python-yandexcloud.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-yandexcloud
+Version: 0.208.0
+Release: 1
+Summary: The Yandex.Cloud official SDK
+License: MIT
+URL: https://github.com/yandex-cloud/python-sdk
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/fa/761fa828c148770148dc070c237170f15e5f21f05e48c49ed55ad11790e2/yandexcloud-0.208.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-cryptography
+Requires: python3-grpcio
+Requires: python3-protobuf
+Requires: python3-googleapis-common-protos
+Requires: python3-pyjwt
+Requires: python3-requests
+Requires: python3-six
+
+%description
+
+
+%package -n python3-yandexcloud
+Summary: The Yandex.Cloud official SDK
+Provides: python-yandexcloud
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-yandexcloud
+
+
+%package help
+Summary: Development documents and examples for yandexcloud
+Provides: python3-yandexcloud-doc
+%description help
+
+
+%prep
+%autosetup -n yandexcloud-0.208.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-yandexcloud -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.208.0-1
+- Package Spec generated