%define module_name qvm86 %define module_version 20050904 %define module_release alt1.@kreleasebuild@ %define kversion @kversion@ %define krelease @krelease@ %define flavour @kflavour@ Name: kernel-modules-%module_name-%flavour Version: %module_version Release: %module_release Summary: QEMU x86 virtualization module License: GPL Group: System/Kernel and hardware URL: http://savannah.nongnu.org/projects/qvm86/ BuildRequires: kernel-source-qvm86 = %version BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease BuildRequires: kernel-build-tools Requires(pre,postun): modutils Requires(pre,postun): kernel-image-%flavour = %kversion-%krelease Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release %description qvm86 is a kernel module to provide x86 virtualisation capabilities for the qemu emulator. Virtualisation allows "emulated" code to be run natively on the host cpu, using the CPU protection mechanisms to intercept and emulate priveleged events. %prep rm -rf kernel-source-qvm86-%version tar jxf %kernel_src/kernel-source-qvm86-%version.tar.bz2 %setup -DT -n kernel-source-qvm86-%version %build . %_usrsrc/linux-%kversion-%flavour/gcc_version.inc make CONFIG_KBUILD26=1 KERNEL_PATH=%_usrsrc/linux-%kversion-%flavour %install %define module_dir /lib/modules/%kversion-%flavour-%krelease/%module_name install -pD -m644 qvm86.ko %buildroot%module_dir/qvm86.ko %post %post_kernel_modules %kversion-%flavour-%krelease %postun %postun_kernel_modules %kversion-%flavour-%krelease %files %module_dir %changelog * Wed Aug 09 2006 Alexey Tourbin 20050904-alt1.@kreleasebuild@ - initial revision