build.c File Reference

#include "system.h"
#include <rpmcli.h>
#include <rpmbuild.h>
#include "rpmps.h"
#include "rpmte.h"
#include "rpmts.h"
#include "build.h"
#include "debug.h"

Go to the source code of this file.

Defines

#define _anyarch(_f)   (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0)
#define buildCleanMask   (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)

Functions

static int checkSpec (rpmts ts, Header h)
 Parse spec file and build package.
static int isSpecFile (const char *specfile)
static int buildForTarget (rpmts ts, const char *arg, BTA_t ba)
int build (rpmts ts, const char *arg, BTA_t ba, const char *rcfile)


Define Documentation

#define _anyarch ( _f   )     (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0)

Referenced by buildForTarget().

#define buildCleanMask   (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)

Referenced by build().


Function Documentation

int build ( rpmts  ts,
const char *  arg,
BTA_t  ba,
const char *  rcfile 
)

static int buildForTarget ( rpmts  ts,
const char *  arg,
BTA_t  ba 
) [static]

static int isSpecFile ( const char *  specfile  )  [static]

Definition at line 54 of file build.c.

References _, Fclose(), Ferror(), Fopen(), Fread(), Fstrerror(), RPMERR_OPEN, and rpmError.

Referenced by buildForTarget().


Generated on Fri Dec 12 13:02:10 2008 for rpm by  doxygen 1.5.6