From 081b1d0214201bbf235ff0a380c676fce594e207350f2e94cbd10ae618390aab Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Thu, 13 Oct 2022 07:31:29 +0000 Subject: [PATCH] Accepting request 1010274 from home:gmbr3:Active - Move bash-completion to subpackage so it isn't installed when not needed OBS-URL: https://build.opensuse.org/request/show/1010274 OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=124 --- cpupower.changes | 7 ++++++- cpupower.spec | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/cpupower.changes b/cpupower.changes index 36c282f..8bec708 100644 --- a/cpupower.changes +++ b/cpupower.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 7 15:59:26 UTC 2022 - Callum Farmer + +- Move bash-completion to subpackage so it isn't installed when + not needed + ------------------------------------------------------------------- Tue Jul 5 09:02:11 UTC 2022 - Thomas Renninger @@ -5,7 +11,6 @@ Tue Jul 5 09:02:11 UTC 2022 - Thomas Renninger -> still keep the patches, will be removed after trying to get this mainline - Add netlink (libnl-devel) requires -- Devel package should be noarch ------------------------------------------------------------------- Fri Apr 8 14:57:24 UTC 2022 - Dirk Müller diff --git a/cpupower.spec b/cpupower.spec index c1db284..08b3004 100644 --- a/cpupower.spec +++ b/cpupower.spec @@ -73,6 +73,16 @@ governor (e.g. ondemand, userspace, conservative) and the cpufreq HW driver For that purpose, it compares the performance governor to a configured powersave module. +%package bash-completion +Summary: Bash completion for cpupower +Group: System/Shells +Requires: bash-completion +Requires: %{name} +Supplements: (%{name} and bash-completion) + +%description bash-completion +bash command line completion support for cpupower. + %package rebuild Summary: Empty package to ensure rebuilding cpupower in OBS Group: System/Monitoring @@ -128,7 +138,6 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd %postun -n libcpupower0 -p /sbin/ldconfig %files -%{_datadir}/bash-completion/completions/cpupower %{_mandir}/man1/cpupower*%{?ext_man} %{_bindir}/cpupower %ifarch %{ix86} x86_64 @@ -157,6 +166,11 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd #%%{_includedir}/powercap.h %{_libdir}/libcpu*.so +%files bash-completion +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/cpupower + %files lang -f %{name}.lang %files rebuild