diff --git a/python-pysocks.spec b/python-pysocks.spec index 16db966..b89ab38 100644 --- a/python-pysocks.spec +++ b/python-pysocks.spec @@ -1,10 +1,13 @@ %if 0%{?rhel} %global with_python2 1 %endif +%if 0%{?fedora} # FIXME maybe Fedora 31+ without python2 subpackage # https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal -%if 0%{?fedora} && 0%{?fedora} <= 30 +# when needed, uncomment build conditional and later drop this block entirely +#%%if 0%%{?fedora} <= 31 %global with_python2 1 +#%%endif %endif %if 0%{?rhel} >= 7 %global with_python3 1 @@ -168,7 +171,7 @@ rm -rfv test/bin %changelog -* Sun Sep 30 2018 Raphael Groner - 1.6.8-5 +* Wed Oct 03 2018 Raphael Groner - 1.6.8-5 - add python3_other subpackage for epel7 - prepare removal of python2 subpackage in Fedora - use pypi macros