Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# SpecStruct Struct Reference
[RPMBUILD.]

`#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 newSpec(), parsePreamble(), and parseSpec().

int SpecStruct::BACount

| Definition at line 114 of file rpmspec.h. Referenced by buildSpec(), freeSpec(), handlePreambleTag(), initSourceHeader(), newSpec(), and parseSpec().

const char** SpecStruct::BANames

| Definition at line 113 of file rpmspec.h. Referenced by freeSpec(), handlePreambleTag(), initSourceHeader(), newSpec(), parsePreamble(), and parseSpec().

struct SpecStruct** SpecStruct::BASpecs

| Definition at line 112 of file rpmspec.h. Referenced by buildSpec(), freeSpec(), newSpec(), and parseSpec().

StringBuf SpecStruct::build

| build scriptlet. Definition at line 138 of file rpmspec.h. Referenced by doScript(), freeSpec(), newSpec(), and parseBuildInstallClean().

Header SpecStruct::buildRestrictions

| Definition at line 111 of file rpmspec.h. Referenced by checkForValidArchitectures(), freeSpec(), handlePreambleTag(), initSourceHeader(), newSpec(), and parseRCPOT().

const char* SpecStruct::buildRootURL

| Definition at line 95 of file rpmspec.h. Referenced by freeSpec(), handlePreambleTag(), newSpec(), parsePreamble(), parseSpec(), and processPackageFiles().

const char* SpecStruct::buildSubdir

| Definition at line 96 of file rpmspec.h. Referenced by addFileToTagAux(), doScript(), doSetupMacro(), freeSpec(), newSpec(), and processPackageFiles().

StringBuf SpecStruct::clean

| clean scriptlet. Definition at line 140 of file rpmspec.h. Referenced by doScript(), freeSpec(), newSpec(), and parseBuildInstallClean().

const char* SpecStruct::cookie

| Definition at line 124 of file rpmspec.h. Referenced by freeSpec(), newSpec(), packageBinaries(), packageSources(), parseSpec(), and rewriteRPM().

struct OpenFileInfo* SpecStruct::fileStack

| Definition at line 102 of file rpmspec.h. Referenced by closeSpec(), forceIncludeFile(), freeSpec(), newSpec(), parseSpec(), and readLine().

int SpecStruct::force

| Definition at line 117 of file rpmspec.h. Referenced by doPatch(), doUntar(), newSpec(), parsePrep(), and parseSpec().

int SpecStruct::gotBuildRootURL

| Definition at line 120 of file rpmspec.h. Referenced by handlePreambleTag(), newSpec(), parsePreamble(), and parseSpec().

StringBuf SpecStruct::install

| install scriptlet. Definition at line 139 of file rpmspec.h. Referenced by doScript(), freeSpec(), newSpec(), and parseBuildInstallClean().

char SpecStruct::lbuf[4 *BUFSIZ]

| Definition at line 103 of file rpmspec.h. Referenced by copyNextLine(), and newSpec().

char* SpecStruct::line

| Definition at line 106 of file rpmspec.h. Referenced by addSource(), copyNextLine(), doPatchMacro(), findPreambleTag(), handlePreambleTag(), newSpec(), 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(), newSpec(), 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(), newSpec(), parseSpec(), and processPackageFiles().

char* SpecStruct::nextline

| Definition at line 105 of file rpmspec.h. Referenced by copyNextLine(), and newSpec().

char SpecStruct::nextpeekc

| Definition at line 104 of file rpmspec.h. Referenced by copyNextLine(), and newSpec().

int SpecStruct::noSource

| Definition at line 128 of file rpmspec.h. Referenced by genSourceRpmName(), handlePreambleTag(), and newSpec().

int SpecStruct::numSources

| Definition at line 127 of file rpmspec.h. Referenced by addSource(), newSpec(), and processSourceFiles().

struct PackageStruct* SpecStruct::packages

| Package list. Definition at line 142 of file rpmspec.h. Referenced by doRmSource(), doSetupMacro(), freeSpec(), genSourceRpmName(), initSourceHeader(), lookupPackage(), newPackage(), newSpec(), packageBinaries(), parseChangelog(), parsePreamble(), parseSpec(), printNewSpecfile(), processBinaryFiles(), processSourceFiles(), readRPM(), rewriteRPM(), and rpmQueryVerify().

char* SpecStruct::passPhrase

| Definition at line 122 of file rpmspec.h. Referenced by freeSpec(), newSpec(), packageBinaries(), packageSources(), parseSpec(), and rewriteRPM().

StringBuf SpecStruct::prep

| prep scriptlet. Definition at line 137 of file rpmspec.h. Referenced by doPatchMacro(), doScript(), doSetupMacro(), freeSpec(), newSpec(), and parsePrep().

struct ReadLevelEntry* SpecStruct::readStack

| Definition at line 109 of file rpmspec.h. Referenced by copyNextLine(), freeSpec(), newSpec(), and readLine().

int SpecStruct::recursing

| parse is recursive? Definition at line 115 of file rpmspec.h. Referenced by buildSpec(), freeSpec(), newSpec(), parsePreamble(), and parseSpec().

const char* SpecStruct::rootURL

| Definition at line 97 of file rpmspec.h. Referenced by doScript(), doSetupMacro(), freeSpec(), handlePreambleTag(), newSpec(), parseSpec(), and processPackageFiles().

speclines SpecStruct::sl

| Definition at line 99 of file rpmspec.h. Referenced by freeSpec(), newSpec(), printNewSpecfile(), and readLine().

void* SpecStruct::sourceCpioList

| Definition at line 133 of file rpmspec.h. Referenced by freeSpec(), newSpec(), packageSources(), and processSourceFiles().

Header SpecStruct::sourceHeader

| Definition at line 131 of file rpmspec.h. Referenced by buildForTarget(), freeSpec(), initSourceHeader(), newSpec(), packageSources(), and processSourceFiles().

const char* SpecStruct::sourceRpmName

| Definition at line 94 of file rpmspec.h. Referenced by freeSpec(), genSourceRpmName(), newSpec(), packageBinaries(), and packageSources().

struct Source* SpecStruct::sources

| Definition at line 126 of file rpmspec.h. Referenced by addSource(), doPatch(), doRmSource(), doUntar(), findSource(), freeSpec(), newSpec(), and processSourceFiles().

const char* SpecStruct::specFile

| Name of the spec file. Definition at line 93 of file rpmspec.h. Referenced by buildSpec(), doRmSource(), freeSpec(), newSpec(), parseSpec(), and processSourceFiles().

spectags SpecStruct::st

| Definition at line 100 of file rpmspec.h. Referenced by freeSpec(), newSpec(), printNewSpecfile(), and stashSt().

int SpecStruct::timeCheck

| Definition at line 123 of file rpmspec.h. Referenced by newSpec(), parseSpec(), and processPackageFiles().

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

- build/rpmspec.h