Index: build/parseSpec.c =================================================================== --- build/parseSpec.c.orig +++ build/parseSpec.c @@ -425,6 +425,7 @@ int parseSpec(rpmts ts, const char *spec 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} */