rpm 4.11.90

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmbuild.h
Go to the documentation of this file.
1 #ifndef _H_RPMBUILD_
2 #define _H_RPMBUILD_
3
9 #include <rpm/rpmcli.h>
10 #include <rpm/rpmds.h>
11 #include <rpm/rpmspec.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
20 enum rpmBuildFlags_e {
21 RPMBUILD_NONE = 0,
22 RPMBUILD_PREP = (1 << 0),
23 RPMBUILD_BUILD = (1 << 1),
24 RPMBUILD_INSTALL = (1 << 2),
25 RPMBUILD_CHECK = (1 << 3),
26 RPMBUILD_CLEAN = (1 << 4),
27 RPMBUILD_FILECHECK = (1 << 5),
28 RPMBUILD_PACKAGESOURCE = (1 << 6),
29 RPMBUILD_PACKAGEBINARY = (1 << 7),
30 RPMBUILD_RMSOURCE = (1 << 8),
31 RPMBUILD_RMBUILD = (1 << 9),
32 RPMBUILD_STRINGBUF = (1 << 10),
33 RPMBUILD_RMSPEC = (1 << 11),
35 RPMBUILD_NOBUILD = (1 << 31)
36 };
37
38 typedef rpmFlags rpmBuildFlags;
39
43 enum rpmBuildPkgFlags_e {
44 RPMBUILD_PKG_NONE = 0,
45 RPMBUILD_PKG_NODIRTOKENS = (1 << 0),
46 };
47
48 typedef rpmFlags rpmBuildPkgFlags;
49
53 struct rpmBuildArguments_s {
54 rpmBuildPkgFlags pkgFlags;
55 rpmBuildFlags buildAmount;
56 char * buildRootOverride;
57 char * cookie;
58 const char * rootdir;
59 };
60
63 typedef struct rpmBuildArguments_s * BTA_t;
64
74 rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags,
75 const char *buildRoot);
76
82 Header rpmSpecSourceHeader(rpmSpec spec);
83
90 rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
91
98 rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag);
99
106 rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs);
107
108 #ifdef __cplusplus
109 }
110 #endif
111
112 #endif /* _H_RPMBUILD_ */
rpmSpecSourceHeader
Header rpmSpecSourceHeader(rpmSpec spec)
Return the headers of the SRPM that would be built from the spec file.
RPMBUILD_PREP
Definition: rpmbuild.h:22
RPMBUILD_RMBUILD
Definition: rpmbuild.h:31
rpmps
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
RPMBUILD_RMSOURCE
Definition: rpmbuild.h:30
rpmSpecDS
rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag)
Retrieve build dependency set from spec.
rpmSpecParse
rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags, const char *buildRoot)
Parse spec file into spec control structure.
rpmBuildFlags_e
rpmBuildFlags_e
Bit(s) to control rpmSpecBuild() operation.
Definition: rpmbuild.h:20
RPMBUILD_FILECHECK
Definition: rpmbuild.h:27
RPMBUILD_PACKAGESOURCE
Definition: rpmbuild.h:28
rpmBuildArguments_s::pkgFlags
rpmBuildPkgFlags pkgFlags
Definition: rpmbuild.h:54
rpmBuildPkgFlags
rpmFlags rpmBuildPkgFlags
Definition: rpmbuild.h:48
rpmts
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
RPMBUILD_PKG_NONE
Definition: rpmbuild.h:44
RPMBUILD_CHECK
Definition: rpmbuild.h:25
RPMBUILD_STRINGBUF
Definition: rpmbuild.h:32
RPMBUILD_INSTALL
Definition: rpmbuild.h:24
rpmBuildArguments_s::rootdir
const char * rootdir
Definition: rpmbuild.h:58
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
RPMBUILD_PACKAGEBINARY
Definition: rpmbuild.h:29
rpmBuildArguments_s::buildAmount
rpmBuildFlags buildAmount
Definition: rpmbuild.h:55
rpmBuildArguments_s::buildRootOverride
char * buildRootOverride
Definition: rpmbuild.h:56
BTA_t
struct rpmBuildArguments_s * BTA_t
Definition: rpmbuild.h:63
rpmBuildPkgFlags_e
rpmBuildPkgFlags_e
Bit(s) to control package generation.
Definition: rpmbuild.h:43
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
RPMBUILD_NONE
Definition: rpmbuild.h:21
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmSpecBuild
rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs)
Spec build stages state machine driver.
RPMBUILD_BUILD
Definition: rpmbuild.h:23
rpmSpecFlags
rpmFlags rpmSpecFlags
Definition: rpmspec.h:41
RPMBUILD_NOBUILD
Definition: rpmbuild.h:35
RPMBUILD_CLEAN
Definition: rpmbuild.h:26
rpmSpecCheckDeps
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
Verify build depencies of a spec against.
RPMBUILD_RMSPEC
Definition: rpmbuild.h:33
rpmBuildArguments_s::cookie
char * cookie
Definition: rpmbuild.h:57
RPMBUILD_PKG_NODIRTOKENS
Definition: rpmbuild.h:45
rpmBuildArguments_s
Describe build request.
Definition: rpmbuild.h:53
rpmBuildFlags
rpmFlags rpmBuildFlags
Definition: rpmbuild.h:38
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmSpec
struct rpmSpec_s * rpmSpec
Definition: rpmtypes.h:90