2024-01-06 06:22:17 +01:00
|
|
|
%define MAJver %(echo %version | cut -d. -f1)
|
|
|
|
Name: linux-tools
|
2024-11-23 17:09:21 +01:00
|
|
|
Version: 6.12.1
|
2024-11-02 16:46:21 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 06:22:17 +01:00
|
|
|
Summary: Tools provided with the Linux Kernel
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.kernel.org/
|
|
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v%{MAJver}.x/linux-%{version}.tar.xz
|
|
|
|
Source1: cpupower.service
|
|
|
|
Source2: cpupower.default
|
|
|
|
Source3: cpupower.systemd
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libdw-devel
|
|
|
|
BuildRequires: libelf-devel
|
2024-11-19 10:26:32 +01:00
|
|
|
BuildRequires: libllvm-devel
|
2024-01-06 06:22:17 +01:00
|
|
|
BuildRequires: liblzma-devel
|
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libpci-devel
|
2024-09-16 16:02:20 +02:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 06:22:22 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 06:22:17 +01:00
|
|
|
BuildRequires: libslang-devel
|
2024-01-06 06:22:22 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libtraceevent-devel
|
2024-09-16 16:02:20 +02:00
|
|
|
BuildRequires: libtracefs-devel
|
2024-01-06 06:22:17 +01:00
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libunwind-devel
|
|
|
|
BuildRequires: libwrap-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
BuildRequires: libzstd-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 06:22:22 +01:00
|
|
|
BuildRequires: libtraceevent-devel
|
2024-01-06 06:22:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Tools provided with the Linux Kernel.
|
|
|
|
|
|
|
|
%package -n cpupower
|
|
|
|
Summary: Linux kernel tool to examine and tune power saving related features of your processor
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Requires: libcpupower = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n cpupower
|
|
|
|
Linux kernel tool to examine and tune power saving related features of your processor.
|
|
|
|
|
|
|
|
%package -n libcpupower
|
|
|
|
Summary: Shared library of cpupower tool
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libcpupower
|
|
|
|
Shared library of cpupower tool.
|
|
|
|
|
|
|
|
%package -n libcpupower-devel
|
|
|
|
Summary: Development header files and static library for libcpupower
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libcpupower = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libcpupower-devel
|
|
|
|
Development header files and static library for libcpupower.
|
|
|
|
|
|
|
|
%package -n usbip
|
|
|
|
Summary: Linux kernel tool to sharing USB devices over IP network
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Requires: libusbip = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n usbip
|
|
|
|
Linux kernel tool to sharing USB devices over IP network.
|
|
|
|
|
|
|
|
%package -n libusbip
|
|
|
|
Summary: Shared library of usbip tool
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libusbip
|
|
|
|
Shared library of usbip tool.
|
|
|
|
|
|
|
|
%package -n libusbip-devel
|
|
|
|
Summary: Development header files and static library for libusbip
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libusbip = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libusbip-devel
|
|
|
|
Development header files and static library for libusbip.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n linux-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd tools/perf
|
2024-10-28 09:22:29 +01:00
|
|
|
%make -f Makefile.perf \
|
|
|
|
NO_PERF_READ_VDSO32=1 \
|
|
|
|
NO_PERF_READ_VDSOX32=1
|
|
|
|
|
2024-01-06 06:22:17 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd power/cpupower
|
|
|
|
%make VERSION=%{version}-%{release}
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
cd power/x86/x86_energy_perf_policy
|
|
|
|
%make
|
|
|
|
|
|
|
|
cd ../turbostat
|
|
|
|
%make
|
|
|
|
|
|
|
|
cd ../../..
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cd usb/usbip
|
|
|
|
# Fix gcc compilation
|
|
|
|
sed -i 's,-Wall -Werror -Wextra,-fcommon,' configure.ac
|
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix=%{_prefix} --sbindir=%{_sbindir}
|
|
|
|
%make
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd thermal/tmon
|
|
|
|
%make
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd hv
|
|
|
|
CFLAGS+=' -DKVP_SCRIPTS_PATH=\"/usr/lib/hyperv/kvp_scripts/\"' make
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
#cd bpf
|
|
|
|
## doesn't compile when we don't first compile bpftool in its own directory and
|
|
|
|
## man pages require to be also launch from the subdirectory
|
|
|
|
#% make -C bpftool all doc
|
|
|
|
## runqslower, require kernel binary path to build, skip it
|
|
|
|
#% make -W runqslower
|
|
|
|
#cd ..
|
|
|
|
|
|
|
|
cd bootconfig
|
|
|
|
%make
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
cd tools/perf
|
|
|
|
%makeinstall -f Makefile.perf \
|
|
|
|
prefix=%{_prefix} \
|
|
|
|
lib=lib/perf \
|
|
|
|
perfexecdir=lib/perf \
|
|
|
|
EXTRA_CFLAGS=' -Wno-error=bad-function-cast -Wno-error=declaration-after-statement -Wno-error=switch-enum' \
|
|
|
|
NO_SDT=1 \
|
2024-10-28 09:22:29 +01:00
|
|
|
NO_PERF_READ_VDSO32=1 \
|
|
|
|
NO_PERF_READ_VDSOX32=1 \
|
2024-01-06 06:22:17 +01:00
|
|
|
PYTHON=python \
|
2024-10-28 09:22:29 +01:00
|
|
|
PYTHON_CONFIG=python3-config \
|
2024-01-06 06:22:17 +01:00
|
|
|
install-python_ext
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd power/cpupower
|
|
|
|
%makeinstall \
|
|
|
|
sbindir=%{_bindir} \
|
|
|
|
libdir=%{_libdir} \
|
|
|
|
mandir=%{_mandir} \
|
|
|
|
docdir=%{_docdir}/cpupower \
|
|
|
|
install-man
|
|
|
|
|
|
|
|
# install startup scripts
|
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/cpupower.service
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/default/cpupower
|
|
|
|
install -D -m0755 %{SOURCE3} %{buildroot}%{_systemd_util_dir}/scripts/cpupower
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
cd power/x86/x86_energy_perf_policy
|
|
|
|
install -D -m0755 x86_energy_perf_policy %{buildroot}%{_bindir}/x86_energy_perf_policy
|
|
|
|
install -D -m0644 x86_energy_perf_policy.8 %{buildroot}%{_mandir}/man8/x86_energy_perf_policy.8
|
|
|
|
|
|
|
|
cd ../turbostat
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
cd ../../..
|
|
|
|
%endif
|
|
|
|
|
|
|
|
cd usb/usbip
|
|
|
|
%makeinstall \
|
|
|
|
libdir=%{_libdir} \
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
cd thermal/tmon
|
|
|
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
|
|
|
cd ../..
|
|
|
|
|
2024-06-24 21:58:24 +02:00
|
|
|
%find_lang cpupower --all-name
|
2024-01-06 06:22:17 +01:00
|
|
|
|
|
|
|
# Fix brp-strip
|
|
|
|
strip %{buildroot}%{_bindir}/trace
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%preun -n cpupower
|
|
|
|
%systemd_preun cpupower
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun -n cpupower
|
|
|
|
%systemd_postun cpupower
|
|
|
|
:
|
|
|
|
|
|
|
|
%post -n cpupower
|
|
|
|
%systemd_post cpupower
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_sysconfdir}/bash_completion.d/perf
|
|
|
|
%{_bindir}/perf
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%{_bindir}/x86_energy_perf_policy
|
|
|
|
%{_mandir}/man8/x86_energy_perf_policy.8*
|
|
|
|
%endif
|
|
|
|
%{_bindir}/trace
|
|
|
|
%{_includedir}/perf/perf_dlfilter.h
|
|
|
|
%dir %{_prefix}/lib/perf
|
|
|
|
%{_prefix}/lib/perf/*
|
2024-01-06 06:22:22 +01:00
|
|
|
%dir %{python3_sitearch}/perf-*-py%{python3_version}.egg-info
|
|
|
|
%{python3_sitearch}/perf-*-py%{python3_version}.egg-info/*
|
|
|
|
%{python3_sitearch}/perf.cpython-*.so
|
2024-01-06 06:22:17 +01:00
|
|
|
%{_mandir}/man1/perf*.1*
|
|
|
|
%{_datadir}/perf-core/strace/groups/file
|
|
|
|
%{_datadir}/perf-core/strace/groups/string
|
|
|
|
%{_bindir}/tmon
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%{_bindir}/turbostat
|
|
|
|
%{_mandir}/man8/turbostat.8*
|
|
|
|
%endif
|
|
|
|
%{_datadir}/doc/perf-tip/tips.txt
|
|
|
|
|
2024-06-24 21:58:24 +02:00
|
|
|
%files -n cpupower -f tools/cpupower.lang
|
2024-01-06 06:22:17 +01:00
|
|
|
%defattr (-, root, root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/default/cpupower
|
|
|
|
%{_sysconfdir}/cpufreq-bench.conf
|
|
|
|
%{_bindir}/cpufreq-bench
|
|
|
|
%{_bindir}/cpufreq-bench_plot.sh
|
|
|
|
%{_bindir}/cpupower
|
|
|
|
%{_unitdir}/cpupower.service
|
|
|
|
%{_prefix}/lib/systemd/scripts/cpupower
|
|
|
|
%{_datadir}/bash-completion/completions/cpupower
|
|
|
|
%{_mandir}/man1/cpupower*.1*
|
|
|
|
%dir %{_docdir}/cpupower
|
|
|
|
%{_docdir}/cpupower/*
|
|
|
|
|
|
|
|
%files -n libcpupower
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libcpupower.so.*
|
|
|
|
|
|
|
|
%files -n libcpupower-devel
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_includedir}/cpufreq.h
|
|
|
|
%{_includedir}/cpuidle.h
|
2024-01-06 06:22:22 +01:00
|
|
|
%{_includedir}/powercap.h
|
2024-01-06 06:22:17 +01:00
|
|
|
%{_libdir}/libcpupower.so
|
|
|
|
|
|
|
|
%files -n usbip
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_sbindir}/usbip
|
|
|
|
%{_sbindir}/usbipd
|
|
|
|
%{_mandir}/man8/usbip.8*
|
|
|
|
%{_mandir}/man8/usbipd.8*
|
|
|
|
|
|
|
|
%files -n libusbip
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libusbip.so.*
|
|
|
|
|
|
|
|
%files -n libusbip-devel
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%dir %{_includedir}/usbip
|
|
|
|
%{_includedir}/usbip/*.h
|
|
|
|
%{_libdir}/libusbip.a
|
|
|
|
%{_libdir}/libusbip.so
|
|
|
|
|
|
|
|
%changelog
|
2024-11-23 17:09:21 +01:00
|
|
|
* Sat Nov 23 2024 Automatic Build System <autodist@openmamba.org> 6.12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-19 10:26:32 +01:00
|
|
|
* Mon Nov 18 2024 Automatic Build System <autodist@openmamba.org> 6.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-18 10:15:52 +01:00
|
|
|
* Mon Nov 18 2024 Automatic Build System <autodist@openmamba.org> 6.11.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-15 16:39:19 +01:00
|
|
|
* Fri Nov 15 2024 Automatic Build System <autodist@openmamba.org> 6.11.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-10 15:04:49 +01:00
|
|
|
* Sat Nov 09 2024 Automatic Build System <autodist@openmamba.org> 6.11.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-02 16:46:21 +01:00
|
|
|
* Sat Nov 02 2024 Automatic Build System <autodist@openmamba.org> 6.11.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-28 09:22:29 +01:00
|
|
|
* Sun Oct 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.11.5-2mamba
|
|
|
|
- x86_64: remove x86 built binaries
|
|
|
|
|
|
|
|
* Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 6.11.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 18 2024 Automatic Build System <autodist@openmamba.org> 6.11.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-11 21:19:29 +02:00
|
|
|
* Fri Oct 11 2024 Automatic Build System <autodist@openmamba.org> 6.11.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-05 10:49:45 +02:00
|
|
|
* Sat Oct 05 2024 Automatic Build System <autodist@openmamba.org> 6.11.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-01 13:39:00 +02:00
|
|
|
* Tue Oct 01 2024 Automatic Build System <autodist@openmamba.org> 6.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-09-16 16:02:20 +02:00
|
|
|
* Mon Sep 16 2024 Automatic Build System <autodist@openmamba.org> 6.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-08-20 10:20:43 +02:00
|
|
|
* Mon Aug 19 2024 Automatic Build System <autodist@openmamba.org> 6.10.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-08-18 22:49:51 +02:00
|
|
|
* Thu Aug 15 2024 Automatic Build System <autodist@openmamba.org> 6.10.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-08-12 19:28:49 +02:00
|
|
|
* Mon Aug 12 2024 Automatic Build System <autodist@openmamba.org> 6.10.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-08-04 12:16:50 +02:00
|
|
|
* Sat Aug 03 2024 Automatic Build System <autodist@openmamba.org> 6.10.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-28 14:12:18 +02:00
|
|
|
* Sat Jul 27 2024 Automatic Build System <autodist@openmamba.org> 6.10.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-25 21:09:08 +02:00
|
|
|
* Thu Jul 25 2024 Automatic Build System <autodist@openmamba.org> 6.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-19 11:13:15 +02:00
|
|
|
* Wed Jul 17 2024 Automatic Build System <autodist@openmamba.org> 6.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-06 10:44:58 +02:00
|
|
|
* Sat Jul 06 2024 Automatic Build System <autodist@openmamba.org> 6.9.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-28 15:58:19 +02:00
|
|
|
* Thu Jun 27 2024 Automatic Build System <autodist@openmamba.org> 6.9.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-24 21:58:24 +02:00
|
|
|
* Mon Jun 24 2024 Automatic Build System <autodist@openmamba.org> 6.9.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-07 22:50:59 +01:00
|
|
|
* Tue Feb 06 2024 Automatic Build System <autodist@openmamba.org> 6.7.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-01 20:40:02 +01:00
|
|
|
* Thu Feb 01 2024 Automatic Build System <autodist@openmamba.org> 6.7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-26 16:53:13 +01:00
|
|
|
* Fri Jan 26 2024 Automatic Build System <autodist@openmamba.org> 6.7.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-21 11:07:49 +01:00
|
|
|
* Sat Jan 20 2024 Automatic Build System <autodist@openmamba.org> 6.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-09 13:58:20 +01:00
|
|
|
* Tue Jan 09 2024 Automatic Build System <autodist@openmamba.org> 6.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-07 14:38:01 +01:00
|
|
|
* Fri Jan 05 2024 Automatic Build System <autodist@openmamba.org> 6.6.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:23:23 +01:00
|
|
|
* Mon Jan 01 2024 Automatic Build System <autodist@mambasoft.it> 6.6.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:23:17 +01:00
|
|
|
* Thu Dec 21 2023 Automatic Build System <autodist@mambasoft.it> 6.6.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:23:08 +01:00
|
|
|
* Fri Dec 15 2023 Automatic Build System <autodist@mambasoft.it> 6.6.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:23:01 +01:00
|
|
|
* Mon Dec 11 2023 Automatic Build System <autodist@mambasoft.it> 6.6.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:54 +01:00
|
|
|
* Fri Dec 08 2023 Automatic Build System <autodist@mambasoft.it> 6.6.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:47 +01:00
|
|
|
* Sun Dec 03 2023 Automatic Build System <autodist@mambasoft.it> 6.6.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:40 +01:00
|
|
|
* Wed Nov 29 2023 Automatic Build System <autodist@mambasoft.it> 6.6.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:34 +01:00
|
|
|
* Mon Nov 20 2023 Automatic Build System <autodist@mambasoft.it> 6.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:27 +01:00
|
|
|
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 6.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:22 +01:00
|
|
|
* Thu Nov 02 2023 Automatic Build System <autodist@mambasoft.it> 6.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:22:17 +01:00
|
|
|
* Mon Aug 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1-1mamba
|
|
|
|
- package created
|