rpm  4.8.1
Data Structures | Macros | Typedefs | Functions
rpmspec.h File Reference

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

#include <rpm/rpmstring.h>
#include <rpm/rpmcli.h>
Include dependency graph for rpmspec.h:

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  rpmSpec_s
 The structure used to store values parsed from a spec file. More...
 
struct  Package_s
 The structure used to store values for a package. More...
 

Macros

#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 Package_sPackage
 
typedef struct ReadLevelEntry RLE_t
 
typedef struct OpenFileInfo OFI_t
 
typedef struct spectag_sspectag
 
typedef struct spectags_sspectags
 
typedef struct speclines_sspeclines
 

Functions

rpmSpec newSpec (void)
 Create and initialize rpmSpec structure. More...
 
rpmSpec freeSpec (rpmSpec spec)
 Destroy Spec structure. More...
 
int rpmspecQuery (rpmts ts, QVA_t qva, const char *arg)
 Function to query spec file(s). More...
 
struct OpenFileInfonewOpenFileInfo (void)
 
spectag stashSt (rpmSpec spec, Header h, rpmTag tag, const char *lang)
 stashSt. More...
 
int addSource (rpmSpec spec, Package pkg, const char *field, rpmTag tag)
 addSource. More...
 
int parseNoSource (rpmSpec spec, const char *field, rpmTag tag)
 parseNoSource. More...
 

Detailed Description

The rpmSpec and Package data structures used during build.

Definition in file rpmspec.h.

Macro Definition Documentation

◆ RPMBUILD_DEFAULT_LANG

#define RPMBUILD_DEFAULT_LANG   "C"

Definition at line 35 of file rpmspec.h.

◆ RPMBUILD_ISICON

#define RPMBUILD_ISICON   (1 << 2)

Definition at line 32 of file rpmspec.h.

◆ RPMBUILD_ISNO

#define RPMBUILD_ISNO   (1 << 3)

Definition at line 33 of file rpmspec.h.

◆ RPMBUILD_ISPATCH

#define RPMBUILD_ISPATCH   (1 << 1)

Definition at line 31 of file rpmspec.h.

◆ RPMBUILD_ISSOURCE

#define RPMBUILD_ISSOURCE   (1 << 0)

Definition at line 30 of file rpmspec.h.

Typedef Documentation

◆ OFI_t

typedef struct OpenFileInfo OFI_t

◆ Package

typedef struct Package_s* Package

Definition at line 18 of file rpmspec.h.

◆ RLE_t

typedef struct ReadLevelEntry RLE_t

◆ speclines

typedef struct speclines_s * speclines

◆ spectag

typedef struct spectag_s * spectag

◆ spectags

typedef struct spectags_s * spectags

Function Documentation

◆ addSource()

int addSource ( rpmSpec  spec,
Package  pkg,
const char *  field,
rpmTag  tag 
)

addSource.

Parameters
specspec file control structure
pkgpackage control
fieldfield to parse
tagtag

◆ freeSpec()

rpmSpec freeSpec ( rpmSpec  spec)

Destroy Spec structure.

Parameters
specspec file control structure
Returns
NULL always

Referenced by buildForTarget().

◆ newOpenFileInfo()

struct OpenFileInfo* newOpenFileInfo ( void  )

◆ newSpec()

rpmSpec newSpec ( void  )

Create and initialize rpmSpec structure.

Returns
spec spec file control structure

◆ parseNoSource()

int parseNoSource ( rpmSpec  spec,
const char *  field,
rpmTag  tag 
)

parseNoSource.

Parameters
specspec file control structure
fieldfield to parse
tagtag

◆ rpmspecQuery()

int rpmspecQuery ( rpmts  ts,
QVA_t  qva,
const char *  arg 
)

Function to query spec file(s).

Parameters
tstransaction set
qvaparsed query/verify options
argquery argument
Returns
0 on success, else no. of failures

Referenced by main().

◆ stashSt()

spectag stashSt ( rpmSpec  spec,
Header  h,
rpmTag  tag,
const char *  lang 
)

stashSt.

Parameters
specspec file control structure
hheader
tagtag
langlocale