10 #define _RPMTAG_INTERNAL 18 const char *
name = NULL;
39 assert(spec->
nfoo > 0);
40 iobp = &spec->
foo[spec->
nfoo-1].iob;
41 name = spec->
foo[spec->
nfoo-1].str;
60 const char * s =
rpmExpand(
"%{!?__spec_install_pre:%{?buildroot:%{__rm} -rf '%{buildroot}'\n%{__mkdir_p} '%{buildroot}'\n}}\n", NULL);
65 const char * s =
rpmExpand(
"%{?__spec_clean_body}%{!?__spec_clean_body:%{?buildroot:rm -rf '%{buildroot}'\n}}\n", NULL);
69 #if !defined(RPM_VENDOR_OPENPKG)
rpmParseState isPart(Spec spec)
Check line for section separator, return next parser state.
int parseBuildInstallClean(Spec spec, rpmParseState parsePart)
Parse %build/%install/%clean section(s) of a spec file.
static void rpmlog(int code, const char *fmt,...)
rpmiob rpmiobAppend(rpmiob iob, const char *s, size_t nl)
Append string to I/O buffer.
int readLine(Spec spec, rpmStripFlags strip)
Read next line from spec file.
Yet Another syslog(3) API clone.
The structure used to store values parsed from a spec file.
char * rpmExpand(const char *arg,...)
Return (malloc'ed) concatenated macro expansion(s).
rpmiob rpmiobNew(size_t len)
Create an I/O buffer.
enum rpmRC_e rpmRC
RPM return codes.
This is the only module users of librpmbuild should need to include.
static void * _free(const void *p)
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
enum rpmParseState_e rpmParseState