From d601fb8af3352901878e8b4481923ae179fdaac8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:39:33 +0100 Subject: [PATCH] update to 3.6.3 [release 3.6.3-1mamba;Thu Nov 19 2020] --- python-APScheduler.spec | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/python-APScheduler.spec b/python-APScheduler.spec index bc5694b..328fe7d 100644 --- a/python-APScheduler.spec +++ b/python-APScheduler.spec @@ -1,5 +1,5 @@ Name: python-APScheduler -Version: 3.0.1 +Version: 3.6.3 Release: 1mamba Summary: A light but powerful in-process task scheduler that lets you schedule jobs Group: System/Libraries @@ -20,6 +20,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Advanced Python Scheduler (APScheduler) is a light but powerful in-process task scheduler that lets you schedule jobs (functions or any python callables) to be executed at times of your choosing. +%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-tzlocal-%{?pyappend} +%py_requires + +%description py%{pyver} +%{summary}. +%endif + %prep %setup -q -n APScheduler-%{version} @@ -35,12 +57,15 @@ 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 "s,.*/man/.*,&.gz," %{name}.filelist -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %changelog +* Thu Nov 19 2020 Silvan Calarco 3.6.3-1mamba +- update to 3.6.3 + * Sat Nov 15 2014 Automatic Build System 3.0.1-1mamba - automatic update by autodist