summaryrefslogtreecommitdiff
path: root/python-telegram-bot.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 11:52:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 11:52:03 +0000
commit13789261c17ed3b96e8af179a246108b8600da59 (patch)
treeabe3cea1933e57bde6a28672b11ee427d83ea7a9 /python-telegram-bot.spec
parent74fa5b02db622ff72d345cdc0d1d125b2029368d (diff)
automatic import of python-telegram-bot
Diffstat (limited to 'python-telegram-bot.spec')
-rw-r--r--python-telegram-bot.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-telegram-bot.spec b/python-telegram-bot.spec
new file mode 100644
index 0000000..49ae9bf
--- /dev/null
+++ b/python-telegram-bot.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-telegram-bot
+Version: 0.1
+Release: 1
+Summary: Create telegram bot services in python.
+License: MIT
+URL: https://github.com/gravmatt/telegram-bot
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0c/89/b5f6cdebf62f1b37dfc0fd53fee0f92760531a51d834e5238b3110429e93/telegram-bot-0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Create telegram bot services in python.
+
+%package -n python3-telegram-bot
+Summary: Create telegram bot services in python.
+Provides: python-telegram-bot
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-telegram-bot
+Create telegram bot services in python.
+
+%package help
+Summary: Development documents and examples for telegram-bot
+Provides: python3-telegram-bot-doc
+%description help
+Create telegram bot services in python.
+
+%prep
+%autosetup -n telegram-bot-0.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-telegram-bot -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1
+- Package Spec generated