diff --git a/python-telegram-bot.spec b/python-telegram-bot.spec index 79d75fb..47649af 100644 --- a/python-telegram-bot.spec +++ b/python-telegram-bot.spec @@ -1,6 +1,6 @@ Name: python-telegram-bot Version: 13.10 -Release: 1mamba +Release: 2mamba Summary: A pure Python interface for the Telegram Bot API Group: System/Libraries Vendor: openmamba @@ -10,40 +10,24 @@ URL: https://pypi.org/project/python-telegram-bot/ Source: http://pypi.debian.net/python-telegram-bot/python-telegram-bot-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(apscheduler) +BuildRequires: python3.7dist(cachetools) +BuildRequires: python3.7dist(certifi) +BuildRequires: python3.7dist(pytz) +BuildRequires: python3.7dist(tornado) ## AUTOBUILDREQ-END -Requires: python >= %python_version -#Requires: python-future %description %{summary}. %if 0%{?with_pyver} -%define pyver %{with_pyver} -%define pyappend py%{with_pyver} -%define __python %(rpm --eval %{__python%{with_pyver}}) -%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) -%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) -%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) -%define python_version %(rpm --eval %{python%{with_pyver}_version}) -%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) -%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) -%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) - -%package py%{pyver} -Group: System/Libraries/Python -Summary: %{summary}. -Requires: python-certifi-%{?pyappend} -Requires: python-urllib3-%{?pyappend} -Requires: python-APScheduler-%{?pyappend} -Requires: python-tornado-%{?pyappend} -%py_requires - -%description py%{pyver} -%{summary}. +%pyver_package %endif %prep %setup -q +sed -i "s|APScheduler==3.6.3|APScheduler>=3.6.3|" requirements.txt python_telegram_bot.egg-info/requires.txt %build CFLAGS="%{optflags}" %{__python} setup.py build @@ -57,13 +41,18 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/python_telegram_bot-%{version}-py*.egg-info +%{python_sitearch}/python_telegram_bot-%{version}-py*.egg-info/* %doc LICENSE %changelog +* Tue Jan 25 2022 Silvan Calarco 13.10-2mamba +- rebuilt with distdeps + * Thu Jan 06 2022 Automatic Build System 13.10-1mamba - automatic version update by autodist