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+