diff --git a/python-olefile.spec b/python-olefile.spec index 07b604a..ccbc927 100644 --- a/python-olefile.spec +++ b/python-olefile.spec @@ -19,7 +19,7 @@ antivirus quarantine files, etc. # Build without python2 package for newer releases > fc32 and > rhel8 # python2 package already released for rhel8 # https://pagure.io/fesco/issue/2266 -%if (0%{?fedora} && 0%{?fedora} > 32 ) || ( 0%{?rhel} && 0%{?rhel} > 8 ) +%if (0%{?fedora} && 0%{?fedora} > 32 ) || ( 0%{?rhel} && 0%{?rhel} > 8 ) || 0%{?flatpak} %bcond_with python2 %else %bcond_without python2