rpm/specfilemacro.diff

11 lines
477 B
Diff

--- build/parseSpec.c.orig 2008-11-27 11:41:51.000000000 +0100
+++ build/parseSpec.c 2008-11-27 11:43:00.000000000 +0100
@@ -475,6 +475,7 @@
* /.././../usr/../bin//./sh (XXX FIXME: dots not handled yet)
*/
spec->specFile = rpmGetPath(specFile, NULL);
+ addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
spec->fileStack = newOpenFileInfo();
spec->fileStack->fileName = xstrdup(spec->specFile);
if (buildRootURL) {