# TODO:
# - redefine: PACKAGE_BUGREPORT=cpufreq@vger.kernel.org
# - add -n python-perf?
-# - without perf bcond does not work (it still builds it)
# - add bcond to disable building docs (perf docs)
-# - install of perf compiles things over again
+# - install of perf links perf binary again
# Conditional build:
%bcond_without verbose # verbose build (V=1)
%bcond_without perf # perf tools
%bcond_without gtk # GTK+ 2.x perf support
%bcond_without libunwind # libunwind perf support
+%bcond_without multilib # multilib perf support
%ifarch x32
%undefine with_libunwind
%endif
+%ifnarch %{x8664}
+%undefine with_multilib
+%endif
-%define basever 3.19
-%define postver .3
+%define basever 4.4
+%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/v3.x/linux-%{basever}.tar.xz
-# Source0-md5: d3fc8316d4d4d04b65cbc2d70799e763
+Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{basever}.tar.xz
+# Source0-md5: 9a78fa2eb6c68ca5a40ed5af08142599
Source1: cpupower.service
Source2: cpupower.config
%if "%{postver}" != ".0"
-Patch0: https://www.kernel.org/pub/linux/kernel/v3.x/patch-%{version}.xz
-# Patch0-md5: 1fec75551b2f55fced43df8394b1fd9a
+Patch0: https://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz
+# Patch0-md5: 3a465c7cf55ec9dbf2d72d9292aa5fde
%endif
Patch1: x32.patch
URL: http://www.kernel.org/
-%ifarch %{x8664}
-BuildRequires: gcc-multilib-x32
-%endif
BuildRequires: gettext-tools
BuildRequires: pciutils-devel
BuildRequires: rpmbuild(macros) >= 1.647
BuildRequires: docbook-style-xsl
BuildRequires: elfutils-devel
BuildRequires: flex
+%if %{with multilib}
+BuildRequires: gcc-multilib-32
+BuildRequires: gcc-multilib-x32
+%endif
%{?with_libunwind:BuildRequires: libunwind-devel >= 0.99}
BuildRequires: numactl-devel
BuildRequires: perl-devel >= 5.1
Requires(post,preun,postun): systemd-units >= 38
Requires: %{name}-cpupower-libs = %{version}-%{release}
Requires: systemd-units >= 0.38
-Provides: cpufreq-utils = 1:009-0.6.p1
-Provides: cpufrequtils = 1:009-0.6.p1
Provides: cpupowerutils = 1:009-0.6.p1
-Obsoletes: cpufreq-utils < 1:009-0.6.p1
-Obsoletes: cpufrequtils < 1:009-0.6.p1
Obsoletes: cpupowerutils < 1:009-0.6.p1
Obsoletes: cpuspeed < 1:1.5-16
Summary: Development files for the cpupower library
Summary(pl.UTF-8): Pliki programistyczne biblioteki cpupower
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
Requires: %{name}-cpupower-libs = %{version}-%{release}
-Provides: cpufrequtils-devel = 1:009-0.6.p1
Provides: cpupowerutils-devel = 1:009-0.6.p1
-Obsoletes: cpufrequtils-devel < 1:009-0.6.p1
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
+Conflicts: cpufrequtils-devel
%description cpupower-libs-devel
Development files for the cpupower library.
(TUI).
%package perf-vdso32
-Summary: perf profiler tool
-Summary(pl.UTF-8): Narzędzie profilujące perf
+Summary: perf profiler tool - VDSO 32-bit ABI reader
+Summary(pl.UTF-8): Narzędzie profilujące perf - odczyt VDSO dla ABI 32-bitowego
Group: Applications/System
Requires: %{name}-perf = %{version}-%{release}
This package contains perf-read-vdso32 tool for reading the 32-bit
compatibility VDSO in 64-bit mode.
+%description perf-vdso32 -l pl.UTF-8
+Perf to narzędzie profilujące dla systemów opartych na Linuksie 2.6+,
+odseparowujące od różnic sprzętowych między pomiarami wydajności w
+zależności od procesora oraz udostępniające prosty interfejs linii
+poleceń. Perf jest oparty na interfejsie perf_events eksportowanym
+przez nowe wersje jądra Linuksa.
+
+Ten pakiet zawiera narzędzie perf-read-vdso32 do odczytu VDSO dla
+binariów 32-bitowych w trybie 64-bitowym.
+
%package perf-vdsox32
-Summary: perf profiler tool
-Summary(pl.UTF-8): Narzędzie profilujące perf
+Summary: perf profiler tool - VDSO x32 ABI reader
+Summary(pl.UTF-8): Narzędzie profilujące perf - odczyt VDSO dla ABI x32
Group: Applications/System
Requires: %{name}-perf = %{version}-%{release}
This package contains perf-read-vdso32 tool for reading the x32 mode
32-bit compatibility VDSO in 64-bit mode.
+%description perf-vdsox32 -l pl.UTF-8
+Perf to narzędzie profilujące dla systemów opartych na Linuksie 2.6+,
+odseparowujące od różnic sprzętowych między pomiarami wydajności w
+zależności od procesora oraz udostępniające prosty interfejs linii
+poleceń. Perf jest oparty na interfejsie perf_events eksportowanym
+przez nowe wersje jądra Linuksa.
+
+Ten pakiet zawiera narzędzie perf-read-vdso32 do odczytu VDSO dla
+binariów ABI x32 w trybie 64-bitowym.
+
%package perf-gtk
Summary: perf profiler tool (GTK+ 2 GUI)
Summary(pl.UTF-8): Narzędzie profilujące perf (interfejs graficzny GTK+ 2)
%{__make} -C tools/perf all man \
%ifarch %{x8664}
IS_X86_64=1 \
+ %{!?with_multilib:NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1} \
%endif
%{!?with_gtk:NO_GTK2=1} \
%{!?with_libunwind:NO_LIBUNWIND=1} \
%ifarch %{ix86} %{x8664} x32
install -d $RPM_BUILD_ROOT%{_mandir}/man8
-# broken makefile, install manually
-%if 0
-%{__make} install \
- -C tools/power/x86/x86_energy_perf_policy \
+%{__make} -C tools/power/x86/x86_energy_perf_policy install \
DESTDIR=$RPM_BUILD_ROOT
-%else
-cd tools/power/x86/x86_energy_perf_policy
-install -p x86_energy_perf_policy $RPM_BUILD_ROOT%{_bindir}
-cp -p x86_energy_perf_policy.8 $RPM_BUILD_ROOT%{_mandir}/man8
-cd -
-%endif
-# broken makefile, install manually
-%if 0
-%{__make} install \
- -C tools/power/x86/turbostat \
+%{__make} -C tools/power/x86/turbostat install \
DESTDIR=$RPM_BUILD_ROOT
-%else
-cd tools/power/x86/turbostat
-cp -p turbostat.8 $RPM_BUILD_ROOT%{_mandir}/man8
-cd -
-install -p turbostat $RPM_BUILD_ROOT%{_bindir}/turbostat
-%endif
%endif
%if %{with perf}
-%{__make} -j1 install install-man \
- -C tools/perf \
+%{__make} -C tools/perf -j1 install install-man \
%ifarch %{x8664}
IS_X86_64=1 \
+ %{!?with_multilib:NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1} \
%endif
%{!?with_gtk:NO_GTK2=1} \
%{!?with_libunwind:NO_LIBUNWIND=1} \
%dir %{_libdir}/traceevent/plugins
%attr(755,root,root) %{_libdir}/traceevent/plugins/plugin_*.so
-%ifarch %{x8664}
+%if %{with multilib}
%files perf-vdso32
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/perf-read-vdso32