Fix build on F29.

%{__python2} is not defined out of the box on F29.
This commit is contained in:
Kevin Kofler 2019-10-02 17:54:44 +02:00
parent 7a09077c55
commit 05a52d121d

View File

@ -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