Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6512017460 | |||
| 9678eff929 | |||
| 36226b0cad | |||
| 98de0f73e4 |
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 10:29:52 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Package cpupower systemd service that appeared with kernel 6.16
|
||||
(commit 9c70b77).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 07:19:07 UTC 2025 - munix9@googlemail.com
|
||||
|
||||
- Apply cpupower_fix_library_so_name.patch only for kernel < 6.15.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 18 09:01:50 UTC 2025 - Thomas Renninger <trenn@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cpupower
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -109,7 +109,9 @@ There is no reason to install this package.
|
||||
# copy necessary files from kernel-source since we need to modify them
|
||||
(cd %{_prefix}/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} lib) | tar -xf -
|
||||
chmod +x tools/power/cpupower/utils/version-gen.sh
|
||||
%if %{pkg_vcmp kernel-source < 6.15.0}
|
||||
%patch -P 1 -p1
|
||||
%endif
|
||||
cd %{maindir}
|
||||
|
||||
%build
|
||||
@@ -142,9 +144,28 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd
|
||||
|
||||
%ldconfig_scriptlets -n libcpupower1
|
||||
|
||||
%if %{pkg_vcmp kernel-source >= 6.16}
|
||||
%pre
|
||||
%service_add_pre cpupower.service
|
||||
|
||||
%post
|
||||
%service_add_post cpupower.service
|
||||
|
||||
%preun
|
||||
%service_del_preun cpupower.service
|
||||
|
||||
%postun
|
||||
%service_del_postun cpupower.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%{_mandir}/man1/cpupower*%{?ext_man}
|
||||
%{_bindir}/cpupower
|
||||
%if %{pkg_vcmp kernel-source >= 6.16}
|
||||
%config %{_sysconfdir}/cpupower-service.conf
|
||||
%{_unitdir}/cpupower.service
|
||||
%{_libexecdir}/cpupower
|
||||
%endif
|
||||
%ifarch %{ix86} x86_64
|
||||
%{_mandir}/man8/turbostat*%{?ext_man}
|
||||
%{_bindir}/turbostat
|
||||
|
||||
Reference in New Issue
Block a user