rpm 4.19.92
The RPM Package Manager
Loading...
Searching...
No Matches
rpmbuild.h
Go to the documentation of this file.
1#ifndef _H_RPMBUILD_
2#define _H_RPMBUILD_
3
9#include <rpm/rpmds.h>
10#include <rpm/rpmspec.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
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),
30 RPMBUILD_RMSOURCE = (1 << 8),
31 RPMBUILD_RMBUILD = (1 << 9),
32 RPMBUILD_STRINGBUF = (1 << 10),
33 RPMBUILD_RMSPEC = (1 << 11),
34 RPMBUILD_FILE_FILE = (1 << 16),
35 RPMBUILD_FILE_LIST = (1 << 17),
36 RPMBUILD_POLICY = (1 << 18),
40 RPMBUILD_CONF = (1 << 22),
41 RPMBUILD_MKBUILDDIR = (1 << 23),
43 RPMBUILD_NOBUILD = (1 << 31)
44};
45
46typedef rpmFlags rpmBuildFlags;
47
52 RPMBUILD_PKG_NONE = 0,
54};
55
56typedef rpmFlags rpmBuildPkgFlags;
57
58#define RPMRC_MISSINGBUILDREQUIRES 11
59
64 rpmBuildPkgFlags pkgFlags;
65 rpmBuildFlags buildAmount;
67 char * cookie;
68 const char * rootdir;
69};
70
73typedef struct rpmBuildArguments_s * BTA_t;
74
84rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags,
85 const char *buildRoot);
86
93
100rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
101
108rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag);
109
119int rpmSpecBuild(rpmts ts, rpmSpec spec, BTA_t buildArgs);
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif /* _H_RPMBUILD_ */
rpmBuildFlags_e
Definition rpmbuild.h:20
rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags, const char *buildRoot)
rpmBuildPkgFlags_e
Definition rpmbuild.h:51
int rpmSpecBuild(rpmts ts, rpmSpec spec, BTA_t buildArgs)
Header rpmSpecSourceHeader(rpmSpec spec)
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag)
@ RPMBUILD_PACKAGESOURCE
Definition rpmbuild.h:28
@ RPMBUILD_FILECHECK
Definition rpmbuild.h:27
@ RPMBUILD_PACKAGEBINARY
Definition rpmbuild.h:29
@ RPMBUILD_CONF
Definition rpmbuild.h:40
@ RPMBUILD_CHECK
Definition rpmbuild.h:25
@ RPMBUILD_RMSOURCE
Definition rpmbuild.h:30
@ RPMBUILD_POLICY
Definition rpmbuild.h:36
@ RPMBUILD_CLEAN
Definition rpmbuild.h:26
@ RPMBUILD_PREP
Definition rpmbuild.h:22
@ RPMBUILD_BUILDREQUIRES
Definition rpmbuild.h:38
@ RPMBUILD_MKBUILDDIR
Definition rpmbuild.h:41
@ RPMBUILD_RMSPEC
Definition rpmbuild.h:33
@ RPMBUILD_DUMPBUILDREQUIRES
Definition rpmbuild.h:39
@ RPMBUILD_FILE_LIST
Definition rpmbuild.h:35
@ RPMBUILD_BUILD
Definition rpmbuild.h:23
@ RPMBUILD_RMBUILD
Definition rpmbuild.h:31
@ RPMBUILD_NOBUILD
Definition rpmbuild.h:43
@ RPMBUILD_CHECKBUILDREQUIRES
Definition rpmbuild.h:37
@ RPMBUILD_FILE_FILE
Definition rpmbuild.h:34
@ RPMBUILD_INSTALL
Definition rpmbuild.h:24
@ RPMBUILD_STRINGBUF
Definition rpmbuild.h:32
@ RPMBUILD_PKG_NODIRTOKENS
Definition rpmbuild.h:53
struct rpmts_s * rpmts
Definition rpmtypes.h:63
struct headerToken_s * Header
Definition rpmtypes.h:24
Definition rpmbuild.h:63
char * cookie
Definition rpmbuild.h:67
rpmBuildPkgFlags pkgFlags
Definition rpmbuild.h:64
char * buildRootOverride
Definition rpmbuild.h:66
rpmBuildFlags buildAmount
Definition rpmbuild.h:65