/usr/include/va/va_version.h was still missing while processing 'define'

This commit is contained in:
Mikhail Novosyolov 2018-10-28 00:18:54 +03:00
parent 3a50526b2a
commit 8e84209690

View file

@ -12,7 +12,6 @@
# The script ./patches.sh helps to sync patches in spec and real files
%define vaapi_version %(cat %{_includedir}/va/va_version.h | grep '#define VA_MAJOR_VERSION ' | awk '{print $NF}')
%global _build_pkgcheck_set %{nil}
# eol 'fix' corrupts some .bin
@ -314,7 +313,8 @@ members of the Chromium and WebDriver teams.
%patch508 -p1 -b .vaapiMain
# We have libva1 in rosa2016.1, but will have libva2 in rosa2019.1
# This patch is needed for libva1 only (where VA_MAJOR_VERSION = 0)
%if %{vaapi_version} < 1
#define vaapi_version %(cat %{_includedir}/va/va_version.h | grep '#define VA_MAJOR_VERSION ' | awk '{print $NF}')
%if %{mdvver} < 201800
%patch509 -p1 -b .vaapi1
%endif
%endif