From fdae8aa3a5bd478cd8a685a6ec2cd267241335dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 24 Nov 2020 00:57:45 +0100 Subject: [PATCH] Disable Python 2 build on RHEL 9+ --- PyYAML.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PyYAML.spec b/PyYAML.spec index e921db3..7b0a7e4 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -1,5 +1,5 @@ # Python 2 removal, RHBZ#1775075 -%if 0%{?fedora} >= 32 +%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 %bcond_with python2 %else %bcond_without python2 @@ -7,7 +7,7 @@ Name: PyYAML Version: 5.3.1 -Release: 4%{?dist} +Release: 5%{?dist} %global uversion %{version} Summary: YAML parser and emitter for Python @@ -116,6 +116,9 @@ rm -rf ext/_yaml.c %changelog +* Mon Nov 23 2020 Miro HronĨok - 5.3.1-5 +- Disable Python 2 build on RHEL 9+ + * Mon Jul 27 2020 Fedora Release Engineering - 5.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild