extern int noLang; /* XXX FIXME: pass as arg */
-int parseSpec(rpmts ts, const char *specFile, const char *rootDir,
- const char *buildRoot, int recursing, const char *passPhrase,
- const char *cookie, int anyarch, int force)
+static int parseSpec(rpmts ts, const char *specFile,
+ const char *buildRoot, int recursing,
+ int anyarch, int force)
{
rpmParseState parsePart = PART_PREAMBLE;
int initialPackage = 1;
continue;
addMacro(NULL, "_target_cpu", NULL, spec->BANames[x], RMIL_RPMRC);
spec->BASpecs[index] = NULL;
- if (parseSpec(ts, specFile, NULL, buildRoot, 1,
- NULL, NULL, anyarch, force)
+ if (parseSpec(ts, specFile, buildRoot, 1, anyarch, force)
|| (spec->BASpecs[index] = rpmtsSetSpec(ts, NULL)) == NULL)
{
spec->BACount = index;
rpmts ts = rpmtsCreate();
rpmSpec spec = NULL;
- if (parseSpec(ts, specFile, NULL, buildRoot, 0, NULL, NULL,
+ if (parseSpec(ts, specFile, buildRoot, 0,
(flags & RPMSPEC_ANYARCH), (flags & RPMSPEC_FORCE)) == 0) {
spec = rpmtsSetSpec(ts, NULL);
}
const char *buildRoot);
/** \ingroup rpmbuild
- * Parse spec file into spec control structure.
- * @param ts transaction set (spec file control in ts->spec)
- * @param specFile
- * @param rootDir (unused)
- * @param buildRoot
- * @param recursing parse is recursive?
- * @param passPhrase (unused)
- * @param cookie (unused)
- * @param anyarch
- * @param force
- * @return
- */
-int parseSpec(rpmts ts, const char * specFile,
- const char * rootDir,
- const char * buildRoot,
- int recursing,
- const char * passPhrase,
- const char * cookie,
- int anyarch, int force);
-
-/** \ingroup rpmbuild
* Build stages state machine driver.
* @param buildArgs build arguments
* @param spec spec file control structure