408 lines
12 KiB
RPMSpec
408 lines
12 KiB
RPMSpec
%define MAJver %(echo %version | cut -d. -f1)
|
|
Name: linux-tools
|
|
Version: 6.12.2
|
|
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: libllvm-devel
|
|
BuildRequires: liblzma-devel
|
|
BuildRequires: libncurses-devel
|
|
BuildRequires: libnuma-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libpci-devel
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: libslang-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtraceevent-devel
|
|
BuildRequires: libtracefs-devel
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: libunwind-devel
|
|
BuildRequires: libwrap-devel
|
|
BuildRequires: libz-devel
|
|
BuildRequires: libzstd-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libtraceevent-devel
|
|
|
|
%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 \
|
|
NO_PERF_READ_VDSO32=1 \
|
|
NO_PERF_READ_VDSOX32=1
|
|
|
|
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 \
|
|
NO_PERF_READ_VDSO32=1 \
|
|
NO_PERF_READ_VDSOX32=1 \
|
|
PYTHON=python \
|
|
PYTHON_CONFIG=python3-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 ../..
|
|
|
|
%find_lang cpupower --all-name
|
|
|
|
# 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/*
|
|
%dir %{python3_sitearch}/perf-*-py%{python3_version}.egg-info
|
|
%{python3_sitearch}/perf-*-py%{python3_version}.egg-info/*
|
|
%{python3_sitearch}/perf.cpython-*.so
|
|
%{_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
|
|
|
|
%files -n cpupower -f tools/cpupower.lang
|
|
%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
|
|
%{_includedir}/powercap.h
|
|
%{_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
|
|
* Thu Dec 05 2024 Automatic Build System <autodist@openmamba.org> 6.12.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 23 2024 Automatic Build System <autodist@openmamba.org> 6.12.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 18 2024 Automatic Build System <autodist@openmamba.org> 6.12-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 18 2024 Automatic Build System <autodist@openmamba.org> 6.11.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Nov 15 2024 Automatic Build System <autodist@openmamba.org> 6.11.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 09 2024 Automatic Build System <autodist@openmamba.org> 6.11.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 02 2024 Automatic Build System <autodist@openmamba.org> 6.11.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|
|
|
|
* Fri Oct 11 2024 Automatic Build System <autodist@openmamba.org> 6.11.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Oct 05 2024 Automatic Build System <autodist@openmamba.org> 6.11.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 01 2024 Automatic Build System <autodist@openmamba.org> 6.11.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Sep 16 2024 Automatic Build System <autodist@openmamba.org> 6.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 19 2024 Automatic Build System <autodist@openmamba.org> 6.10.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Aug 15 2024 Automatic Build System <autodist@openmamba.org> 6.10.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 12 2024 Automatic Build System <autodist@openmamba.org> 6.10.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 03 2024 Automatic Build System <autodist@openmamba.org> 6.10.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 27 2024 Automatic Build System <autodist@openmamba.org> 6.10.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jul 25 2024 Automatic Build System <autodist@openmamba.org> 6.10.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 17 2024 Automatic Build System <autodist@openmamba.org> 6.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 06 2024 Automatic Build System <autodist@openmamba.org> 6.9.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jun 27 2024 Automatic Build System <autodist@openmamba.org> 6.9.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jun 24 2024 Automatic Build System <autodist@openmamba.org> 6.9.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Feb 06 2024 Automatic Build System <autodist@openmamba.org> 6.7.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 01 2024 Automatic Build System <autodist@openmamba.org> 6.7.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jan 26 2024 Automatic Build System <autodist@openmamba.org> 6.7.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jan 20 2024 Automatic Build System <autodist@openmamba.org> 6.7.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 09 2024 Automatic Build System <autodist@openmamba.org> 6.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jan 05 2024 Automatic Build System <autodist@openmamba.org> 6.6.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jan 01 2024 Automatic Build System <autodist@mambasoft.it> 6.6.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Dec 21 2023 Automatic Build System <autodist@mambasoft.it> 6.6.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Dec 15 2023 Automatic Build System <autodist@mambasoft.it> 6.6.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Dec 11 2023 Automatic Build System <autodist@mambasoft.it> 6.6.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Dec 08 2023 Automatic Build System <autodist@mambasoft.it> 6.6.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 03 2023 Automatic Build System <autodist@mambasoft.it> 6.6.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 29 2023 Automatic Build System <autodist@mambasoft.it> 6.6.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 20 2023 Automatic Build System <autodist@mambasoft.it> 6.6.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 08 2023 Automatic Build System <autodist@mambasoft.it> 6.6.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 02 2023 Automatic Build System <autodist@mambasoft.it> 6.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Aug 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1-1mamba
|
|
- package created
|