1 /** \file build/parseBuildInstallClean.c
2 * Parse %build/%install/%clean section from spec file.
9 int parseBuildInstallClean(Spec spec, int parsePart)
12 StringBuf *sbp = NULL;
21 sbp = &(spec->install);
31 rpmError(RPMERR_BADSPEC, _("line %d: second %s"), spec->lineNum, name);
32 return RPMERR_BADSPEC;
35 *sbp = newStringBuf();
37 /* There are no options to %build, %install, or %clean */
38 if ((rc = readLine(spec, STRIP_NOTHING)) > 0) {
45 while (! (nextPart = isPart(spec->line))) {
46 appendStringBuf(*sbp, spec->line);
47 if ((rc = readLine(spec, STRIP_NOTHING)) > 0) {