%undefine with_multilib
%endif
-%define basever 5.16
+%define basever 5.19
%define postver .0
Summary: Assortment of tools for the Linux kernel
Summary(pl.UTF-8): Zestaw narzędzi dla jądra Linuksa
Name: kernel-tools
Version: %{basever}%{postver}
-Release: 3
+Release: 1
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
-# Source0-md5: e6680ce7c989a3efe58b51e3f3f0bf93
+# Source0-md5: f91bfe133d2cb1692f705947282e123a
Source1: cpupower.service
Source2: cpupower.config
+Source3: cpupower@.service
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
-# Patch0-md5: 0e03bc49d0db9ae31a5086ec49be3768
+# Patch0-md5: 5a015eeaa9a3bf5bea84290f54ccf48d
%endif
Patch1: x32.patch
Patch2: regex.patch
BuildRequires: libwrap-devel
BuildRequires: udev-devel
%endif
+# /usr/bin/turbostat
+Conflicts: pmtools < 20110323-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# otherwise /usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character
install -d $RPM_BUILD_ROOT{/etc/sysconfig,%{systemdunitdir}}
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/cpupower.service
cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpupower
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/cpupower@.service
%ifarch %{ix86} x32
install -p tools/power/cpupower/debug/i386/{centrino,powernow-k8}-decode $RPM_BUILD_ROOT%{_bindir}
%attr(755,root,root) %{_bindir}/cpupower
%{_mandir}/man1/cpupower*.1*
%{systemdunitdir}/cpupower.service
+%{systemdunitdir}/cpupower@.service
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpupower
%files cpupower-libs
%dir %{_libdir}/perf-core
%attr(755,root,root) %{_libdir}/perf-core/perf-archive
%attr(755,root,root) %{_libdir}/perf-core/perf-iostat
-%attr(755,root,root) %{_libdir}/perf-core/perf-with-kcore
%dir %{_libdir}/perf-core/dlfilters
%attr(755,root,root) %{_libdir}/perf-core/dlfilters/dlfilter-show-cycles.so
%attr(755,root,root) %{_libdir}/perf-core/dlfilters/dlfilter-test-api-v0.so