From 6797a272e9ce466c4c4a321e7b22ef359ca2e147 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 2 Mar 2020 10:08:58 -0500 Subject: [PATCH] Fix python2 on Fedora < 32 (rhbz#1808812) --- PyYAML.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PyYAML.spec b/PyYAML.spec index 9b25b30..7f6da99 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -1,9 +1,13 @@ # Python 2 removal, RHBZ#1775075 +%if 0%{fedora} >= 32 %bcond_with python2 +%else +%bcond_without python2 +%endif Name: PyYAML Version: 5.3 -Release: 2%{?dist} +Release: 3%{?dist} %global uversion %{version} Summary: YAML parser and emitter for Python @@ -110,6 +114,9 @@ rm -rf ext/_yaml.c %changelog +* Mon Mar 2 2020 John Eckersberg - 5.3-3 +- Fix python2 on Fedora < 32 (rhbz#1808812) + * Tue Jan 28 2020 Fedora Release Engineering - 5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild