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

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

#include <sys/types.h>
#include <rpmtypes.h>
#include <rpmiotypes.h>
#include <rpmevr.h>
#include <rpmfi.h>
#include <rpmcli.h>
#include <rpmtag.h>
#include <rpmio.h>
Include dependency graph for rpmspec.h:
This graph shows which files directly or indirectly include this file:

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  Spec_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_DEFAULT_LANG   "C"
 
#define freeSpec(_spec)   ((Spec)rpmioFreePoolItem((rpmioItem)(_spec), __FUNCTION__, __FILE__, __LINE__))
 

Typedefs

typedef struct Package_sPackage
 
typedef struct SourceSpecSource
 
typedef struct ReadLevelEntry RLE_t
 
typedef struct OpenFileInfo OFI_t
 
typedef struct spectag_sspectag
 
typedef struct spectags_sspectags
 
typedef struct speclines_sspeclines
 

Functions

Spec freeSpec (Spec spec)
 Destroy a spec file control structure. More...
 
Spec newSpec (void)
 Create and initialize 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 (Spec spec, Header h, rpmTag tag, const char *lang)
 stashSt. More...
 
int addSource (Spec spec, Package pkg, const char *field, rpmTag tag)
 addSource. More...
 
int parseNoSource (Spec spec, const char *field, rpmTag tag)
 parseNoSource. More...
 
int SpecSourceCount (Spec spec)
 Return the count of source set in specfile. More...
 
SpecSource getSource (Spec spec, int num)
 Return a source control structure. More...
 
const char * specSourceName (SpecSource source)
 Return a ptr to the source file name. More...
 
const char * specFullSourceName (SpecSource source)
 Return a ptr to the full url of the source. More...
 
int specSourceNum (SpecSource source)
 Return the spec or source patch number. More...
 
int specSourceFlags (SpecSource source)
 Return flags set for the source. More...
 
const char * getSourceDir (rpmfileAttrs attr)
 Return the macro directory location from source file flags. More...
 

Detailed Description

The Spec and Package data structures used during build.

Definition in file rpmspec.h.

Macro Definition Documentation

#define freeSpec (   _spec)    ((Spec)rpmioFreePoolItem((rpmioItem)(_spec), __FUNCTION__, __FILE__, __LINE__))

Definition at line 276 of file rpmspec.h.

#define RPMBUILD_DEFAULT_LANG   "C"

Definition at line 40 of file rpmspec.h.

Referenced by findPreambleTag(), for(), handlePreambleTag(), parseDescription(), and stashSt().