diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:18:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:18:48 +0000 |
commit | 9ef67d87db0f76401273b4e27e78a7c2e57dca53 (patch) | |
tree | 391370339f6c5a1ba8b8b8eaeec3778f77a63da1 | |
parent | c438af66ce0fec2a7ebf84b0907534e29d745ef7 (diff) |
automatic import of python-leancloud-sdkopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-leancloud-sdk.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/leancloud-sdk-1.13.0.tar.gz diff --git a/python-leancloud-sdk.spec b/python-leancloud-sdk.spec new file mode 100644 index 0000000..f63625e --- /dev/null +++ b/python-leancloud-sdk.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-leancloud-sdk +Version: 1.13.0 +Release: 1 +Summary: LeanCloud Python SDK +License: LGPL +URL: https://leancloud.cn/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/5a/bb/d2f613abd3954cbaf1d7e1675402617969b6d52778624fd95ec48523d71f/leancloud-sdk-1.13.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-leancloud-sdk +Summary: LeanCloud Python SDK +Provides: python-leancloud-sdk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-leancloud-sdk + + +%package help +Summary: Development documents and examples for leancloud-sdk +Provides: python3-leancloud-sdk-doc +%description help + + +%prep +%autosetup -n leancloud-sdk-1.13.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-leancloud-sdk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.13.0-1 +- Package Spec generated @@ -0,0 +1 @@ +58e6fcdfdc1bc271c7b8640a631fbb04 leancloud-sdk-1.13.0.tar.gz |