rpm
4.11.1-rc1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
build
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_ */
Generated by
1.8.3.1