--- ./build/parseSpec.c.orig 2010-12-03 12:11:57.000000000 +0000 +++ ./build/parseSpec.c 2011-05-11 15:58:37.000000000 +0000 @@ -519,6 +519,7 @@ static rpmSpec parseSpec(const char *spe spec = newSpec(); spec->specFile = rpmGetPath(specFile, NULL); + addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC); spec->fileStack = newOpenFileInfo(); spec->fileStack->fileName = xstrdup(spec->specFile); /* If buildRoot not specified, use default %{buildroot} */