From 1cc1af962c2411020f6cf7aa884309e42935c7adf120aed1d7fa1b6b1bcd2ed5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 12 Oct 2020 13:12:12 +0000 Subject: [PATCH] split completions OBS-URL: https://build.opensuse.org/package/show/utilities/cpu-x?expand=0&rev=6 --- cpu-x.spec | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/cpu-x.spec b/cpu-x.spec index eb3aba8..71ad0f0 100644 --- a/cpu-x.spec +++ b/cpu-x.spec @@ -43,6 +43,33 @@ and peripherals. It is similar to CPU-Z (Windows) and can be used in graphical mode by using GTK or in text-based mode by using NCurses. A dump mode is present from command line. +%package bash-completion +Summary: Bash completion for %name +Group: System/Shells +Supplements: (%name and bash-completion) +BuildArch: noarch + +%description bash-completion +Shell completion definitions from %name for %name. + +%package fish-completion +Summary: Bash completion for %name +Group: System/Shells +Supplements: (%name and fish) +BuildArch: noarch + +%description fish-completion +Shell completion definitions from %name for %name. + +%package zsh-completion +Summary: Bash completion for %name +Group: System/Shells +Supplements: (%name and zsh) +BuildArch: noarch + +%description zsh-completion +Shell completion definitions from %name for %name. + %prep %autosetup -p1 -n CPU-X-%version @@ -58,13 +85,19 @@ rm -Rf "%buildroot/%_datadir/polkit-1" "%buildroot/%_datadir/applications" %files -f %name.lang %_bindir/cpu-x %_libexecdir/cpu-x* -%_datadir/bash-completion/ %_datadir/cpu-x/ -%_datadir/fish/ %_datadir/icons/* %_datadir/glib-2.0/ %_datadir/metainfo/ -%_datadir/zsh/ %license COPYING +%files bash-completion +%_datadir/bash-completion/ + +%files fish-completion +%_datadir/fish/ + +%files zsh-completion +%_datadir/zsh/ + %changelog