#include "rpmlib.h"
#include "stringbuf.h"
#include "misc.h"
#include "rpmspec.h"
#include <ctype.h>
Go to the source code of this file.
Defines | |
#define | FREE(x) { if (x) free((void *)x); x = NULL; } |
#define | SKIPSPACE(s) { while (*(s) && isspace(*(s))) (s)++; } |
#define | SKIPNONSPACE(s) { while (*(s) && !isspace(*(s))) (s)++; } |
#define | PART_SUBNAME 0 |
#define | PART_NAME 1 |
#define | STRIP_NOTHING 0 |
#define | STRIP_TRAILINGSPACE (1 << 0) |
#define | STRIP_COMMENTS (1 << 1) |
Typedefs | |
typedef enum rpmBuildFlags_e | rpmBuildFlags |
typedef enum rpmParseState_e | rpmParseState |
Enumerations | |
enum | rpmBuildFlags_e { RPMBUILD_PREP = (1 << 0), RPMBUILD_BUILD = (1 << 1), RPMBUILD_INSTALL = (1 << 2), RPMBUILD_CLEAN = (1 << 3), RPMBUILD_FILECHECK = (1 << 4), RPMBUILD_PACKAGESOURCE = (1 << 5), RPMBUILD_PACKAGEBINARY = (1 << 6), RPMBUILD_RMSOURCE = (1 << 7), RPMBUILD_RMBUILD = (1 << 8), RPMBUILD_STRINGBUF = (1 << 9), RPMBUILD_RMSPEC = (1 << 10) } |
enum | rpmParseState_e { PART_NONE = 0, PART_PREAMBLE = 1, PART_PREP = 2, PART_BUILD = 3, PART_INSTALL = 4, PART_CLEAN = 5, PART_FILES = 6, PART_PRE = 7, PART_POST = 8, PART_PREUN = 9, PART_POSTUN = 10, PART_DESCRIPTION = 11, PART_CHANGELOG = 12, PART_TRIGGERIN = 13, PART_TRIGGERUN = 14, PART_VERIFYSCRIPT = 15, PART_BUILDARCHITECTURES = 16, PART_TRIGGERPOSTUN = 17, PART_LAST = 18 } |
Functions | |
int | parseTrigger (Spec spec, Package pkg, char *field, int tag) |
int | lookupPackage (Spec spec, const char *name, int flag, Package *pkg) |
Package | newPackage (Spec spec) |
void | freePackages (Spec spec) |
void | freePackage ( Package pkg) |
Variables | |
int (* | parseSpecVec )(Spec *specp, const char *specFile, const char *rootdir, const char *buildRoot, int inBuildArch, const char *passPhrase, char *cookie, int anyarch, int force) |
Definition in file rpmbuild.h.
|
Definition at line 37 of file rpmbuild.h. Referenced by addOrAppendListEntry(), addReqProv(), closeSpec(), doScript(), freeAttrRec(), freeCpioList(), freeFileList(), freePackage(), freeSl(), freeSources(), freeSpec(), freeSt(), freeTriggerFiles(), handlePreambleTag(), isMemberInEntry(), parseDescription(), parseFiles(), parseScript(), parseSpec(), popMacro(), printDeps(), processPackageFiles(), readIcon(), readLine(), rpmFreeMacros(), and timeCheck(). |
|
Definition at line 42 of file rpmbuild.h. |
|
Definition at line 41 of file rpmbuild.h. |
|
Definition at line 39 of file rpmbuild.h. Referenced by addChangelog(), dateToTimet(), handlePreambleTag(), matchTok(), and readLine(). |
|
Definition at line 38 of file rpmbuild.h. Referenced by addChangelog(), addSource(), dateToTimet(), findPreambleTag(), handleComments(), handlePreambleTag(), matchTok(), parseForAttr(), parseForConfig(), parseForLang(), parseForVerify(), parsePreamble(), processPackageFiles(), processSourceFiles(), and readLine(). |
|
Definition at line 71 of file rpmbuild.h. |
|
Definition at line 69 of file rpmbuild.h. |
|
Definition at line 70 of file rpmbuild.h. |
|
Bit(s) to control buildSpec() operation. |
|
Spec file parser states. |