Drop -I/usr/include/slang to allow detection of <slang.h> vs <slang/slang.h>
---- linux-5.10/tools/build/feature/Makefile.orig 2020-12-13 23:41:30.000000000 +0100
-+++ linux-5.10/tools/build/feature/Makefile 2020-12-17 06:28:25.229860807 +0100
+--- linux-5.11/tools/build/feature/Makefile.orig 2021-02-21 21:43:25.374191668 +0100
++++ linux-5.11/tools/build/feature/Makefile 2021-02-21 21:45:11.760281992 +0100
@@ -90,7 +90,7 @@
###############################
$(OUTPUT)test-all.bin:
-- $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd
-+ $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd
+- $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd -lcap
++ $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd -lcap
$(OUTPUT)test-hello.bin:
$(BUILD)
%undefine with_multilib
%endif
-%define basever 5.10
-%define postver .1
+%define basever 5.11
+%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: 2
+Release: 1
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
-# Source0-md5: 753adc474bf799d569dec4f165ed92c3
+# Source0-md5: d2985a3f16ef1ea3405c04c406e29dcc
Source1: cpupower.service
Source2: cpupower.config
%if "%{postver}" != ".0"
%endif
# for `btftool btf dump file ... format c` - requires vmlinux with BPF section
%{?with_runqslower:BuildRequires: kernel-vmlinux >= 5.?}
+BuildRequires: libcap-devel
%{?with_libunwind:BuildRequires: libunwind-devel >= 0.99}
BuildRequires: numactl-devel
BuildRequires: openssl-devel
Group: Applications/Shells
Requires: %{name}-cpupower = %{version}-%{release}
Requires: bash-completion
-%if "%{_rpmversion}" >= "5"
-BuildArch: noarch
-%endif
+%{?noarchpackage}
%description -n bash-completion-cpupower
Bash completion for cpupower tools.
Group: Applications/Shells
Requires: %{name}-perf = %{version}-%{release}
Requires: bash-completion
-%if "%{_rpmversion}" >= "5"
-BuildArch: noarch
-%endif
+%{?noarchpackage}
%description -n bash-completion-perf
Bash completion for perf command.
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 2.0
-%if "%{_rpmversion}" >= "5"
-BuildArch: noarch
-%endif
+%{?noarchpackage}
%description -n bash-completion-kernel-tools
Bash completion for kernel-tools commands (currently bpftool).
%endif
%if %{with perf}
-%{__make} -C tools/perf install install-man \
+%{__make} -C tools/perf install \
%ifarch %{x8664}
IS_X86_64=1 \
%{!?with_multilib:NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1} \