From 05a52d121d49972989aea8127e22e25f0292333c Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Oct 02 2019 15:58:37 +0000 Subject: Fix build on F29. %{__python2} is not defined out of the box on F29. --- diff --git a/qt5-qtwebengine.spec b/qt5-qtwebengine.spec index 1d4e7dd..560bd54 100644 --- a/qt5-qtwebengine.spec +++ b/qt5-qtwebengine.spec @@ -173,7 +173,12 @@ BuildRequires: perl-interpreter # fesco exception to allow python2 use: https://pagure.io/fesco/issue/2208 # per https://fedoraproject.org/wiki/Changes/RetirePython2#FESCo_exceptions # Only the interpreter is needed +%if 0%{?fedora} > 29 || 0%{?rhel} > 8 BuildRequires: %{__python2} +%else +BuildRequires: python2 +BuildRequires: python2-rpm-macros +%endif %if 0%{?use_system_libvpx} BuildRequires: pkgconfig(vpx) >= 1.7.0 %endif