build.c File Reference

#include "system.h"
#include <libgen.h>
#include <rpm/rpmcli.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmps.h>
#include <rpm/rpmte.h>
#include <rpm/rpmts.h>
#include <rpm/rpmfileutil.h>
#include <rpm/rpmlog.h>
#include <lib/misc.h>
#include "build.h"
#include "debug.h"

Include dependency graph for build.c:

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 char * getTarSpec (const char *arg)
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 char* getTarSpec ( const char *  arg  )  [static]

Definition at line 102 of file build.c.

References _, isSpecFile(), rasprintf(), rpmExpand(), rpmGetPath(), rpmlog(), and RPMLOG_ERR.

Referenced by buildForTarget().

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

Definition at line 55 of file build.c.

References _, errno, rpmlog(), and RPMLOG_ERR.

Referenced by buildForTarget(), and getTarSpec().


Generated on Sat Apr 18 17:12:58 2009 for rpm by  doxygen 1.5.7.1