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}
|
Name: python-%{srcname}
|
||||||
Version: 0.18.1
|
Version: 0.18.1
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Comprehensive HTTP client library
|
Summary: Comprehensive HTTP client library
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/httplib2
|
URL: https://pypi.python.org/pypi/httplib2
|
||||||
@ -14,12 +14,11 @@ Patch1: python-%{srcname}.certfile.patch
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# There is an exception to ship python2-httplib2 on Fedora, for trac-spamfilter-plugin:
|
# Don't build for Python 2 on Fedora 34+ and RHEL
|
||||||
# https://pagure.io/fesco/issue/2266
|
%if 0%{?fedora} > 33 || 0%{?rhel}
|
||||||
%if 0%{?fedora}
|
|
||||||
%bcond_without python2
|
|
||||||
%else
|
|
||||||
%bcond_with python2
|
%bcond_with python2
|
||||||
|
%else
|
||||||
|
%bcond_without python2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
@ -122,6 +121,9 @@ popd
|
|||||||
%{python3_sitelib}/%{srcname}/
|
%{python3_sitelib}/%{srcname}/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Nov 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.18.1-8
|
||||||
- Disable Python 2 build on RHEL 9+
|
- Disable Python 2 build on RHEL 9+
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user