rpm  4.14.0
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 
23  RPMBUILD_PREP = (1 << 0),
24  RPMBUILD_BUILD = (1 << 1),
25  RPMBUILD_INSTALL = (1 << 2),
26  RPMBUILD_CHECK = (1 << 3),
27  RPMBUILD_CLEAN = (1 << 4),
28  RPMBUILD_FILECHECK = (1 << 5),
31  RPMBUILD_RMSOURCE = (1 << 8),
32  RPMBUILD_RMBUILD = (1 << 9),
33  RPMBUILD_STRINGBUF = (1 << 10),
34  RPMBUILD_RMSPEC = (1 << 11),
35  RPMBUILD_FILE_FILE = (1 << 16),
36  RPMBUILD_FILE_LIST = (1 << 17),
37  RPMBUILD_POLICY = (1 << 18),
39  RPMBUILD_NOBUILD = (1 << 31)
40 };
41 
43 
50 };
51 
53 
58  rpmBuildPkgFlags pkgFlags;
59  rpmBuildFlags buildAmount;
61  char * cookie;
62  const char * rootdir;
63 };
64 
67 typedef struct rpmBuildArguments_s * BTA_t;
68 
78 rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags,
79  const char *buildRoot);
80 
87 
95 
102 rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag);
103 
110 rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* _H_RPMBUILD_ */
Header rpmSpecSourceHeader(rpmSpec spec)
Return the headers of the SRPM that would be built from the spec file.
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag)
Retrieve build dependency set from spec.
rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags, const char *buildRoot)
Parse spec file into spec control structure.
rpmBuildFlags_e
Bit(s) to control rpmSpecBuild() operation.
Definition: rpmbuild.h:21
rpmBuildPkgFlags pkgFlags
Definition: rpmbuild.h:58
rpmFlags rpmBuildPkgFlags
Definition: rpmbuild.h:52
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
const char * rootdir
Definition: rpmbuild.h:62
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmBuildFlags buildAmount
Definition: rpmbuild.h:59
char * buildRootOverride
Definition: rpmbuild.h:60
struct rpmBuildArguments_s * BTA_t
Definition: rpmbuild.h:67
rpmBuildPkgFlags_e
Bit(s) to control package generation.
Definition: rpmbuild.h:47
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs)
Spec build stages state machine driver.
rpmFlags rpmSpecFlags
Definition: rpmspec.h:42
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
Verify build depencies of a spec against.
Describe build request.
Definition: rpmbuild.h:57
rpmFlags rpmBuildFlags
Definition: rpmbuild.h:42
enum rpmRC_e rpmRC
Package read return codes.
struct rpmSpec_s * rpmSpec
Definition: rpmtypes.h:90