|
rpm 4.18.1
|
API for building packages. More...

Files | |
| file | rpmcli.h |
| Parsing RPM command line arguments. | |
| file | rpmbuild.h |
| This is the only module users of librpmbuild should need to include. | |
| file | rpmfc.h |
| Structures and methods for build-time file classification. | |
| file | rpmspec.h |
| The rpmSpec and Package data structures used during build. | |
Data Structures | |
| struct | rpmBuildArguments_s |
| Describe build request. More... | |
Typedefs | |
| typedef struct rpmBuildArguments_s * | BTA_t |
| typedef struct Package_s * | rpmSpecPkg |
Enumerations | |
| enum | rpmBuildFlags_e { RPMBUILD_NONE = 0 , RPMBUILD_PREP = (1 << 0) , RPMBUILD_BUILD = (1 << 1) , RPMBUILD_INSTALL = (1 << 2) , RPMBUILD_CHECK = (1 << 3) , RPMBUILD_CLEAN = (1 << 4) , RPMBUILD_FILECHECK = (1 << 5) , RPMBUILD_PACKAGESOURCE = (1 << 6) , RPMBUILD_PACKAGEBINARY = (1 << 7) , RPMBUILD_RMSOURCE = (1 << 8) , RPMBUILD_RMBUILD = (1 << 9) , RPMBUILD_STRINGBUF = (1 << 10) , RPMBUILD_RMSPEC = (1 << 11) , RPMBUILD_FILE_FILE = (1 << 16) , RPMBUILD_FILE_LIST = (1 << 17) , RPMBUILD_POLICY = (1 << 18) , RPMBUILD_CHECKBUILDREQUIRES = (1 << 19) , RPMBUILD_BUILDREQUIRES = (1 << 20) , RPMBUILD_DUMPBUILDREQUIRES = (1 << 21) , RPMBUILD_CONF = (1 << 22) , RPMBUILD_NOBUILD = (1 << 31) } |
| Bit(s) to control rpmSpecBuild() operation. More... | |
| enum | rpmBuildPkgFlags_e { RPMBUILD_PKG_NONE = 0 , RPMBUILD_PKG_NODIRTOKENS = (1 << 0) } |
| Bit(s) to control package generation. More... | |
Functions | |
| rpmSpec | rpmSpecParse (const char *specFile, rpmSpecFlags flags, const char *buildRoot) |
| Parse spec file into spec control structure. More... | |
| Header | rpmSpecSourceHeader (rpmSpec spec) |
| Return the headers of the SRPM that would be built from the spec file. More... | |
| rpmps | rpmSpecCheckDeps (rpmts ts, rpmSpec spec) |
| Verify build depencies of a spec against. More... | |
| rpmds | rpmSpecDS (rpmSpec spec, rpmTagVal tag) |
| Retrieve build dependency set from spec. More... | |
| int | rpmSpecBuild (rpmts ts, rpmSpec spec, BTA_t buildArgs) |
| Spec build stages state machine driver. More... | |
| rpmSpec | rpmSpecFree (rpmSpec spec) |
| Destroy Spec structure. More... | |
| int | rpmspecQuery (rpmts ts, QVA_t qva, const char *arg) |
| Function to query spec file(s). More... | |
API for building packages.
| typedef struct rpmBuildArguments_s* BTA_t |
Definition at line 73 of file rpmbuild.h.
| typedef struct Package_s* rpmSpecPkg |
| enum rpmBuildFlags_e |
Bit(s) to control rpmSpecBuild() operation.
Also used as argument to rpmSpecGetSection and rpmSpecPkgGetSection.
Definition at line 21 of file rpmbuild.h.
| enum rpmBuildPkgFlags_e |
Bit(s) to control package generation.
| Enumerator | |
|---|---|
| RPMBUILD_PKG_NONE | |
| RPMBUILD_PKG_NODIRTOKENS | Legacy filename layout |
Definition at line 51 of file rpmbuild.h.
Spec build stages state machine driver.
| ts | rpm transaction set |
| spec | spec file control structure |
| buildArgs | build arguments |
Verify build depencies of a spec against.
| ts | (empty) transaction set |
| spec | parsed spec control structure |
Retrieve build dependency set from spec.
| spec | parsed spec control structure |
| tag | dependency tag |
Destroy Spec structure.
| spec | spec file control structure |
| rpmSpec rpmSpecParse | ( | const char * | specFile, |
| rpmSpecFlags | flags, | ||
| const char * | buildRoot | ||
| ) |
Parse spec file into spec control structure.
| specFile | path to spec file |
| flags | flags to control operation |
| buildRoot | buildRoot override or NULL for default |
Function to query spec file(s).
| ts | transaction set |
| qva | parsed query/verify options |
| arg | query argument |