From 535784fdcfde9b87fc1a64bfdcb8f2f48f6fe6b5efd975934bdfcc9d12f987a8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 6 Mar 2023 12:24:42 +0000 Subject: [PATCH 1/2] 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 --- ethtool.changes | 5 +++++ ethtool.spec | 23 ++++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/ethtool.changes b/ethtool.changes index 61a7970..0d99a10 100644 --- a/ethtool.changes +++ b/ethtool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 3 13:08:27 UTC 2023 - Callum Farmer + +- Split bash-completion to seperate sub-package + ------------------------------------------------------------------- Tue Feb 21 15:00:27 UTC 2023 - Michal Kubecek diff --git a/ethtool.spec b/ethtool.spec index c757bf1..439cc7e 100644 --- a/ethtool.spec +++ b/ethtool.spec @@ -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 From 76134cedf9ae05b8ac334438ba80b00dcf1f5cca5b63594782f96382c62de604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kube=C4=8Dek?= Date: Mon, 6 Mar 2023 12:57:34 +0000 Subject: [PATCH 2/2] - fix a typo in changelog OBS-URL: https://build.opensuse.org/package/show/network:utilities/ethtool?expand=0&rev=128 --- ethtool.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethtool.changes b/ethtool.changes index 0d99a10..738af32 100644 --- a/ethtool.changes +++ b/ethtool.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Fri Mar 3 13:08:27 UTC 2023 - Callum Farmer -- Split bash-completion to seperate sub-package +- Split bash-completion to separate sub-package ------------------------------------------------------------------- Tue Feb 21 15:00:27 UTC 2023 - Michal Kubecek