File specfilemacro.diff of Package rpm

--- ./build/parseSpec.c.orig	2013-06-10 15:55:10.000000000 +0000
+++ ./build/parseSpec.c	2013-07-12 12:04:11.000000000 +0000
@@ -561,6 +561,7 @@ static rpmSpec parseSpec(const char *spe
     spec = newSpec();
 
     spec->specFile = rpmGetPath(specFile, NULL);
+    addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
     pushOFI(spec, spec->specFile);
     /* If buildRoot not specified, use default %{buildroot} */
     if (buildRoot) {