diff --git a/bpftool.changes b/bpftool.changes index 81f1505..7dc6199 100644 --- a/bpftool.changes +++ b/bpftool.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 7 16:22:21 UTC 2022 - Callum Farmer + +- Move bash-completion to subpackage so it isn't installed when + not needed + ------------------------------------------------------------------- Fri Apr 8 15:15:39 UTC 2022 - Dirk Müller diff --git a/bpftool.spec b/bpftool.spec index df78c96..d38d352 100644 --- a/bpftool.spec +++ b/bpftool.spec @@ -33,6 +33,16 @@ BuildRequires: libelf-devel bpftool allows for inspection and simple modification of BPF objects (programs and maps) on the system. +%package bash-completion +Summary: Bash completion for bpftool +Group: System/Shells +Requires: bash-completion +Requires: %{name} +Supplements: (%{name} and bash-completion) + +%description bash-completion +bash command line completion support for bpftool. + %package rebuild Summary: Empty package to ensure rebuilding bpftool in OBS Group: System/Monitoring @@ -65,9 +75,11 @@ make install doc-install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir %files %license GPL-2.0 %{_sbindir}/bpftool -%{_datadir}/bash-completion/completions/bpftool %{_mandir}/man?/*.gz +%files bash-completion +%{_datadir}/bash-completion/completions/bpftool + %files rebuild %license GPL-2.0