From 78abafd4e1e90eaec89aeeb5e723e7326611b6ea2da3162bee09d8528bf873ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Mar 2020 06:33:16 +0000 Subject: [PATCH] - Fix build wihtout python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-APScheduler?expand=0&rev=35 --- python-APScheduler.changes | 5 +++++ python-APScheduler.spec | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/python-APScheduler.changes b/python-APScheduler.changes index 58be7a5..0071b7d 100644 --- a/python-APScheduler.changes +++ b/python-APScheduler.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 06:32:50 UTC 2020 - Tomáš Chvátal + +- Fix build wihtout python2 + ------------------------------------------------------------------- Mon Jan 13 14:12:51 UTC 2020 - Marketa Calabkova diff --git a/python-APScheduler.spec b/python-APScheduler.spec index 85c8c6c..e554bee 100644 --- a/python-APScheduler.spec +++ b/python-APScheduler.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-APScheduler Version: 3.6.3 Release: 0 Summary: In-process task scheduler with Cron-like capabilities License: MIT -Group: Development/Languages/Python URL: https://github.com/agronholm/apscheduler Source: https://files.pythonhosted.org/packages/source/A/APScheduler/APScheduler-%{version}.tar.gz BuildRequires: %{python_module SQLAlchemy >= 0.8} @@ -39,26 +39,28 @@ BuildRequires: %{python_module tornado} BuildRequires: %{python_module tzlocal >= 1.2} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-funcsigs -BuildRequires: python2-futures -BuildRequires: python2-mock -BuildRequires: python2-trollius BuildRequires: python3-pytest-asyncio Requires: python-pytz Requires: python-six >= 1.4.0 Requires: python-tzlocal >= 1.2 Recommends: python-SQLAlchemy >= 0.8 -Recommends: python-gevent Recommends: python-Twisted +Recommends: python-gevent Suggests: python-kazoo Suggests: python-pymongo >= 2.8 Suggests: python-redis Suggests: python-tornado >= 4.3 BuildArch: noarch +%if %{with python2} +BuildRequires: python-funcsigs +BuildRequires: python-futures +BuildRequires: python-mock +BuildRequires: python-trollius +%endif %ifpython2 -Requires: python2-funcsigs -Requires: python2-futures -Requires: python2-trollius +Requires: python-funcsigs +Requires: python-futures +Requires: python-trollius %endif %python_subpackages