# SpecStruct Struct Reference
[RPMBUILD.]

The structure used to store values parsed from a spec file. More...

`#include <rpmspec.h>`

## Data Fields

const char * | specFile
const char * | sourceRpmName
const char * | buildRootURL
const char * | buildSubdir
const char * | rootURL
speclines | sl
spectags | st
OpenFileInfo * | fileStack
char | lbuf [4 *BUFSIZ]
char | nextpeekc
char * | nextline
char * | line
int | lineNum
ReadLevelEntry * | readStack
Header | buildRestrictions
SpecStruct ** | BASpecs
const char ** | BANames
int | BACount
int | recursing
int | force
int | anyarch
int | gotBuildRootURL
char * | passPhrase
int | timeCheck
const char * | cookie
Source * | sources
int | numSources
int | noSource
Header | sourceHeader
void * | sourceCpioList
MacroContext | macros
StringBuf | prep
StringBuf | build
StringBuf | install
StringBuf | clean
PackageStruct * | packages

## Detailed Description

The structure used to store values parsed from a spec file.

Definition at line 92 of file rpmspec.h.

## Field Documentation

int SpecStruct::anyarch

Definition at line 118 of file rpmspec.h.

Referenced by parsePreamble(), and parseSpec().

int SpecStruct::BACount

Definition at line 114 of file rpmspec.h.

Referenced by buildSpec(), freeSpec(), handlePreambleTag(), initSourceHeader(), and parseSpec().

const char** SpecStruct::BANames

Definition at line 113 of file rpmspec.h.

Referenced by freeSpec(), handlePreambleTag(), initSourceHeader(), parsePreamble(), and parseSpec().

struct SpecStruct** SpecStruct::BASpecs

Definition at line 112 of file rpmspec.h.

Referenced by buildSpec(), freeSpec(), and parseSpec().

StringBuf SpecStruct::build

build scriptlet.

Definition at line 138 of file rpmspec.h.

Referenced by doScript(), freeSpec(), and parseBuildInstallClean().

Header SpecStruct::buildRestrictions

Definition at line 111 of file rpmspec.h.

Referenced by checkForValidArchitectures(), freeSpec(), handlePreambleTag(), initSourceHeader(), and parseRCPOT().

const char* SpecStruct::buildRootURL

Definition at line 95 of file rpmspec.h.

Referenced by freeSpec(), handlePreambleTag(), parsePreamble(), parseSpec(), and processPackageFiles().

const char* SpecStruct::buildSubdir

Definition at line 96 of file rpmspec.h.

Referenced by addFileToTagAux(), doScript(), doSetupMacro(), freeSpec(), and processPackageFiles().

StringBuf SpecStruct::clean

clean scriptlet.

Definition at line 140 of file rpmspec.h.

Referenced by doScript(), freeSpec(), and parseBuildInstallClean().

const char* SpecStruct::cookie

Definition at line 124 of file rpmspec.h.

Referenced by freeSpec(), packageBinaries(), packageSources(), parseSpec(), and rewriteRPM().

struct OpenFileInfo* SpecStruct::fileStack

Definition at line 102 of file rpmspec.h.

Referenced by closeSpec(), forceIncludeFile(), freeSpec(), parseSpec(), and readLine().

int SpecStruct::force

Definition at line 117 of file rpmspec.h.

Referenced by doPatch(), doUntar(), parsePrep(), and parseSpec().

int SpecStruct::gotBuildRootURL

Definition at line 120 of file rpmspec.h.

Referenced by handlePreambleTag(), parsePreamble(), and parseSpec().

StringBuf SpecStruct::install

install scriptlet.

Definition at line 139 of file rpmspec.h.

Referenced by doScript(), freeSpec(), and parseBuildInstallClean().

char SpecStruct::lbuf[4 *BUFSIZ]

Definition at line 103 of file rpmspec.h.

Referenced by copyNextLine().

char* SpecStruct::line

Definition at line 106 of file rpmspec.h.

