48 {
char *
se = strchr(spec->
line,
'#');
51 while (--se >= spec->
line && strchr(
" \t\n\r", *se) !=
NULL)
56 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
58 spec->
lineNum, poptStrerror(rc));
65 while ((arg = poptGetNextOpt(optCon)) > 0)
73 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
78 if (poptPeekArg(optCon)) {
80 name = poptGetArg(optCon);
81 if (poptPeekArg(optCon)) {
95 #if !defined(RPM_VENDOR_MANDRIVA) && !defined(RPM_VENDOR_PLD)
133 #if defined(SUPPORT_I18NSTRING_TYPE)
150 optCon = poptFreeContext(optCon);
rpmiob rpmiobRTrim(rpmiob iob)
Trim trailing white space.
static struct poptOption optionsTable[]
rpmlog(RPMLOG_ERR,"%s\n", buf)
rpmRC lookupPackage(Spec spec, const char *name, int flag, Package *pkg)
Find sub-package control structure by name.
rpmiob rpmiobFree(rpmiob iob)
Destroy a I/O buffer instance.
rpmiob rpmiobAppend(rpmiob iob, const char *s, size_t nl)
Append string to I/O buffer.
spectag stashSt(Spec spec, Header h, rpmTag tag, const char *lang)
stashSt.
Yet Another syslog(3) API clone.
memset(_r, 0, sizeof(*_r))
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.
char * rpmiobStr(rpmiob iob)
Return I/O buffer (as string).
return strcmp(ame->name, bme->name)
This is the only module users of librpmbuild should need to include.
int parseDescription(Spec spec)
Parse %description section of a spec file.
enum rpmParseState_e rpmParseState
static void
Print copy of spec file, filling in Group/Description/Summary from specspo.
The structure used to store values for a package.
#define RPMBUILD_DEFAULT_LANG
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.