Using debugsource package during package build

I just learnt I can't use debugsource package during package build ;-(
No matching package to install: 'libbpf-debugsource'

The issue I'm trying to solve is to change bcc package to use
libbpf as dynamic dependency instead of static one, which is
causing many other problems.

Bcc would normaly download libbpf from Github (during the build) and
use some of its sources to build library. The recent
change allows bcc to use libbpf package instead and link libbpf
dynamicaly into libbcc. The bcc change already got upstream:
<a href="" title=""></a>

So now it should be just the matter of patch below..

However bcc package still needs part of the libbpf sources to build
libbcc, which I was hoping would be supplied by libbpf-debugsource

I'm told there's no way I could use debugsource package during
the spec build. Could I build my 'own libbpf-source' package?

Any ideas/suggestions?


Requires: %{name}-tools = %{version}-%{release}
+Requires: libbpf

BCC is a toolkit for creating efficient kernel tracing and manipulation
@@ -113,6 +115,7 @@ Command line tools for BPF Compiler Collection (BCC)
%cmake . \
-DREVISION_LAST=%{version} -DREVISION=%{version} -DPYTHON_CMD=python3 \

@@ -152,6 +155,7 @@ rm -rf %{buildroot}%{_datadir}/%{name}/tools/old/
%license LICENSE.txt

%files devel