summaryrefslogtreecommitdiff
path: root/build/build.h
blob: 290596fc315f25d6515863528c9391bbbcf29dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef	_H_BUILD_
#define	_H_BUILD_

#include "spec.h"

#define RPMBUILD_PREP             (1 << 0)
#define RPMBUILD_BUILD            (1 << 1)
#define RPMBUILD_INSTALL          (1 << 2)
#define RPMBUILD_CLEAN            (1 << 3)
#define RPMBUILD_FILECHECK        (1 << 4)
#define RPMBUILD_PACKAGESOURCE    (1 << 5)
#define RPMBUILD_PACKAGEBINARY    (1 << 6)
#define RPMBUILD_RMSOURCE         (1 << 7)
#define RPMBUILD_RMBUILD          (1 << 8)
#define RPMBUILD_STRINGBUF        (1 << 9) /* only for doScript() */

#ifdef __cplusplus
extern "C" {
#endif

int buildSpec(Spec spec, int what, int test);
int doScript(Spec spec, int what, char *name, StringBuf sb, int test);

#ifdef __cplusplus
}
#endif

#endif	/* _H_BUILD_ */