Fix conditionals

el8
Leigh Scott 4 years ago
parent bd85a43080
commit 7d4c249e9d

@ -14,10 +14,12 @@
%global _without_opus 1
%global _without_srt 1
%global _without_vpx 1
%global _without_vapoursynth 1
%endif
%if 0%{?fedora} || 0%{?rhel} > 7
%ifarch x86_64 i686
%global _with_vapoursynth 1
%endif
%ifarch x86_64
%global _with_mfx 1
%global _with_vmaf 1
@ -142,7 +144,7 @@ BuildRequires: libv4l-devel
%{?!_without_vaapi:BuildRequires: libva-devel >= 0.31.0}
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
%{?!_without_vapoursynth:BuildRequires: vapoursynth-devel}
%{?_with_vapoursynth:BuildRequires: vapoursynth-devel}
%{?!_without_vpx:BuildRequires: libvpx-devel >= 1.4.0}
%{?_with_mfx:BuildRequires: pkgconfig(libmfx) >= 1.23-1}
%ifarch %{ix86} x86_64
@ -300,7 +302,7 @@ This package contains development files for %{name}
--enable-libv4l2 \\\
%{!?_without_vidstab:--enable-libvidstab} \\\
%{?_with_vmaf:--enable-libvmaf --enable-version3} \\\
%{!?_without_vapoursynth:--enable-vapoursynth} \\\
%{?_with_vapoursynth:--enable-vapoursynth} \\\
%{!?_without_vpx:--enable-libvpx} \\\
%{?_with_webp:--enable-libwebp} \\\
%{!?_without_x264:--enable-libx264} \\\

Loading…
Cancel
Save