- update specfile:

* add bash completion subpackage.
  * add fish completion subpackage.

OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=30
This commit is contained in:
Soc Virnyl Estela 2023-12-23 08:24:18 +00:00 committed by Git OBS Bridge
parent 3a0d37b794
commit 8f6804673c
2 changed files with 33 additions and 1 deletions

View File

@ -23,6 +23,9 @@ Sat Dec 23 08:15:55 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncom
* Fix the behavior of `--no-buffer` in Windows
* Fix possible segfault in some devices (Display, Linux)
* Fix segfaults on first use of new images with Sixel flag (Image)
- update specfile:
* add bash completion subpackage.
* add fish completion subpackage.
-------------------------------------------------------------------
Tue Nov 21 15:32:10 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -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