Referenced by addSource(), copyNextLine(), doPatchMacro(), findPreambleTag(), handlePreambleTag(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parsePreamble(), parsePrep(), parseRCPOT(), parseScript(), and readLine().

int SpecStruct::lineNum

Definition at line 107 of file rpmspec.h.

Referenced by addSource(), copyNextLine(), doPatchMacro(), doSetupMacro(), handlePreambleTag(), parseBuildInstallClean(), parseDescription(), parseFiles(), parseNoSource(), parsePreamble(), parsePrep(), parseRCPOT(), parseScript(), readLine(), and stashSt().

MacroContext SpecStruct::macros

Definition at line 135 of file rpmspec.h.

Referenced by addFileToTagAux(), addSource(), copyNextLine(), doScript(), doSetupMacro(), handlePreambleTag(), parseSpec(), and processPackageFiles().

char* SpecStruct::nextline

Definition at line 105 of file rpmspec.h.

Referenced by copyNextLine().

char SpecStruct::nextpeekc

Definition at line 104 of file rpmspec.h.

Referenced by copyNextLine().

int SpecStruct::noSource

Definition at line 128 of file rpmspec.h.

Referenced by genSourceRpmName(), and handlePreambleTag().

int SpecStruct::numSources

Definition at line 127 of file rpmspec.h.

Referenced by addSource().

struct PackageStruct* SpecStruct::packages

Package list.

Definition at line 142 of file rpmspec.h.

Referenced by doRmSource(), doSetupMacro(), freeSpec(), genSourceRpmName(), initSourceHeader(), lookupPackage(), newPackage(), packageBinaries(), parseChangelog(), parsePreamble(), parseSpec(), printNewSpecfile(), processBinaryFiles(), readRPM(), rewriteRPM(), and rpmQueryVerify().

char* SpecStruct::passPhrase

Definition at line 122 of file rpmspec.h.

Referenced by freeSpec(), packageBinaries(), packageSources(), parseSpec(), and rewriteRPM().

StringBuf SpecStruct::prep

prep scriptlet.

Definition at line 137 of file rpmspec.h.

Referenced by doPatchMacro(), doScript(), doSetupMacro(), freeSpec(), and parsePrep().

struct ReadLevelEntry* SpecStruct::readStack

Definition at line 109 of file rpmspec.h.

Referenced by copyNextLine(), freeSpec(), and readLine().

int SpecStruct::recursing

parse is recursive?

Definition at line 115 of file rpmspec.h.

Referenced by buildSpec(), freeSpec(), parsePreamble(), and parseSpec().

const char* SpecStruct::rootURL

Definition at line 97 of file rpmspec.h.

Referenced by doScript(), doSetupMacro(), freeSpec(), handlePreambleTag(), parseSpec(), and processPackageFiles().

speclines SpecStruct::sl

Definition at line 99 of file rpmspec.h.

Referenced by freeSpec(), printNewSpecfile(), and readLine().

void* SpecStruct::sourceCpioList

Definition at line 133 of file rpmspec.h.

Referenced by freeSpec(), and packageSources().

Header SpecStruct::sourceHeader

Definition at line 131 of file rpmspec.h.

Referenced by buildForTarget(), freeSpec(), initSourceHeader(), packageSources(), and processSourceFiles().

const char* SpecStruct::sourceRpmName

Definition at line 94 of file rpmspec.h.

Referenced by freeSpec(), genSourceRpmName(), packageBinaries(), and packageSources().

struct Source* SpecStruct::sources

Definition at line 126 of file rpmspec.h.

Referenced by addSource(), doPatch(), doRmSource(), doUntar(), findSource(), and freeSpec().

const char* SpecStruct::specFile

Name of the spec file.

Definition at line 93 of file rpmspec.h.

Referenced by doRmSource(), freeSpec(), and parseSpec().

spectags SpecStruct::st

Definition at line 100 of file rpmspec.h.

Referenced by freeSpec(), printNewSpecfile(), and stashSt().

int SpecStruct::timeCheck

Definition at line 123 of file rpmspec.h.

Referenced by parseSpec(), and processPackageFiles().

The documentation for this struct was generated from the following file:

- build/rpmspec.h