From 8f6804673ca336441c91fd23be9e41eede535090e8b90ef495eb4f78f18770d2 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sat, 23 Dec 2023 08:24:18 +0000 Subject: [PATCH] - update specfile: * add bash completion subpackage. * add fish completion subpackage. OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=30 --- fastfetch.changes | 3 +++ fastfetch.spec | 31 ++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/fastfetch.changes b/fastfetch.changes index 9d0e96d..c187bcd 100644 --- a/fastfetch.changes +++ b/fastfetch.changes @@ -23,6 +23,9 @@ Sat Dec 23 08:15:55 UTC 2023 - Soc Virnyl Estela diff --git a/fastfetch.spec b/fastfetch.spec index d8a9acd..6e2ebc2 100644 --- a/fastfetch.spec +++ b/fastfetch.spec @@ -63,6 +63,26 @@ displaying them in a pretty way. It is written in pure c, with performance and customizability in mind. Currently Linux, Android, FreeBSD, MacOS and Windows 7+ are supported. +%package fish-completion +Summary: Fish Completion for %{name} +Group: System/Shells +Supplements: (%{name} and fish) +Requires: fish +BuildArch: noarch + +%description fish-completion +Fish command-line completion support for %{name}. + +%package bash-completion +Summary: Bash Completion for %{name} +Group: System/Shells +Supplements: (%{name} and bash-completion) +Requires: bash-completion +BuildArch: noarch + +%description bash-completion +Bash command-line completion support for %{name}. + %prep %setup -q @@ -81,6 +101,15 @@ sed -i "s|\#\!\/usr\/bin\/env bash||g" completions/bash %{_bindir}/flashfetch %{_bindir}/%{name} %{_datadir}/%{name}/ -%{_datadir}/bash-completion/ + +%files bash-completion +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/fastfetch + +%files fish-completion +%dir %{_datadir}/fish +%dir %{_datadir}/fish/vendor_completions.d +%{_datadir}/fish/vendor_completions.d/fastfetch.fish %changelog