forked from pool/cpupower
Accepting request 1167813 from home:trenn:branches:hardware
- Parse turbostat and intel-speed-select version from kernel sources and add them to %description OBS-URL: https://build.opensuse.org/request/show/1167813 OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=136
This commit is contained in:
parent
ef1f8fe570
commit
034eaac04f
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 15 12:57:13 UTC 2024 - Thomas Renninger <trenn@suse.de>
|
||||||
|
|
||||||
|
- Parse turbostat and intel-speed-select version from kernel sources and
|
||||||
|
add them to %description
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 26 10:55:54 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Mon Feb 26 10:55:54 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cpupower
|
# spec file for package cpupower
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,6 +22,8 @@
|
|||||||
%define ssdir tools/power/x86/intel-speed-select
|
%define ssdir tools/power/x86/intel-speed-select
|
||||||
# Use this as version when things are in mainline kernel
|
# Use this as version when things are in mainline kernel
|
||||||
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
|
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
|
||||||
|
%global turbover %(grep -o "turbostat version [0-9.]*" %{_prefix}/src/linux/tools/power/x86/turbostat/turbostat.c)
|
||||||
|
%global issver %(grep -o "version_str =.*" %{_prefix}/src/linux/tools/power/x86/intel-speed-select/isst-config.c | grep -o "[0-9]\.[0-9][0-9]")
|
||||||
Name: cpupower
|
Name: cpupower
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -42,6 +44,9 @@ BuildRequires: pciutils-devel
|
|||||||
%description
|
%description
|
||||||
This tool accesses the Linux kernel's processor power subsystems
|
This tool accesses the Linux kernel's processor power subsystems
|
||||||
like CPU frequency switching (cpufreq) or CPU sleep states (cpuidle).
|
like CPU frequency switching (cpufreq) or CPU sleep states (cpuidle).
|
||||||
|
Also part of the package are:
|
||||||
|
%turbover
|
||||||
|
intel-speed-select %issver
|
||||||
|
|
||||||
%package -n libcpupower1
|
%package -n libcpupower1
|
||||||
Summary: Processor power related C-library
|
Summary: Processor power related C-library
|
||||||
|
Loading…
Reference in New Issue
Block a user