Disable Python 2 build on Fedora 34+
Trac was switched to Python 3.
This commit is contained in:
parent
6c87427e07
commit
811d0faeb8
@ -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 <mhroncok@redhat.com> - 0.18.1-9
|
||||
- Disable Python 2 build on Fedora 34+
|
||||
|
||||
* Tue Nov 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.18.1-8
|
||||
- Disable Python 2 build on RHEL 9+
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user