2009-08-28 15:54:03 +02: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 14:34:30 +01: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 15:54:03 +02:00
|
|
|
/* If buildRoot not specified, use default %{buildroot} */
|