Accepting request 986896 from home:trenn:branches:hardware

- Remove powercap capabilities to patch againt latest kernel sources
  -> still keep the patches, will be removed after trying to get this
     mainline
- Add netlink (libnl-devel) requires
- Devel package should be noarch

OBS-URL: https://build.opensuse.org/request/show/986896
OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=123
This commit is contained in:
Thomas Renninger 2022-07-05 15:24:28 +00:00 committed by Git OBS Bridge
parent a995557204
commit 48044d751d
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jul 5 09:02:11 UTC 2022 - Thomas Renninger <trenn@suse.de>
- Remove powercap capabilities to patch againt latest kernel sources
-> 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

@ -24,18 +24,20 @@
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
Name: cpupower
Version: %{version}
#Version: 5.19
Release: 0
Summary: Tools to determine and set CPU Power related Settings
License: GPL-2.0-only
Group: System/Base
URL: https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git
Patch1: cpupower_rapl.patch
Patch2: rapl_monitor.patch
#Patch1: cpupower_rapl.patch
#Patch2: rapl_monitor.patch
Patch3: cpupower_exclude_kernel_Makefile.patch
Patch6: amd_do_not_show_amount_of_boost_states_if_zero.patch
BuildRequires: gettext-tools
BuildRequires: kernel-source
BuildRequires: libcap-devel
BuildRequires: libnl-devel
BuildRequires: pciutils
BuildRequires: pciutils-devel
@ -89,8 +91,8 @@ There is no reason to install this package.
(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
cd %{maindir}
%patch1 -p1
%patch2 -p1
#%%patch1 -p1
#%%patch2 -p1
%patch3 -p1
%patch6 -p1
@ -152,7 +154,7 @@ mv %{buildroot}//%{_docdir}/%{name}/cpufreq-bench_script.sh %{buildroot}/%{_docd
%files devel
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%{_includedir}/powercap.h
#%%{_includedir}/powercap.h
%{_libdir}/libcpu*.so
%files lang -f %{name}.lang