Accepting request 1069158 from home:gmbr3:Active

- Split bash-completion to seperate sub-package

OBS-URL: https://build.opensuse.org/request/show/1069158
OBS-URL: https://build.opensuse.org/package/show/network:utilities/ethtool?expand=0&rev=127
This commit is contained in:
Jan Engelhardt 2023-03-06 12:24:42 +00:00 committed by Git OBS Bridge
parent ab7340776c
commit 535784fdcf
2 changed files with 25 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 3 13:08:27 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
- Split bash-completion to seperate sub-package
-------------------------------------------------------------------
Tue Feb 21 15:00:27 UTC 2023 - Michal Kubecek <mkubecek@suse.cz>

View File

@ -37,6 +37,20 @@ BuildRequires: pkgconfig(libmnl)
Ethtool is a small utility for examining and tuning ethernet-based
network interfaces. See the man page for more details.
%package bash-completion
Summary: Bash completion for ethtool
Group: System/Shells
Requires: %{name}
Requires: bash-completion
%if 0%{?suse_version} >= 1500
Supplements: (%{name} and bash-completion)
%else
Supplements: packageand(%{name}:bash-completion)
%endif
%description bash-completion
bash command line completion support for ethtool.
%prep
%setup -q
@ -54,9 +68,6 @@ make install DESTDIR="%buildroot"
%files
%defattr(-,root,root)
%{_sbindir}/ethtool
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/ethtool
%{_mandir}/man8/ethtool.8*
%if (0%{?suse_version} >= 1500) || (0%{?sle_version} >= 120300)
%license COPYING
@ -65,4 +76,10 @@ make install DESTDIR="%buildroot"
%endif
%doc AUTHORS NEWS
%files bash-completion
%defattr(-,root,root)
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/ethtool
%changelog