rpm 5.3.7
Data Structures | Defines | Typedefs | Functions

build/rpmspec.h File Reference

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

#include <rpmevr.h>
#include <rpmfi.h>
#include <rpmcli.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...

Defines

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

Detailed Description

The Spec and Package data structures used during build.

Definition in file rpmspec.h.


Define Documentation

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

Definition at line 269 of file rpmspec.h.

#define RPMBUILD_DEFAULT_LANG   "C"