summaryrefslogtreecommitdiff
path: root/linux/kvm-kmod.spec
blob: 89b3d882c001142af06dc227eadb6f8620db7090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%define kmod_name kvm

Name:           kvm-kmod
Version:        0.0
Release:        0
Summary:        %{kmod_name} kernel module

Group:          System Environment/Kernel
License:        GPL
URL:            http://www.qumranet.com
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}

ExclusiveArch: i386 x86_64 ia64

%description
This kernel module provides support for virtual machines using hardware support
(Intel VT-x&VT-i or AMD SVM).

%prep

%build

rm -rf %{buildroot}

%install

%define kverrel unknown
%define moddir /lib/modules/%{kverrel}/extra
mkdir -p %{buildroot}/%{moddir}
cp %{objdir}/%{kmod_name}.ko %{objdir}/%{kmod_name}-*.ko %{buildroot}/%{moddir}
chmod u+x %{buildroot}/%{moddir}/%{kmod_name}*.ko

%post 

depmod %{kverrel}

%postun

depmod %{kverrel}

%clean
%{__rm} -rf %{buildroot}

%files
%{moddir}/%{kmod_name}.ko
%ifarch i386 x86_64
%{moddir}/%{kmod_name}-amd.ko
%endif
%{moddir}/%{kmod_name}-intel.ko


%changelog