43 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
45 spec->
lineNum, poptStrerror(rc));
51 while ((arg = poptGetNextOpt(optCon)) > 0) {
60 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
66 if (poptPeekArg(optCon)) {
69 name = poptGetArg(optCon);
71 if (poptPeekArg(optCon)) {
117 #if defined(RPM_VENDOR_MANDRIVA)
126 optCon = poptFreeContext(optCon);
rpmlog(RPMLOG_ERR,"%s\n", buf)
char * rpmGetPath(const char *path,...)
Return (malloc'ed) expanded, canonicalized, file path.
rpmRC lookupPackage(Spec spec, const char *name, int flag, Package *pkg)
Find sub-package control structure by name.
rpmiob rpmiobAppend(rpmiob iob, const char *s, size_t nl)
Append string to I/O buffer.
Yet Another syslog(3) API clone.
rpmParseState isPart(Spec spec)
Check line for section separator, return next parser state.
The structure used to store values parsed from a spec file.
rpmiob rpmiobNew(size_t len)
Create an I/O buffer.
This is the only module users of librpmbuild should need to include.
enum rpmParseState_e rpmParseState
The structure used to store values for a package.
int parseFiles(Spec spec)
Parse %files section of a spec file.
static struct poptOption optionsTable[]
int readLine(Spec spec, rpmStripFlags strip)
Read next line from spec file.
static void * _free(const void *p)
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.