Enable BPF

There was an issue upstream with the BPF detection logic.
Now that this is fixed, enable it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab 2023-03-20 21:07:24 +01:00
parent f200839056
commit d5ebe3b627
2 changed files with 12 additions and 5 deletions

View File

@ -1 +1 @@
SHA512 (v4l-utils-1.25.0.tar.xz) = 3415c95512029a579d361620d9be442e8d5f6bcaeec4f97d3079360c25fbf784e6fb2dfafe29861e177fc8e97190cbfc749586ddf5b3b08426461e42ebd880b7
SHA512 (v4l-utils-1.25.0.tar.xz) = 7c585526f6d8cf129e5ea03cc5128a468258bed79156a514933b131d500bc8ffb242065b8d8a0bb424c19be3d417989d52badcd2782d537055ba18fd8d4b5efd

View File

@ -1,7 +1,7 @@
Name: v4l-utils
Version: 1.25.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Utilities for video4linux and DVB devices
# libdvbv5, dvbv5 utils, ir-keytable and v4l2-sysfs-path are GPLv2 only
License: GPLv2+ and GPLv2
@ -23,10 +23,10 @@ BuildRequires: meson >= 0.56
BuildRequires: json-c-devel
# BPF decoder dependencies
%define with_bpf 0
%define with_bpf 1
%if %{with_bpf}
BuildRequires: elfutils-libelf-devel clang
BuildRequires: elfutils-libelf-devel clang libbpf-devel
%endif
# For /lib/udev/rules.d ownership
@ -122,7 +122,14 @@ files for developing applications that use libdvbv5.
%prep
%autosetup -p1
%meson -Dbpf=disabled -Ddoxygen-man=true -Ddoxygen-html=false
%meson -Dbpf=auto -Ddoxygen-man=true -Ddoxygen-html=false
#%if %{with_bpf}
#%meson -Ddoxygen-man=true -Ddoxygen-html=false
#%else
#%meson -Dbpf=disabled -Ddoxygen-man=true -Ddoxygen-html=false
#%endif
%build
#export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS"