Fix build with Python 3.11.0a1

This commit is contained in:
Miro Hrončok 2021-11-04 18:18:44 +01:00
commit f7a716750b
3 changed files with 94 additions and 0 deletions

View file

@ -8,6 +8,11 @@ License: BSD
URL: https://palletsprojects.com/p/jinja/
Source0: %{pypi_source}
# Tests: Make "Traceback did not match" an actual f-string
Patch1: https://github.com/pallets/jinja/pull/1525.patch
# Tests: Adapt expected traceback regexes for Python 3.11.0a1
Patch2: https://github.com/pallets/jinja/pull/1527.patch
%if 0%{?fedora} || 0%{?rhel} > 7
# Enable python3 build by default
%bcond_without python3