From f86cf18b6bb6dc0d84b62256bd0460394702515c Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 22 Nov 2018 14:13:03 -0200 Subject: [PATCH] Only build BPF code on x86_64 and i686 Currently (v4l-utils version 1.16.2), trying to build the BPF decoders failed for non-x86 archs. While this is not solved, only enable building it on x86, as this is an optional feature anyway. Signed-off-by: Mauro Carvalho Chehab --- v4l-utils.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/v4l-utils.spec b/v4l-utils.spec index b1334b1..1258299 100644 --- a/v4l-utils.spec +++ b/v4l-utils.spec @@ -16,8 +16,19 @@ BuildRequires: kernel-headers BuildRequires: libjpeg-devel BuildRequires: qt5-qtbase-devel BuildRequires: systemd-devel -# For BPF decoders + +# BPF decoder dependencies + +%ifarch i686 x86_64 +%define with_bpf 1 +%else +%define with_bpf 0 +%endif + +%if %{with_bpf} BuildRequires: elfutils-libelf-devel clang +%endif + # For /lib/udev/rules.d ownership Requires: udev Requires: libv4l%{?_isa} = %{version}-%{release}