--- build/parseSpec.c.orig 2024-10-07 09:35:46.000000000 +0000 +++ build/parseSpec.c 2024-12-16 09:19:43.511920745 +0000 @@ -1309,6 +1309,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 explicit --buildroot was passed, grab hold of it */ if (buildRoot)