From e639f7cf6ed70e100c0d899fc98f7f1e90e5a27d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 09:47:01 +0000 Subject: automatic import of python-telebot7 --- .gitignore | 1 + python-telebot7.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 74 insertions(+) create mode 100644 python-telebot7.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..b413081 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/telebot7-0.1.tar.gz diff --git a/python-telebot7.spec b/python-telebot7.spec new file mode 100644 index 0000000..39cfab5 --- /dev/null +++ b/python-telebot7.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-telebot7 +Version: 0.1 +Release: 1 +Summary: Telegram Bot API Python wrapper. +License: MIT License +URL: https://github.com/pash4paul/telebot7 +Source0: https://mirrors.aliyun.com/pypi/web/packages/10/4a/edb0eff38ca371495be1bb454cd6a28892d3266c26d0552ea3fce696b842/telebot7-0.1.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-telebot7 +Summary: Telegram Bot API Python wrapper. +Provides: python-telebot7 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-telebot7 + + +%package help +Summary: Development documents and examples for telebot7 +Provides: python3-telebot7-doc +%description help + + +%prep +%autosetup -n telebot7-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-telebot7 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..60379e9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +30cf39d68f781fd7cf7daae681379260 telebot7-0.1.tar.gz -- cgit v1.2.3