rpm  4.8.1
Macros | Functions
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.

Macros

#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. More...
 
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)
 

Macro Definition Documentation

◆ _anyarch

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

Referenced by buildForTarget().

◆ buildCleanMask

#define buildCleanMask   (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)

Referenced by build().

Function Documentation

◆ build()

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

◆ buildForTarget()

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

◆ checkSpec()

static int checkSpec ( rpmts  ts,
Header  h 
)
static

◆ getTarSpec()

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().

◆ isSpecFile()

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().