automatic version update by autodist [release 21.8-1mamba;Fri Dec 06 2024]
This commit is contained in:
parent
e1711bf3e9
commit
cdff92d9c1
@ -1,5 +1,6 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-telegram-bot
|
||||
Version: 21.3
|
||||
Version: 21.8
|
||||
Release: 1mamba
|
||||
Summary: A pure Python interface for the Telegram Bot API
|
||||
Group: System/Libraries
|
||||
@ -7,7 +8,7 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://pypi.org/project/python-telegram-bot/
|
||||
Source: http://pypi.debian.net/python-telegram-bot/python-telegram-bot-%{version}.tar.gz
|
||||
Source: http://pypi.debian.net/python-telegram-bot/python_telegram_bot-%{version}.tar.gz
|
||||
License: LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython311-devel
|
||||
@ -23,31 +24,39 @@ BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
sed -i "s|APScheduler==3.6.3|APScheduler>=3.6.3|;s|httpx~=.*|httpx|;s|httpx ~= .*|httpx|" \
|
||||
requirements.txt python_telegram_bot.egg-info/requires.txt
|
||||
%setup -q -n python_telegram_bot-%{version}
|
||||
sed -i "s|APScheduler~=.*[0-9]|APScheduler|;s|httpx ~= .*[0-9]|httpx|" \
|
||||
pyproject.toml
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{python_inc} \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
#%if "%{?with_pyver}" != "3"
|
||||
## Rename any conflicting file outside of python site packages tree
|
||||
#for f in %{_bindir}/pdm; do
|
||||
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
#done
|
||||
#%endif
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%dir %{python_sitearch}/python_telegram_bot-%{version}-py*.egg-info
|
||||
%{python_sitearch}/python_telegram_bot-%{version}-py*.egg-info/*
|
||||
%dir %{python_sitelib}/python_telegram_bot-%{version}.dist-info
|
||||
%{python_sitelib}/python_telegram_bot-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/telegram
|
||||
%{python_sitelib}/telegram/*
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Dec 06 2024 Automatic Build System <autodist@openmamba.org> 21.8-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Nov 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 21.7-1mamba
|
||||
- update to 21.7
|
||||
|
||||
* Sat Jun 08 2024 Automatic Build System <autodist@openmamba.org> 21.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user