2024-01-06 06:22:17 +01:00
|
|
|
%define MAJver %(echo %version | cut -d. -f1)
|
|
|
|
Name: linux-tools
|
2024-07-25 21:09:08 +02:00
|
|
|
Version: 6.10.1
|
2024-01-06 06:22:17 +01:00
|
|
|
Release: 1mamba
|
|
|
|
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
|
|
|
|
BuildRequires: liblzma-devel
|
|
|
|
BuildRequires: libncurses-devel
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libpci-devel
|
|
|
|
BuildRequires: libpython27-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-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
|
|
|
|
%make -f Makefile.perf
|
|
|
|
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 \
|
|
|
|
PYTHON=python \
|
|
|
|
PYTHON_CONFIG=python-config \
|
|
|
|
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}/perf-read-vdso32
|
|
|
|
%{_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-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
|