Python 2 exception is applicable to Fedora only

This commit is contained in:
Miro Hrončok 2020-05-25 12:45:01 +02:00
parent 1e53128636
commit 0b4ca058c4
1 changed files with 5 additions and 0 deletions

View File

@ -5,7 +5,12 @@
# python2 is enabled by default, Fedora 32+ exception is for offlineimap
# https://pagure.io/fesco/issue/2274
# The exception applies to Fedora only and has no target release yet
%if 0%{?fedora}
%bcond_without python2
%else
%bcond_with python2
%endif
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl