From 811d0faeb8f06a8b653668a7f776074b9891eaaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 2 Jan 2021 18:29:29 +0100 Subject: [PATCH] Disable Python 2 build on Fedora 34+ Trac was switched to Python 3. --- python-httplib2.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-httplib2.spec b/python-httplib2.spec index 45d4a18..b58962c 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 0.18.1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Comprehensive HTTP client library License: MIT URL: https://pypi.python.org/pypi/httplib2 @@ -14,12 +14,11 @@ Patch1: python-%{srcname}.certfile.patch BuildArch: noarch -# There is an exception to ship python2-httplib2 on Fedora, for trac-spamfilter-plugin: -# https://pagure.io/fesco/issue/2266 -%if 0%{?fedora} -%bcond_without python2 -%else +# Don't build for Python 2 on Fedora 34+ and RHEL +%if 0%{?fedora} > 33 || 0%{?rhel} %bcond_with python2 +%else +%bcond_without python2 %endif %global _description\ @@ -122,6 +121,9 @@ popd %{python3_sitelib}/%{srcname}/ %changelog +* Sat Jan 02 2021 Miro Hrončok - 0.18.1-9 +- Disable Python 2 build on Fedora 34+ + * Tue Nov 24 2020 Miro Hrončok - 0.18.1-8 - Disable Python 2 build on RHEL 9+