diff options
Diffstat (limited to 'python-dingtalkchatbot.spec')
| -rw-r--r-- | python-dingtalkchatbot.spec | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/python-dingtalkchatbot.spec b/python-dingtalkchatbot.spec new file mode 100644 index 0000000..257e996 --- /dev/null +++ b/python-dingtalkchatbot.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-DingtalkChatbot +Version: 1.5.7 +Release: 1 +Summary: 一个钉钉自定义机器人消息的Python封装库 +License: MIT +URL: https://github.com/zhuifengshen/DingtalkChatbot +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b1/8b/52243aed0a1a449ef2fedc42607b5ce9bdaa2f771ef9c7b8c1675141c8d6/DingtalkChatbot-1.5.7.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +钉钉机器人是钉钉群的一个高级扩展功能,但使用起来却非常简单,只需要注册一个钉钉账号,就可以将第三方服务信息聚合到钉钉群中,实现信息的自动同步。 +常见的使用场景: +1、聚合Github、Gitlab等源码管理服务,实现源码更新同步; +2、聚合Trello、JIRA等项目协调服务,实现项目信息同步; +3、机器人支持Webhook自定义接入,就可以实现更多可能性,例如:将运维报警、产品数据、自动化测试报告、工作&生活日程安排(上班打卡、下班吃饭、健身、读书、生日、纪念日...)的提醒; +目前自定义机器人支持文本(text)、链接(link)、markdown三种消息格式,五种消息类型,详细信息请参考\ `自定义机器人官方文档 <https://open.dingtalk.com/document/group/custom-robot-access>`__ + +%package -n python3-DingtalkChatbot +Summary: 一个钉钉自定义机器人消息的Python封装库 +Provides: python-DingtalkChatbot +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-DingtalkChatbot +钉钉机器人是钉钉群的一个高级扩展功能,但使用起来却非常简单,只需要注册一个钉钉账号,就可以将第三方服务信息聚合到钉钉群中,实现信息的自动同步。 +常见的使用场景: +1、聚合Github、Gitlab等源码管理服务,实现源码更新同步; +2、聚合Trello、JIRA等项目协调服务,实现项目信息同步; +3、机器人支持Webhook自定义接入,就可以实现更多可能性,例如:将运维报警、产品数据、自动化测试报告、工作&生活日程安排(上班打卡、下班吃饭、健身、读书、生日、纪念日...)的提醒; +目前自定义机器人支持文本(text)、链接(link)、markdown三种消息格式,五种消息类型,详细信息请参考\ `自定义机器人官方文档 <https://open.dingtalk.com/document/group/custom-robot-access>`__ + +%package help +Summary: Development documents and examples for DingtalkChatbot +Provides: python3-DingtalkChatbot-doc +%description help +钉钉机器人是钉钉群的一个高级扩展功能,但使用起来却非常简单,只需要注册一个钉钉账号,就可以将第三方服务信息聚合到钉钉群中,实现信息的自动同步。 +常见的使用场景: +1、聚合Github、Gitlab等源码管理服务,实现源码更新同步; +2、聚合Trello、JIRA等项目协调服务,实现项目信息同步; +3、机器人支持Webhook自定义接入,就可以实现更多可能性,例如:将运维报警、产品数据、自动化测试报告、工作&生活日程安排(上班打卡、下班吃饭、健身、读书、生日、纪念日...)的提醒; +目前自定义机器人支持文本(text)、链接(link)、markdown三种消息格式,五种消息类型,详细信息请参考\ `自定义机器人官方文档 <https://open.dingtalk.com/document/group/custom-robot-access>`__ + +%prep +%autosetup -n DingtalkChatbot-1.5.7 + +%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-DingtalkChatbot -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.7-1 +- Package Spec generated |
