https://bugzilla.redhat.com/show_bug.cgi?id=1749383
--- Comment #9 from Simone Caronni negativo17@gmail.com --- (In reply to Fabio Valentini from comment #7)
BuildRequires: python2-devel
You'll either need to drop the python2 bindings from this package, or request an exception for the python2 dependency from FESCo. No new fedora packages are allowed to depend on python2 without FESCo approval.
See: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal
Correct. If you instead plan to build for CentOS/RHEL 7 you can probably introduce some conditionals. For example:
%if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: python3-devel %else BuildRequires: python2-devel %endif