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
This commit is contained in:
Thomas Renninger 2022-10-13 07:31:29 +00:00 committed by Git OBS Bridge
parent 48044d751d
commit 081b1d0214
2 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 7 15:59:26 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Move bash-completion to subpackage so it isn't installed when
not needed
-------------------------------------------------------------------
Tue Jul 5 09:02:11 UTC 2022 - Thomas Renninger <trenn@suse.de>
@ -5,7 +11,6 @@ Tue Jul 5 09:02:11 UTC 2022 - Thomas Renninger <trenn@suse.de>
-> 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 <dmueller@suse.com>

View File

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