diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:56:54 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 21:56:54 +0000 |
| commit | b198d37501ed8026c7c3eead799c8f16994a7d9b (patch) | |
| tree | 42934688d06b99d6c578fcc18c4bf9d51bd3aa53 /python-webexteamssdk.spec | |
| parent | ae5371927d8e9c9315bb01f0632077091ff3f7f4 (diff) | |
automatic import of python-webexteamssdk
Diffstat (limited to 'python-webexteamssdk.spec')
| -rw-r--r-- | python-webexteamssdk.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-webexteamssdk.spec b/python-webexteamssdk.spec new file mode 100644 index 0000000..505d56f --- /dev/null +++ b/python-webexteamssdk.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-webexteamssdk +Version: 1.6.1 +Release: 1 +Summary: Community-developed Python SDK for the Webex Teams APIs +License: MIT; Copyright (c) 2016-2020 Cisco and/or its affiliates. +URL: https://github.com/CiscoDevNet/webexteamssdk +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/5b/f6609eb1f1aeff5952c9c065b6192af2adbb5d10eabab2e9bcef17dbd5dc/webexteamssdk-1.6.1.tar.gz +BuildArch: noarch + +Requires: python3-future +Requires: python3-requests +Requires: python3-requests-toolbelt +Requires: python3-PyJWT + +%description + + +%package -n python3-webexteamssdk +Summary: Community-developed Python SDK for the Webex Teams APIs +Provides: python-webexteamssdk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-webexteamssdk + + +%package help +Summary: Development documents and examples for webexteamssdk +Provides: python3-webexteamssdk-doc +%description help + + +%prep +%autosetup -n webexteamssdk-1.6.1 + +%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-webexteamssdk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.1-1 +- Package Spec generated |
