2009-08-28 13:54:03 +00:00
|
|
|
Index: build/parseSpec.c
|
|
|
|
===================================================================
|
|
|
|
--- build/parseSpec.c.orig
|
|
|
|
+++ build/parseSpec.c
|
|
|
|
@@ -425,6 +425,7 @@ int parseSpec(rpmts ts, const char *spec
|
|
|
|
spec = newSpec();
|
|
|
|
|
2008-11-28 13:34:30 +00:00
|
|
|
spec->specFile = rpmGetPath(specFile, NULL);
|
|
|
|
+ addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
|
|
|
|
spec->fileStack = newOpenFileInfo();
|
|
|
|
spec->fileStack->fileName = xstrdup(spec->specFile);
|
2009-08-28 13:54:03 +00:00
|
|
|
/* If buildRoot not specified, use default %{buildroot} */
|