46 #define SKIPSPACE(s) { while (*(s) && xisspace(*(s))) (s)++; }
47 #define SKIPNONSPACE(s) { while (*(s) && !xisspace(*(s))) (s)++; }
49 #define PART_SUBNAME 0
117 extern const char *
getUname(uid_t uid)
127 extern const char *
getUnameS(
const char * uname)
137 uid_t
getUidS(
const char * uname)
147 extern const char *
getGname(gid_t gid)
157 extern const char *
getGnameS(
const char * gname)
167 gid_t
getGidS(
const char * gname)
433 #define freePackage(_pkg) \
434 ((Package)rpmioFreePoolItem((rpmioItem)(_pkg), __FUNCTION__, __FILE__, __LINE__))
546 const char * rootURL,
548 const char * passPhrase,
550 int anyarch,
int force,
int verify)
rpmRC doScript(Spec spec, int what, const char *name, rpmiob iob, int test)
Run a build script, assembled from spec file scriptlet section.
rpmRC parseRCPOT(Spec spec, Package pkg, const char *field, rpmTag tagN, rpmuint32_t index, rpmsenseFlags tagflags)
Parse dependency relations from spec file and/or autogenerated output buffer.
int addReqProv(Spec spec, Header h, rpmTag tagN, const char *N, const char *EVR, rpmsenseFlags Flags, rpmuint32_t index)
Add dependency to header, filtering duplicates.
#define PART_BASE
Spec file parser states.
enum rpmBuildFlags_e rpmBuildFlags
Bit(s) to control buildSpec() operation.
enum rpmStripFlags_e rpmStripFlags
Spec file parser stripping flags.
rpmuint32_t * getBuildTime(void)
Return build time stamp.
char * parseExpressionString(Spec spec, const char *expr)
Evaluate string expression.
const char * getGname(gid_t gid)
Return cached group name from group id.
const char bson_timestamp_t * ts
void freeNames(void)
Destroy uid/gid caches.
Package newPackage(Spec spec)
Create and initialize package control structure.
Package freePackages(Package packages)
Destroy all packages associated with spec file.
Structure(s) used for file info tag sets.
void handleComments(char *s)
Truncate comment lines.
rpmRC lookupPackage(Spec spec, const char *name, int flag, Package *pkg)
Find sub-package control structure by name.
int parsePreamble(Spec spec, int initialPackage)
Parse tags from preamble of a spec file.
const char const char * field
rpmRC packageSources(Spec spec)
Generate source package.
int processSourceFiles(Spec spec)
Post-build processing for source package.
const char * getUname(uid_t uid)
Return cached user name from user id.
const char * buildHost(void)
Return build hostname.
rpmParseState isPart(Spec spec)
Check line for section separator, return next parser state.
void addChangelogEntry(Header h, time_t time, const char *name, const char *text)
Add changelog entry to header.
int parseDescription(Spec spec)
Parse %description section of a spec file.
int parseExpressionBoolean(Spec spec, const char *expr)
Evaluate boolean expression.
rpmRC buildSpec(rpmts ts, Spec spec, int what, int test)
Build stages state machine driver.
gid_t getGidS(const char *gname)
Return cached group id.
int parseBuildInstallClean(Spec spec, rpmParseState parsePart)
Parse %build/%install/%clean section(s) of a spec file.
enum evrFlags_e rpmsenseFlags
int parseScript(Spec spec, int parsePart)
Parse %pre et al scriptlets from a spec file.
int parseSpec(rpmts ts, const char *specFile, const char *rootURL, int recursing, const char *passPhrase, const char *cookie, int anyarch, int force, int verify)
Parse spec file into spec control structure.
The structure used to store values parsed from a spec file.
void providePackageNVR(Header h)
Retrofit an explicit Provides: N = E:V-R dependency into package headers.
rpmRC processScriptFiles(Spec spec, Package pkg)
Append files (if any) to scriptlet tags.
rpmRC processBinaryFiles(Spec spec, int installSpecialDoc, int test)
Post-build processing for binary package(s).
rpmBuildFlags_e
Bit(s) to control buildSpec() operation.
enum rpmRC_e rpmRC
RPM return codes.
int parseChangelog(Spec spec)
Parse %changelog section of a spec file.
int parseNum(const char *line, rpmuint32_t *res)
Parse a number.
struct rpmts_s * rpmts
The RPM Transaction Set.
rpmRC packageBinaries(Spec spec)
Generate binary package(s).
uid_t getUidS(const char *uname)
Return cached user id.
enum rpmParseState_e rpmParseState
int readLine(Spec spec, rpmStripFlags strip)
Read next line from spec file.
int initSourceHeader(Spec spec, rpmiob *sfp)
Create and initialize header for source package.
int parsePrep(Spec spec, int verify)
Parse %prep section of a spec file.
#define freePackage(_pkg)
int parseFiles(Spec spec)
Parse %files section of a spec file.
rpmStripFlags_e
Spec file parser stripping flags.
The structure used to store values for a package.
The Spec and Package data structures used during build.
int rpmlibNeedsFeature(Header h, const char *feature, const char *featureEVR)
Add rpmlib feature dependency.
const char * getUnameS(const char *uname)
Return cached user name.
void closeSpec(Spec spec)
Stop reading from spec file, freeing resources.
const char * getGnameS(const char *gname)
Return cached group name.