From c25108188eaf4cbe08895ed5c7387966769a7749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 21 Dec 2020 16:15:20 +0100 Subject: [PATCH] Disable Python 2 in Fedora 34+ --- pytz.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pytz.spec b/pytz.spec index 9e7c790..94e9252 100644 --- a/pytz.spec +++ b/pytz.spec @@ -1,6 +1,7 @@ # There is an exception to ship python2-pytz on Fedora, for trac: # https://pagure.io/fesco/issue/2260 -%if 0%{?fedora} +# Trac has been switched to Python 3 in Fedora 34 +%if 0%{?fedora} && 0%{?fedora} < 34 %bcond_without python2 %else %bcond_with python2 @@ -11,7 +12,7 @@ Name: pytz Version: 2020.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: World Timezone Definitions for Python License: MIT @@ -106,6 +107,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %changelog +* Mon Dec 21 2020 Miro Hrončok - 2020.4-3 +- Disable Python 2 in Fedora 34+ + * Wed Nov 25 2020 Miro Hrončok - 2020.4-2 - Disable Python 2 in ELN