From 3a4f1a953af326e25e733c0833e33fe226442945 Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Tue, 3 Aug 2021 13:13:40 +0100 Subject: [PATCH] kernel-headers-5.14 has dropped /usr/include/linux/dvb/video.h --- mpv.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mpv.spec b/mpv.spec index f721ab1..96675e1 100644 --- a/mpv.spec +++ b/mpv.spec @@ -138,6 +138,10 @@ sed -i -e "s|c_preproc.standard_includes.append('/usr/local/include')|c_preproc. --docdir=%{_docdir}/%{name} \ --confdir=%{_sysconfdir}/%{name} \ --disable-build-date \ +%if 0%{?fedora} > 34 +# kernel-headers-5.14 has dropped /usr/include/linux/dvb/video.h + --enable-dvbin \ +%endif --enable-libmpv-shared \ --enable-sdl2 \ %if 0%{?fedora} > 30 || 0%{?rhel} > 8 @@ -147,8 +151,7 @@ sed -i -e "s|c_preproc.standard_includes.append('/usr/local/include')|c_preproc. --enable-cdda \ --enable-html-build \ %{?_with_rpi:--enable-rpi --disable-vaapi} \ - --enable-gl-x11 \ - --enable-dvbin + --enable-gl-x11 %{_bindir}/waf -v build %{?_smp_mflags}