From 88fa3fe7c3036e39d15db80a03728a85bde761ca844706a955a63d40d4b74042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 10:59:00 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=7 --- python-pendulum.changes | 5 +++++ python-pendulum.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-pendulum.changes b/python-pendulum.changes index 6c4e48a..80361f6 100644 --- a/python-pendulum.changes +++ b/python-pendulum.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 10:58:48 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Mar 24 13:18:31 UTC 2020 - pgajdos@suse.com diff --git a/python-pendulum.spec b/python-pendulum.spec index df614f0..8180908 100644 --- a/python-pendulum.spec +++ b/python-pendulum.spec @@ -31,10 +31,10 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz >= 2018.3} BuildRequires: %{python_module pytzdata >= 2018.3} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing} BuildRequires: fdupes BuildRequires: python-dephell-rpm-macros BuildRequires: python-rpm-macros -BuildRequires: python-typing BuildRequires: python3-dephell Requires: python-python-dateutil >= 2.6 Requires: python-pytz >= 2018.3 @@ -47,7 +47,7 @@ Python datetimes made easy %prep %setup -q -n pendulum-%{version} -%{dephell_gensetup} +%dephell_gensetup %build export CFLAGS="%{optflags}"