File default_fuzz_0.diff of Package rpm

--- build/parsePrep.c	2010/08/10 13:25:24	1.1
+++ build/parsePrep.c	2010/08/10 13:34:26
@@ -98,8 +98,8 @@
 #endif
 	t = stpcpy( stpcpy(t, "--suffix "), db);
     }
-    if (fuzz) {
-	t = stpcpy(t, " -F");
+    if (fuzz >= 0) {
+	t = stpcpy(t, " --fuzz=");
 	sprintf(t, "%d", fuzz);
 	t += strlen(t);
     }
@@ -463,7 +463,8 @@
     int patch_index, x;
 
     memset(patch_nums, 0, sizeof(patch_nums));
-    opt_P = opt_p = opt_R = opt_E = opt_F = 0;
+    opt_P = opt_p = opt_R = opt_E = 0;
+    opt_F = rpmExpandNumeric("%{_default_patch_fuzz}");         /* get default fuzz factor for %patch */
     opt_b = NULL;
     patch_index = 0;
 
--- macros.in	2010/08/10 12:31:58	1.125
+++ macros.in	2010/08/10 13:32:02
@@ -364,6 +364,9 @@
 #
 #%vendor
 
+#       Default fuzz level for %patch in spec file.
+%_default_patch_fuzz    0
+
 #==============================================================================
 # ---- Build configuration macros.
 #