Disable Python 2 in Fedora 34+

This commit is contained in:
Miro Hrončok 2020-12-21 16:15:20 +01:00
parent c3571d40fd
commit c25108188e

View File

@ -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 <mhroncok@redhat.com> - 2020.4-3
- Disable Python 2 in Fedora 34+
* Wed Nov 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2020.4-2
- Disable Python 2 in ELN