rpmbuild.h
Go to the documentation of this file.
#ifndef _H_RPMBUILD_
#define _H_RPMBUILD_
#include <rpm/rpmcli.h>
#include <rpm/rpmds.h>
#include <rpm/rpmspec.h>
#ifdef __cplusplus
extern "C" {
#endif
enum rpmBuildFlags_e {
RPMBUILD_NONE = 0,
RPMBUILD_PREP = (1 << 0),
RPMBUILD_BUILD = (1 << 1),
RPMBUILD_INSTALL = (1 << 2),
RPMBUILD_CHECK = (1 << 3),
RPMBUILD_CLEAN = (1 << 4),
RPMBUILD_FILECHECK = (1 << 5),
RPMBUILD_PACKAGESOURCE = (1 << 6),
RPMBUILD_PACKAGEBINARY = (1 << 7),
RPMBUILD_RMSOURCE = (1 << 8),
RPMBUILD_RMBUILD = (1 << 9),
RPMBUILD_STRINGBUF = (1 << 10),
RPMBUILD_RMSPEC = (1 << 11),
RPMBUILD_NOBUILD = (1 << 31)
};
typedef rpmFlags rpmBuildFlags;
enum rpmBuildPkgFlags_e {
RPMBUILD_PKG_NONE = 0,
RPMBUILD_PKG_NODIRTOKENS = (1 << 0),
};
typedef rpmFlags rpmBuildPkgFlags;
struct rpmBuildArguments_s {
rpmBuildPkgFlags pkgFlags;
rpmBuildFlags buildAmount;
char * buildRootOverride;
char * cookie;
const char * rootdir;
};
typedef struct rpmBuildArguments_s * BTA_t;
rpmSpec rpmSpecParse(const char *specFile, rpmSpecFlags flags,
const char *buildRoot);
Header rpmSpecSourceHeader(rpmSpec spec);
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec);
rpmds rpmSpecDS(rpmSpec spec, rpmTagVal tag);
rpmRC rpmSpecBuild(rpmSpec spec, BTA_t buildArgs);
#ifdef __cplusplus
}
#endif
#endif /* _H_RPMBUILD_ */