From 5c07f3f332f5a4d0c7c941648cc52f1101f1b69d Mon Sep 17 00:00:00 2001 From: Raphael Groner Date: Wed, 3 Oct 2018 14:36:02 +0200 Subject: [PATCH] disable temporarily check for Fedora version till a final decision about removal of python2 subpkg --- python-pysocks.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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