%define _kernel_version 2.6.25.7 %ifarch %{ix86} %define _arch x86 %endif Summary: Kernel headers, boot image and initrd Name: kernel Version: 2.6.25.10 Release: 1 Group: Core/Base License: GPL v2 Source0: linux-%{_kernel_version}.tar.bz2 Source1: config-%{version}-%{_arch} Patch0: linux-2.6.25.3-bsl_logo-2.patch Patch1: patch-2.6.25.7-8.bz2 Patch2: patch-2.6.25.8-9.bz2 Patch3: patch-2.6.25.9-10.bz2 %description Kernel %{version} headers, modules and boot image. %package headers Group: Core/Base Summary: Kernel headers %description headers Linux kernel headers for %{version}. %package image Group: Core/Base Summary: Kernel image %description image Linux kernel boot image and modules for Linux %{version}. %prep %setup -q -n linux-%{_kernel_version} %patch0 -p1 bzcat %{PATCH1} | patch -Np1 bzcat %{PATCH2} | patch -Np1 bzcat %{PATCH3} | patch -Np1 %build make mrproper make headers_check cp -v %{SOURCE1} .config make %install # headers make INSTALL_HDR_PATH=dest headers_install mkdir -p $RPM_BUILD_ROOT/usr/include cp -R dest/include/* $RPM_BUILD_ROOT/usr/include # image and modules mkdir -p $RPM_BUILD_ROOT/boot cp -v System.map $RPM_BUILD_ROOT/boot/System.map-%{version} cp -v %{SOURCE1} $RPM_BUILD_ROOT/boot make INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install %ifarch %{ix86} cp -v arch/x86/boot/bzImage $RPM_BUILD_ROOT/boot/kernel-%{version}-%{_arch} %else cp -v vmlinux $RPM_BUILD_ROOT/boot/kernel-%{version}-%{_arch} %endif ln -sv kernel-%{version}-%{_arch} $RPM_BUILD_ROOT/boot/vmlinuz %files headers %defattr(-,root,root) /usr/include %files image /boot /lib/modules %changelog * Thu Jul 3 2008 Jonathan Norman 2.6.25.9-1 - Merged the kernel image and header spec files into one. - Updated to kernel 2.6.25.9 from 2.6.26.7 via patches. - Added a working initrd ramstike ( hopefully ). - Updated from 2.6.25.9 to 2.6.26.10 because it was released before this rpm was built. - Given up on initrd for now.