rpm: /home/mdomonko/code/rpm/stable/include/rpm/rpmbuild.h Source File

rpm 4.19.1.1 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
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),
34 RPMBUILD_FILE_FILE = (1 << 16),
35 RPMBUILD_FILE_LIST = (1 << 17),
36 RPMBUILD_POLICY = (1 << 18),
37 RPMBUILD_CHECKBUILDREQUIRES = (1 << 19),
38 RPMBUILD_BUILDREQUIRES = (1 << 20),
39 RPMBUILD_DUMPBUILDREQUIRES = (1 << 21),
40 RPMBUILD_CONF = (1 << 22),
42 RPMBUILD_NOBUILD = (1 << 31)
43};
44
45typedef rpmFlags rpmBuildFlags;
46
50 enum rpmBuildPkgFlags_e {
51 RPMBUILD_PKG_NONE = 0,
52 RPMBUILD_PKG_NODIRTOKENS = (1 << 0),
53};
54
55typedef rpmFlags rpmBuildPkgFlags;
56
57#define RPMRC_MISSINGBUILDREQUIRES 11
58
62 struct rpmBuildArguments_s {
63 rpmBuildPkgFlags pkgFlags;
64 rpmBuildFlags buildAmount;
65 char * buildRootOverride;
66 char * cookie;
67 const char * rootdir;
68};
69
72typedef struct rpmBuildArguments_s * BTA_t;
73
83rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags,
84 const char *buildRoot);
85
91 Header rpmSpecSourceHeader(rpmSpec spec);
92
99rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
100
107rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag);
108
118 int rpmSpecBuild(rpmts ts, rpmSpec spec, BTA_t buildArgs);
119
120#ifdef __cplusplus
121}
122#endif
123
124#endif /* _H_RPMBUILD_ */
rpmBuildFlags_e
rpmBuildFlags_e
Definition rpmbuild.h:20
rpmSpecParse
rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags, const char *buildRoot)
rpmBuildPkgFlags_e
rpmBuildPkgFlags_e
Definition rpmbuild.h:50
rpmSpecBuild
int rpmSpecBuild(rpmts ts, rpmSpec spec, BTA_t buildArgs)
rpmSpecSourceHeader
Header rpmSpecSourceHeader(rpmSpec spec)
rpmSpecCheckDeps
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
rpmSpecDS
rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag)
RPMBUILD_PACKAGESOURCE
@ RPMBUILD_PACKAGESOURCE
Definition rpmbuild.h:28
RPMBUILD_FILECHECK
@ RPMBUILD_FILECHECK
Definition rpmbuild.h:27
RPMBUILD_PACKAGEBINARY
@ RPMBUILD_PACKAGEBINARY
Definition rpmbuild.h:29
RPMBUILD_CONF
@ RPMBUILD_CONF
Definition rpmbuild.h:40
RPMBUILD_CHECK
@ RPMBUILD_CHECK
Definition rpmbuild.h:25
RPMBUILD_RMSOURCE
@ RPMBUILD_RMSOURCE
Definition rpmbuild.h:30
RPMBUILD_POLICY
@ RPMBUILD_POLICY
Definition rpmbuild.h:36
RPMBUILD_CLEAN
@ RPMBUILD_CLEAN
Definition rpmbuild.h:26
RPMBUILD_PREP
@ RPMBUILD_PREP
Definition rpmbuild.h:22
RPMBUILD_BUILDREQUIRES
@ RPMBUILD_BUILDREQUIRES
Definition rpmbuild.h:38
RPMBUILD_RMSPEC
@ RPMBUILD_RMSPEC
Definition rpmbuild.h:33
RPMBUILD_DUMPBUILDREQUIRES
@ RPMBUILD_DUMPBUILDREQUIRES
Definition rpmbuild.h:39
RPMBUILD_FILE_LIST
@ RPMBUILD_FILE_LIST
Definition rpmbuild.h:35
RPMBUILD_BUILD
@ RPMBUILD_BUILD
Definition rpmbuild.h:23
RPMBUILD_RMBUILD
@ RPMBUILD_RMBUILD
Definition rpmbuild.h:31
RPMBUILD_NOBUILD
@ RPMBUILD_NOBUILD
Definition rpmbuild.h:42
RPMBUILD_CHECKBUILDREQUIRES
@ RPMBUILD_CHECKBUILDREQUIRES
Definition rpmbuild.h:37
RPMBUILD_FILE_FILE
@ RPMBUILD_FILE_FILE
Definition rpmbuild.h:34
RPMBUILD_INSTALL
@ RPMBUILD_INSTALL
Definition rpmbuild.h:24
RPMBUILD_STRINGBUF
@ RPMBUILD_STRINGBUF
Definition rpmbuild.h:32
RPMBUILD_PKG_NODIRTOKENS
@ RPMBUILD_PKG_NODIRTOKENS
Definition rpmbuild.h:52
rpmts
struct rpmts_s * rpmts
Definition rpmtypes.h:63
Header
struct headerToken_s * Header
Definition rpmtypes.h:24
rpmds.h
rpmspec.h
rpmBuildArguments_s
Definition rpmbuild.h:62
rpmBuildArguments_s::cookie
char * cookie
Definition rpmbuild.h:66
rpmBuildArguments_s::pkgFlags
rpmBuildPkgFlags pkgFlags
Definition rpmbuild.h:63
rpmBuildArguments_s::buildRootOverride
char * buildRootOverride
Definition rpmbuild.h:65
rpmBuildArguments_s::buildAmount
rpmBuildFlags buildAmount
Definition rpmbuild.h:64