diff --git a/build/pack.c b/build/pack.c index c252db090..0e441f16c 100644 --- a/build/pack.c +++ b/build/pack.c @@ -369,6 +369,7 @@ int packageBinaries(Spec s, char *passPhrase) char *release; char *vendor; char *dist; + char *packager; char *packageVersion, *packageRelease; char *prefix; int prefixLen; @@ -399,6 +400,10 @@ int packageBinaries(Spec s, char *passPhrase) if (!isEntry(s->packages->header, RPMTAG_DISTRIBUTION)) { dist = getVar(RPMVAR_DISTRIBUTION); } + packager = NULL; + if (!isEntry(s->packages->header, RPMTAG_PACKAGER)) { + packager = getVar(RPMVAR_PACKAGER); + } /* Look through for each package */ pr = s->packages; @@ -483,6 +488,9 @@ int packageBinaries(Spec s, char *passPhrase) if (dist) { addEntry(outHeader, RPMTAG_DISTRIBUTION, STRING_TYPE, dist, 1); } + if (packager) { + addEntry(outHeader, RPMTAG_PACKAGER, STRING_TYPE, packager, 1); + } /**** Process the file list ****/