Files | |
file | build.c |
Top-level build dispatcher. | |
file | buildio.h |
Routines to read and write packages. | |
file | expression.c |
Simple logical expression parser. | |
file | files.c |
The post-build, pre-packaging file tree walk to assemble the package manifest. | |
file | misc.c |
file | myftw.c |
Modified ftw() -- uses Lstat() instead of stat(). | |
file | myftw.h |
Portable ftw(3) using lstat() instead of stat(). | |
file | names.c |
Simple user/group name/id cache (plus hostname and buildtime). | |
file | pack.c |
Assemble components of an RPM package. | |
file | parseBuildInstallClean.c |
Parse build/install/clean section from spec file. | |
file | parseChangelog.c |
Parse changelog section from spec file. | |
file | parseDescription.c |
Parse description section from spec file. | |
file | parseFiles.c |
Parse files section from spec file. | |
file | parsePreamble.c |
Parse tags in global section from spec file. | |
file | parsePrep.c |
Parse prep section from spec file. | |
file | parseReqs.c |
Parse dependency tag from spec file or from auto-dependency generator. | |
file | parseScript.c |
Parse install-time script section from spec file. | |
file | parseSpec.c |
Top level dispatcher for spec file parsing. | |
file | reqprov.c |
Add dependency tags to package header(s). | |
file | rpmbuild.h |
This is the *only* module users of librpmbuild should need to include. | |
file | rpmcli.h |
file | rpmspec.h |
The Spec and Package data structures used during build. | |
file | spec.c |
Handle spec data structure. | |
Data Structures | |
struct | OpenFileInfo |
struct | PackageStruct |
struct | ReadLevelEntry |
struct | Source |
struct | speclines_s |
struct | SpecStruct |
struct | spectag_s |
struct | spectags_s |
struct | TriggerFileEntry |
Typedefs | |
typedef enum rpmBuildFlags_e | rpmBuildFlags |
typedef enum rpmParseState_e | rpmParseState |
typedef SpecStruct * | Spec |
typedef ReadLevelEntry | RLE_t |
typedef OpenFileInfo | OFI_t |
typedef spectag_s * | spectag |
typedef spectags_s * | spectags |
typedef speclines_s * | speclines |
typedef PackageStruct * | Package |
Enumerations | |
enum | rpmBuildFlags_e { RPMBUILD_NONE = 0, RPMBUILD_PREP = (1 << 0), RPMBUILD_BUILD = (1 << 1), RPMBUILD_INSTALL = (1 << 2), RPMBUILD_CLEAN = (1 << 3), RPMBUILD_FILECHECK = (1 << 4), RPMBUILD_PACKAGESOURCE = (1 << 5), RPMBUILD_PACKAGEBINARY = (1 << 6), RPMBUILD_RMSOURCE = (1 << 7), RPMBUILD_RMBUILD = (1 << 8), RPMBUILD_STRINGBUF = (1 << 9), RPMBUILD_RMSPEC = (1 << 10) } |
enum | rpmParseState_e { PART_NONE = 0, PART_PREAMBLE = 1, PART_PREP = 2, PART_BUILD = 3, PART_INSTALL = 4, PART_CLEAN = 5, PART_FILES = 6, PART_PRE = 7, PART_POST = 8, PART_PREUN = 9, PART_POSTUN = 10, PART_DESCRIPTION = 11, PART_CHANGELOG = 12, PART_TRIGGERIN = 13, PART_TRIGGERUN = 14, PART_VERIFYSCRIPT = 15, PART_BUILDARCHITECTURES = 16, PART_TRIGGERPOSTUN = 17, PART_LAST = 18 } |
Functions | |
void | freeNames (void) |
const char * | getUname (uid_t uid) |
const char * | getUnameS (const char *uname) |
uid_t | getUidS (const char *uname) |
const char * | getGname (gid_t gid) |
const char * | getGnameS (const char *gname) |
gid_t | getGidS (const char *gname) |
const char *const | buildHost (void) |
int_32 *const | getBuildTime (void) |
int | readLine (Spec spec, int strip) |
void | closeSpec (Spec spec) |
void | handleComments (char *s) |
rpmParseState | isPart (const char *line) |
int | parseNum (const char *line, int *res) |
void | addChangelogEntry (Header h, time_t time, const char *name, const char *text) |
int | parseBuildInstallClean (Spec spec, rpmParseState parsePart) |
int | parseChangelog (Spec spec) |
int | parseDescription (Spec spec) |
int | parseFiles (Spec spec) |
int | parsePreamble (Spec spec, int initialPackage) |
int | parsePrep (Spec spec) |
int | parseRCPOT (Spec spec, Package pkg, const char *field, int tag, int index, rpmsenseFlags flags) |
int | parseScript (Spec spec, int parsePart) |
int | parseExpressionBoolean (Spec spec, const char *expr) |
char * | parseExpressionString (Spec spec, const char *expr) |
int | doScript (Spec spec, int what, const char *name, StringBuf sb, int test) |
int | lookupPackage (Spec spec, const char *name, int flag, Package *pkg) |
Package | newPackage (Spec spec) |
Package | freePackages (Package packages) |
Package | freePackage (Package pkg) |
int | addReqProv (Spec spec, Header h, rpmsenseFlags flag, const char *depName, const char *depEVR, int index) |
int | rpmlibNeedsFeature (Header h, const char *feature, const char *featureEVR) |
int | processBinaryFiles (Spec spec, int installSpecialDoc, int test) |
void | initSourceHeader (Spec spec) |
int | processSourceFiles (Spec spec) |
int | parseSpec (Spec *specp, const char *specFile, const char *rootdir, const char *buildRoot, int recursing, const char *passPhrase, char *cookie, int anyarch, int force) |
int | buildSpec (Spec spec, int what, int test) |
int | packageBinaries (Spec spec) |
int | packageSources (Spec spec) |
Spec | newSpec (void) |
Spec | freeSpec (Spec spec) |
OpenFileInfo * | newOpenFileInfo (void) |
spectag | stashSt (Spec spec, Header h, int tag, const char *lang) |
int | addSource (Spec spec, Package pkg, const char *field, int tag) |
int | parseNoSource (Spec spec, const char *field, int tag) |
Variables | |
int(* | parseSpecVec )(Spec *specp, const char *specFile, const char *rootdir, const char *buildRoot, int recursing, const char *passPhrase, char *cookie, int anyarch, int force) |
Spec(* | freeSpecVec )(Spec spec) |
|
|
|
|
|
|
|
Bit(s) to control buildSpec() operation. |
|
Spec file parser states. Referenced by isPart, parseBuildInstallClean, parseSpec, and readLine. |
|
|
|
|
|
|
|
|
|
Bit(s) to control buildSpec() operation.
Definition at line 22 of file rpmbuild.h. |
|
Spec file parser states.
Definition at line 51 of file rpmbuild.h. |
|
Add changelog entry to header.
Definition at line 11 of file parseChangelog.c. Referenced by addChangelog, and headerInject. |
|
Add dependency to header, filtering duplicates.
Definition at line 11 of file reqprov.c. Referenced by parseRCPOT, parseScript, and rpmlibNeedsFeature. |
|
|
|
Return build hostname.
|
|
Build stages state machine driver.
Definition at line 249 of file build.c. References rpmsenseFlags. Referenced by buildForTarget, and buildSpec. |
|
Stop reading from spec file, freeing resources.
Definition at line 342 of file parseSpec.c. |
|
Run a build script, assembled from spec file scriptlet section.
Definition at line 53 of file build.c. Referenced by buildSpec, and processPackageFiles. |
|
Destroy uid/gid caches. |
|
Destroy package control structure.
|
|
Destroy all packages associated with spec file.
|
|
Destroy Spec structure.
|
|
Return build time stamp.
|
|
Return cached group id.
Definition at line 141 of file names.c. Referenced by genCpioListAndHeader. |
|
Return cached group name from group id.
Definition at line 97 of file names.c. Referenced by addFile, checkOwners, and processSourceFiles. |
|
Return cached group name.
Definition at line 119 of file names.c. Referenced by addFile. |
|
Return cached user id.
Definition at line 75 of file names.c. Referenced by genCpioListAndHeader. |
|
Return cached user name from user id.
Definition at line 31 of file names.c. References RPMBUILD_PACKAGEBINARY, RPMBUILD_PACKAGESOURCE, and RPMBUILD_RMSOURCE. Referenced by addFile, checkOwners, headerInject, and processSourceFiles. |
|
Return cached user name.
Definition at line 53 of file names.c. References PART_BUILD, PART_CLEAN, PART_FILES, PART_INSTALL, PART_POST, PART_PRE, PART_PREAMBLE, PART_PREP, and PART_PREUN. Referenced by addFile. |
|
Truncate comment lines.
Definition at line 93 of file parseSpec.c. Referenced by copyNextLine, and processPackageFiles. |
|
Create and initialize header for source package.
Definition at line 1966 of file files.c. Referenced by buildForTarget, and processSourceFiles. |
|
Check line for section separator, return next parser state.
Definition at line 51 of file parseSpec.c. Referenced by parseBuildInstallClean, parseChangelog, parseDescription, parseFiles, parsePreamble, parsePrep, and parseScript. |
|
Find sub-package control structure by name.
Definition at line 62 of file spec.c. References PART_CHANGELOG, PART_DESCRIPTION, PART_POSTUN, and PART_TRIGGERIN. |
|
Definition at line 532 of file spec.c. Referenced by forceIncludeFile, and parseSpec. |
|
Create and initialize package control structure.
|
|
Create and initialize Spec structure.
|
|
Generate binary package(s).
Definition at line 665 of file pack.c. Referenced by buildSpec. |
|
Generate source package.
Definition at line 760 of file pack.c. Referenced by buildSpec. |
|
Parse %build/%install/%clean section(s) of a spec file.
Definition at line 12 of file parseBuildInstallClean.c. Referenced by parseSpec. |
|
Parse %changelog section of a spec file.
Definition at line 205 of file parseChangelog.c. Referenced by parseSpec. |
|
Parse %description section of a spec file.
Definition at line 25 of file parseDescription.c. References RPMBUILD_BUILD, RPMBUILD_CLEAN, RPMBUILD_FILECHECK, RPMBUILD_INSTALL, and RPMBUILD_PREP. Referenced by parseSpec. |
|
Evaluate boolean expression.
Definition at line 638 of file expression.c. Referenced by readLine. |
|
Evaluate string expression.
Definition at line 685 of file expression.c. |
|
Parse %files section of a spec file.
Definition at line 23 of file parseFiles.c. References RPMBUILD_NONE. Referenced by parseSpec. |
|
|
|
Parse a number.
Definition at line 9 of file misc.c. Referenced by addSource, doPatchMacro, doSetupMacro, handlePreambleTag, and parseNoSource. |
|
Parse tags from preamble of a spec file.
Definition at line 814 of file parsePreamble.c. Referenced by parseSpec. |
|
Parse %prep section of a spec file.
Definition at line 520 of file parsePrep.c. Referenced by parseSpec. |
|
Parse dependency relations from spec file and/or autogenerated output buffer.
Definition at line 34 of file parseReqs.c. References RPMBUILD_RMBUILD, RPMBUILD_RMSPEC, and RPMBUILD_STRINGBUF. Referenced by generateDepends, handlePreambleTag, and parseScript. |
|
Parse %pre et al scriptlets from a spec file.
Definition at line 66 of file parseScript.c. References PART_BUILDARCHITECTURES, PART_LAST, PART_TRIGGERPOSTUN, PART_TRIGGERUN, and PART_VERIFYSCRIPT. Referenced by parseSpec. |
|
Parse spec file into spec control structure.
Definition at line 360 of file parseSpec.c. Referenced by buildForTarget, and parseSpec. |
|
Post-build processing for binary package(s).
Definition at line 2591 of file files.c. Referenced by buildSpec. |
|
Post-build processing for source package.
Definition at line 2025 of file files.c. Referenced by buildSpec. |
|
Read next line from spec file.
Definition at line 169 of file parseSpec.c. References rpmParseState. Referenced by parseBuildInstallClean, parseChangelog, parseDescription, parseFiles, parsePreamble, parsePrep, and parseScript. |
|
Add rpmlib feature dependency.
Definition at line 117 of file reqprov.c. References int_32. Referenced by genCpioListAndHeader, parseRCPOT, parseScript, and writeRPM. |
|
Definition at line 391 of file parsePreamble.c. Referenced by handlePreambleTag, and parseDescription. |
|
|
|
Definition at line 451 of file rpmbuild.h. |