--- kernel26.spec.old	2004-10-06 15:42:48.529856216 -0300
+++ kernel26.spec	2004-10-06 15:46:08.390472784 -0300
@@ -594,7 +594,8 @@ mkdir configs
 chmod 644 configs/*
 
 # make sure the kernel has the sublevel we know it has...
-perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile
+sed -e "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile >Makefile.tmp
+mv -f Makefile.tmp Makefile
 
 # get rid of unwanted files
 find . -name "*.orig" -exec rm -fv {} \;
@@ -644,7 +645,8 @@ DependKernel() {
       %endif
     %endif
     # make sure EXTRAVERSION says what we want it to say
-    perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}$2/" Makefile
+    sed -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}$2/" Makefile >Makefile.tmp
+    mv -f Makefile.tmp Makefile
     make mrproper
     cp -f configs/kernel-$Config.config .config
     if [ "$2" = "uml" -o "$2" = "uml-smp" ]; then
