# build/rpmspec.h File Reference

The Spec and Package data structures used during build. More...

Go to the source code of this file.

## Data Structures

struct | TriggerFileEntry
struct | Source
struct | ReadLevelEntry
struct | OpenFileInfo
struct | spectag_s
struct | spectags_s
struct | speclines_s
struct | SpecStruct
| The structure used to store values parsed from a spec file. More...
struct | PackageStruct
| The structure used to store values for a package. More...

## Defines

#define | RPMBUILD_ISSOURCE (1 << 0)
#define | RPMBUILD_ISPATCH (1 << 1)
#define | RPMBUILD_ISICON (1 << 2)
#define | RPMBUILD_ISNO (1 << 3)
#define | RPMBUILD_DEFAULT_LANG "C"

## Typedefs

typedef struct SpecStruct * | Spec
typedef struct ReadLevelEntry | RLE_t
typedef struct OpenFileInfo | OFI_t
typedef struct spectag_s * | spectag
typedef struct spectags_s * | spectags
typedef struct speclines_s * | speclines
typedef struct PackageStruct * | Package

## Functions

Spec | newSpec (void)
| Create and initialize Spec structure.
Spec | freeSpec (Spec spec)
| Destroy Spec structure.
struct OpenFileInfo * | newOpenFileInfo (void)
spectag | stashSt (Spec spec, Header h, int tag, const char *lang)
int | addSource (Spec spec, Package pkg, const char *field, int tag)
int | parseNoSource (Spec spec, const char *field, int tag)

## Variables

Spec(* | freeSpecVec )(Spec spec)

## Detailed Description

The Spec and Package data structures used during build.

Definition in file rpmspec.h.

## Define Documentation

#define RPMBUILD_DEFAULT_LANG "C"

Definition at line 28 of file rpmspec.h.

#define RPMBUILD_ISICON (1 << 2)

Definition at line 25 of file rpmspec.h.

#define RPMBUILD_ISNO (1 << 3)

Definition at line 26 of file rpmspec.h.

#define RPMBUILD_ISPATCH (1 << 1)

Definition at line 24 of file rpmspec.h.

#define RPMBUILD_ISSOURCE (1 << 0)

Definition at line 23 of file rpmspec.h.