From 7b9668dc0d058698cf909e2202ee4d6bb943999c43140d6f3ea9e445a16b8ee0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 12 Oct 2022 10:50:55 +0000 Subject: [PATCH] Accepting request 1008849 from home:gmbr3:Active - Move bash-completion to subpackage so it isn't installed when not needed OBS-URL: https://build.opensuse.org/request/show/1008849 OBS-URL: https://build.opensuse.org/package/show/Base:System/bpftool?expand=0&rev=8 --- bpftool.changes | 6 ++++++ bpftool.spec | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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