Build for 3.11 on RHEL 8 and 9

This commit is contained in:
Maxwell G 2023-02-17 15:16:27 -06:00
commit fdb05b5cc1
No known key found for this signature in database
GPG key ID: F79E4E25E8C661F8

View file

@ -11,9 +11,9 @@
%global __brp_mangle_shebangs_exclude_from ^%{python3_sitelib}/ansible_collections/[^/]+/[^/]+/roles/[^/]+/(files|templates)/.*$
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}%{__brp_mangle_shebangs_exclude_from}
%if 0%{?rhel} == 8
%if 0%{?rhel} >= 8
# RHEL 8's ansible-core package is built using Python 3.9, which is not the default version.
%define python3_pkgversion 39
%define python3_pkgversion 3.11
BuildRequires: python%{python3_pkgversion}-rpm-macros
%endif