rpm  4.12.0.1
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 
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),
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 
39 
46 };
47 
49 
54  rpmBuildPkgFlags pkgFlags;
55  rpmBuildFlags buildAmount;
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 
83 
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_ */
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:20
rpmBuildPkgFlags pkgFlags
Definition: rpmbuild.h:54
rpmFlags rpmBuildPkgFlags
Definition: rpmbuild.h:48
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
const char * rootdir
Definition: rpmbuild.h:58
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmBuildFlags buildAmount
Definition: rpmbuild.h:55
char * buildRootOverride
Definition: rpmbuild.h:56
struct rpmBuildArguments_s * BTA_t
Definition: rpmbuild.h:63
rpmBuildPkgFlags_e
Bit(s) to control package generation.
Definition: rpmbuild.h:43
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:41
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
Verify build depencies of a spec against.
Describe build request.
Definition: rpmbuild.h:53
rpmFlags rpmBuildFlags
Definition: rpmbuild.h:38
enum rpmRC_e rpmRC
Package read return codes.
struct rpmSpec_s * rpmSpec
Definition: rpmtypes.h:90