diff --git a/chromium-browser-stable.spec b/chromium-browser-stable.spec index 42cda9d..d346172 100644 --- a/chromium-browser-stable.spec +++ b/chromium-browser-stable.spec @@ -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