SPECS: kvm.spec - fix pld-build.

pluto pluto at pld-linux.org
Wed Dec 17 01:04:46 CET 2008


Author: pluto                        Date: Wed Dec 17 00:04:46 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix pld-build.

---- Files affected:
SPECS:
   kvm.spec (1.77 -> 1.78) 

---- Diffs:

================================================================
Index: SPECS/kvm.spec
diff -u SPECS/kvm.spec:1.77 SPECS/kvm.spec:1.78
--- SPECS/kvm.spec:1.77	Mon Dec 15 22:17:04 2008
+++ SPECS/kvm.spec	Wed Dec 17 01:04:40 2008
@@ -37,6 +37,7 @@
 Source0:	http://dl.sourceforge.net/kvm/%{pname}-%{version}.tar.gz
 # Source0-md5:	499f1856d30aa72ef872becaea684f49
 Patch0:		%{pname}-fixes.patch
+Patch1:		%{pname}-kernel-release.patch
 URL:		http://kvm.qumranet.com/kvmwiki
 BuildRequires:	bash
 BuildRequires:	sed >= 4.0
@@ -137,9 +138,11 @@
 
 %prep
 %setup -q -n %{pname}-%{version}
-#%%patch0 -p1
+#patch0 -p1
+%patch1 -p1
 
-sed -i -e 's#header-sync-$(if $(WANT_MODULE),n,y)#header-sync-n#g' Makefile
+sed -i 's#header-sync-$(if $(WANT_MODULE),n,y)#header-sync-n#g' Makefile
+sed -i 's#^depmod_version=$#depmod_version=%{_kernel_ver}#' configure
 
 %build
 %if %{without kernel}
@@ -149,8 +152,6 @@
 ln -s asm-%{karch} kernel/include/asm
 %endif
 
-[ -f %{_kernelsrcdir}/include/config/kernel.release ]
-
 # not ac stuff
 ./configure \
 	%{!?with_kernel:--with-patched-kernel} \
@@ -244,6 +245,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.78  2008/12/17 00:04:40  pluto
+- fix pld-build.
+
 Revision 1.77  2008/12/15 21:17:04  pluto
 - updated to 81.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kvm.spec?r1=1.77&r2=1.78&f=u



More information about the pld-cvs-commit mailing list