a76d6c30a2
Copy from Base:System/rpm based on submit request 18841 from user mlschroe OBS-URL: https://build.opensuse.org/request/show/18841 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=84
13 lines
517 B
Diff
13 lines
517 B
Diff
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} */
|