Compare commits
27 Commits
13.0-1mamb
...
main
Author | SHA1 | Date | |
---|---|---|---|
5e56b31fac | |||
e4d441337e | |||
27cb66abe4 | |||
c49efd32b4 | |||
d52c3d7aaa | |||
4513703265 | |||
cdff92d9c1 | |||
e1711bf3e9 | |||
9b9344cf0b | |||
83c47a277a | |||
8afa09fa1c | |||
178ac6a455 | |||
244f679bbf | |||
84979dc41d | |||
3202e9e79c | |||
9ecf670abd | |||
6741fe71fd | |||
3ae020b36d | |||
22accaff57 | |||
f11ee34644 | |||
763b3c5ac1 | |||
ec1407546e | |||
0913bb99bd | |||
d1a36d8405 | |||
3f7801e7e2 | |||
fec487d420 | |||
e5bbfdbc55 |
@ -1,71 +1,153 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-telegram-bot
|
||||
Version: 13.0
|
||||
Version: 22.2
|
||||
Release: 1mamba
|
||||
Summary: A pure Python interface for the Telegram Bot API
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://pypi.python.org/pypi/python-telegram-bot
|
||||
Source: http://pypi.debian.net/python-telegram-bot/python-telegram-bot-%{version}.tar.gz
|
||||
URL: https://pypi.org/project/python-telegram-bot/
|
||||
Source: http://pypi.debian.net/python-telegram-bot/python_telegram_bot-%{version}.tar.gz
|
||||
License: LGPL
|
||||
BuildArch: noarch
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython-devel
|
||||
BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(httpx)
|
||||
## AUTOBUILDREQ-END
|
||||
Requires: python >= %python_version
|
||||
#Requires: python-future
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||
|
||||
%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
|
||||
%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_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
|
||||
* Sat Jul 05 2025 Automatic Build System <autodist@openmamba.org> 22.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri May 23 2025 Automatic Build System <autodist@openmamba.org> 22.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Mar 25 2025 Automatic Build System <autodist@openmamba.org> 22.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Mar 11 2025 Automatic Build System <autodist@openmamba.org> 21.11.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Jan 06 2025 Automatic Build System <autodist@openmamba.org> 21.10-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Dec 08 2024 Automatic Build System <autodist@openmamba.org> 21.9-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* 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
|
||||
|
||||
* Tue May 21 2024 Automatic Build System <autodist@openmamba.org> 21.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Apr 16 2024 Automatic Build System <autodist@openmamba.org> 21.1.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Apr 13 2024 Automatic Build System <autodist@openmamba.org> 21.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Mar 08 2024 Automatic Build System <autodist@openmamba.org> 21.0.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Feb 12 2024 Automatic Build System <autodist@openmamba.org> 20.8-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Dec 08 2023 Automatic Build System <autodist@mambasoft.it> 20.7-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Oct 04 2023 Automatic Build System <autodist@mambasoft.it> 20.6-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Oct 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 20.4-2mamba
|
||||
- remove versioned requirement for httpx
|
||||
|
||||
* Sun Oct 01 2023 Automatic Build System <autodist@mambasoft.it> 20.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 20.2-2mamba
|
||||
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
||||
|
||||
* Tue Mar 28 2023 Automatic Build System <autodist@mambasoft.it> 20.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Feb 11 2023 Automatic Build System <autodist@mambasoft.it> 20.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Jan 02 2023 Automatic Build System <autodist@mambasoft.it> 20.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Dec 09 2022 Automatic Build System <autodist@mambasoft.it> 13.15-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Sep 05 2022 Automatic Build System <autodist@mambasoft.it> 13.14-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Jun 29 2022 Automatic Build System <autodist@mambasoft.it> 13.13-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri May 27 2022 Automatic Build System <autodist@mambasoft.it> 13.12-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Feb 07 2022 Automatic Build System <autodist@mambasoft.it> 13.11-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Jan 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 13.10-2mamba
|
||||
- rebuilt with distdeps
|
||||
|
||||
* Thu Jan 06 2022 Automatic Build System <autodist@mambasoft.it> 13.10-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Nov 15 2021 Automatic Build System <autodist@mambasoft.it> 13.8.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Feb 23 2021 Automatic Build System <autodist@mambasoft.it> 13.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Feb 22 2021 Automatic Build System <autodist@mambasoft.it> 13.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Nov 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 13.0-1mamba
|
||||
- update to 13.0
|
||||
|
||||
|
Reference in New Issue
Block a user