check build prerequisites before building from specfile.
[platform/upstream/rpm.git] / build.h
1 #ifndef H_BUILD
2 #define H_BUILD
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 extern struct poptOption rpmBuildPoptTable[];
9
10 struct rpmBuildArguments {
11     int buildAmount;
12     const char *buildRootOverride;
13     char *targets;
14     int useCatalog;
15     int noLang;
16     int noBuild;
17     int shortCircuit;
18     char buildChar;
19 };
20
21 int build(const char *arg, struct rpmBuildArguments *ba, const char *passPhrase,
22           int fromTarball, char *cookie, const char * rcfile, int force,
23           int nodeps);
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif
30