SHA256
1
0
forked from pool/bpftool

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
This commit is contained in:
Dirk Mueller 2022-10-12 10:50:55 +00:00 committed by Git OBS Bridge
parent f760fe10ed
commit 7b9668dc0d
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 7 16:22:21 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Move bash-completion to subpackage so it isn't installed when
not needed
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 8 15:15:39 UTC 2022 - Dirk Müller <dmueller@suse.com> Fri Apr 8 15:15:39 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -33,6 +33,16 @@ BuildRequires: libelf-devel
bpftool allows for inspection and simple modification of BPF objects (programs bpftool allows for inspection and simple modification of BPF objects (programs
and maps) on the system. 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 %package rebuild
Summary: Empty package to ensure rebuilding bpftool in OBS Summary: Empty package to ensure rebuilding bpftool in OBS
Group: System/Monitoring Group: System/Monitoring
@ -65,9 +75,11 @@ make install doc-install DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir
%files %files
%license GPL-2.0 %license GPL-2.0
%{_sbindir}/bpftool %{_sbindir}/bpftool
%{_datadir}/bash-completion/completions/bpftool
%{_mandir}/man?/*.gz %{_mandir}/man?/*.gz
%files bash-completion
%{_datadir}/bash-completion/completions/bpftool
%files rebuild %files rebuild
%license GPL-2.0 %license GPL-2.0