|
|
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
|
|
|
|
%global __spec_install_pre %{___build_pre} |
|
|
|
|
|
|
|
|
|
# Define the version of the Linux Kernel Archive tarball. |
|
|
|
|
%define LKAver 4.19.102 |
|
|
|
|
%define LKAver 5.4.19 |
|
|
|
|
|
|
|
|
|
# Define the buildid, if required. |
|
|
|
|
#define buildid . |
|
|
|
@ -184,7 +184,8 @@ BuildRequires: gettext, pciutils, pciutils-devel, zlib-devel
@@ -184,7 +184,8 @@ BuildRequires: gettext, pciutils, pciutils-devel, zlib-devel
|
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# Sources. |
|
|
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-%{LKAver}.tar.xz |
|
|
|
|
#Source0: https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-%{LKAver}.tar.xz |
|
|
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{LKAver}.tar.xz |
|
|
|
|
####################################### |
|
|
|
|
Source1: config-%{version}-%{configarch} |
|
|
|
|
Source4: cpupower.service |
|
|
|
@ -495,7 +496,7 @@ hwcap 1 nosegneg"
@@ -495,7 +496,7 @@ hwcap 1 nosegneg"
|
|
|
|
|
popd > /dev/null |
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/Kbuild |
|
|
|
|
# Ensure a copy of the version.h file is in the include/linux/ directory. |
|
|
|
|
%{__cp} usr/include/linux/version.h $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/ |
|
|
|
|
#%{__cp} usr/include/linux/version.h $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/ |
|
|
|
|
# Copy the generated autoconf.h file to the include/linux/ directory. |
|
|
|
|
%{__cp} include/generated/autoconf.h $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/ |
|
|
|
|
# Copy .config to include/config/auto.conf so a "make prepare" is unnecessary. |
|
|
|
@ -505,7 +506,7 @@ hwcap 1 nosegneg"
@@ -505,7 +506,7 @@ hwcap 1 nosegneg"
|
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/.config |
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/config/auto.conf |
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/autoconf.h |
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/version.h |
|
|
|
|
#touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/linux/version.h |
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/generated/autoconf.h |
|
|
|
|
touch -r $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/Makefile $RPM_BUILD_ROOT/lib/modules/%{KVRFA}/build/include/generated/uapi/linux/version.h |
|
|
|
|
|
|
|
|
@ -839,6 +840,7 @@ fi
@@ -839,6 +840,7 @@ fi
|
|
|
|
|
%{_unitdir}/cpupower.service |
|
|
|
|
%{_mandir}/man[1-8]/cpupower* |
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower |
|
|
|
|
%{_datadir}/bash-completion/completions/cpupower |
|
|
|
|
%ifarch x86_64 |
|
|
|
|
%{_bindir}/centrino-decode |
|
|
|
|
#%{_bindir}/powernow-k8-decode |
|
|
|
|