%bcond_with python3
%endif
+# Build with debuginfod support for Fedora >= 32
+%if 0%{?fedora} >= 32
+%bcond_without libdebuginfod
+%else
+%bcond_with libdebuginfod
+%endif
+
%if %{with python3}
%global __python %{__python3}
%global python_bcc python3-bcc
ExclusiveArch: x86_64 ppc64 aarch64 ppc64le
BuildRequires: bison cmake >= 2.8.7 flex make
BuildRequires: gcc gcc-c++ python2-devel elfutils-libelf-devel-static
+%if %{with libdebuginfod}
+BuildRequires: elfutils-debuginfod-client-devel
+%endif
%if %{with python3}
BuildRequires: python3-devel
%endif
%package -n libbcc
Summary: Shared Library for BPF Compiler Collection (BCC)
Requires: elfutils-libelf
+%if %{with libdebuginfod}
+Requires: elfutils-debuginfod-client
+%endif
%description -n libbcc
Shared Library for BPF Compiler Collection (BCC)
python (>= 2.7), python-netaddr, python-pyroute2 | python3-pyroute2, luajit,
libluajit-5.1-dev, arping, inetutils-ping | iputils-ping, iperf, netperf,
ethtool, devscripts, python3, dh-python
+# add 'libdebuginfod-dev' to Build-Depends for libdebuginfod support
Homepage: https://github.com/iovisor/bcc
Package: libbcc
Provides: libbpfcc, libbpfcc-dev
Conflicts: libbpfcc, libbpfcc-dev
Depends: libc6, libstdc++6, libelf1
+# add 'libdebuginfod1' to Depends if built with libdebuginfod support
Description: Shared Library for BPF Compiler Collection (BCC)
Shared Library for BPF Compiler Collection to control BPF programs
from userspace.