--- kernel-source.spec	2008-06-19 15:55:22.000000000 +0400
+++ kernel-source.spec	2008-07-29 15:43:34.000000000 +0400
@@ -108,9 +108,9 @@
 
 %debug_package
 %prep
-if ! [ -e %_sourcedir/linux-%version.tar.bz2 ]; then
-    echo "Please get a copy of linux-%version.tar.bz2 from" \
-         "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/."
+if ! [ -e %_sourcedir/linux-2.6.16.tar.bz2 ]; then
+    echo "Please get a copy of linux-2.6.16.tar.bz2 from" \
+	 "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/."
 fi
 echo "Architecture symbol(s): %symbols"
 # Unpack all sources and patches
@@ -120,9 +120,9 @@
 mkdir -p $RPM_BUILD_ROOT/usr/src
 cd $RPM_BUILD_ROOT/usr/src
 # Unpack the vanilla kernel sources
-bzip2 -cd %_sourcedir/linux-%version.tar.bz2 \
+bzip2 -cd %_sourcedir/linux-2.6.16.tar.bz2 \
 | tar xf -
-cd linux-%version
+cd linux-2.6.16
 # Hello Linus: hint, hint ...
 chmod -Rf a+rX,g-w,o-w .
 # Apply the patches needed for this architecture.
@@ -141,7 +141,7 @@
 SYMBOLS=$symbols
 EOF
 cd ..
-mv linux-%version linux-$KERNELRELEASE
+mv linux-2.6.16 linux-$KERNELRELEASE
 cd linux-$KERNELRELEASE
 chmod +x arch/ia64/scripts/toolchain-flags  # agruen: necessary?
 cd $RPM_BUILD_ROOT/usr/src/linux-$KERNELRELEASE
@@ -163,7 +163,7 @@
     esac
     %_sourcedir/guards %symbols kernel-$flavor < %_sourcedir/series.conf \
        > %_builddir/kernel-ovz-source-%version/kernel-$flavor.patches
-    diff -q %_builddir/kernel-ovz-source-%version/kernel-{source,$flavor}.patches \
+    diff -q %_builddir/kernel-ovz-source-%version/kernel-{ovz-source,$flavor}.patches \
 	|| continue
     o=$RPM_BUILD_ROOT/usr/src/linux-$KERNELRELEASE-obj/$arch/$flavor
     mkdir -p $o
