diff options
Diffstat (limited to 'python-antchain-bot.spec')
-rw-r--r-- | python-antchain-bot.spec | 201 |
1 files changed, 201 insertions, 0 deletions
diff --git a/python-antchain-bot.spec b/python-antchain-bot.spec new file mode 100644 index 0000000..bec1d35 --- /dev/null +++ b/python-antchain-bot.spec @@ -0,0 +1,201 @@ +%global _empty_manifest_terminate_build 0 +Name: python-antchain-bot +Version: 1.8.70 +Release: 1 +Summary: Ant Chain BOT SDK Library for Python +License: Apache License 2.0 +URL: https://github.com/alipay/antchain-openapi-prod-sdk +Source0: https://mirrors.aliyun.com/pypi/web/packages/35/1d/b5c1222006bc4749b9a91cb4dd77568f0849064eeb23c0c83d96bc76f414/antchain_bot-1.8.70.tar.gz +BuildArch: noarch + +Requires: python3-antchain-alipay-util +Requires: python3-alibabacloud-tea-util +Requires: python3-alibabacloud-rpc-util + +%description +English | [简体中文](README-CN.md) + +## Ant Chain BOT SDK for Python + +## Requirements + +- Python >= 3.6 + +## Installation + +- **Install with pip** + +Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip. + +```bash +# Install the antchain-bot +pip install antchain-bot +``` + +## Issues + +[Opening an Issue](https://github.com/alipay/antchain-openapi-prod-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage + +[Quick Examples](https://github.com/alipay/antchain-openapi-prod-sdk) + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.md). + +## References + +- [Latest Release](https://github.com/alipay/antchain-openapi-prod-sdk/tree/master/python) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + + + +%package -n python3-antchain-bot +Summary: Ant Chain BOT SDK Library for Python +Provides: python-antchain-bot +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-antchain-bot +English | [简体中文](README-CN.md) + +## Ant Chain BOT SDK for Python + +## Requirements + +- Python >= 3.6 + +## Installation + +- **Install with pip** + +Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip. + +```bash +# Install the antchain-bot +pip install antchain-bot +``` + +## Issues + +[Opening an Issue](https://github.com/alipay/antchain-openapi-prod-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage + +[Quick Examples](https://github.com/alipay/antchain-openapi-prod-sdk) + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.md). + +## References + +- [Latest Release](https://github.com/alipay/antchain-openapi-prod-sdk/tree/master/python) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + + + +%package help +Summary: Development documents and examples for antchain-bot +Provides: python3-antchain-bot-doc +%description help +English | [简体中文](README-CN.md) + +## Ant Chain BOT SDK for Python + +## Requirements + +- Python >= 3.6 + +## Installation + +- **Install with pip** + +Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip. + +```bash +# Install the antchain-bot +pip install antchain-bot +``` + +## Issues + +[Opening an Issue](https://github.com/alipay/antchain-openapi-prod-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately. + +## Usage + +[Quick Examples](https://github.com/alipay/antchain-openapi-prod-sdk) + +## Changelog + +Detailed changes for each release are documented in the [release notes](./ChangeLog.md). + +## References + +- [Latest Release](https://github.com/alipay/antchain-openapi-prod-sdk/tree/master/python) + +## License + +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + + + +%prep +%autosetup -n antchain_bot-1.8.70 + +%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-antchain-bot -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.70-1 +- Package Spec generated |