rpm  5.4.10
Macros | Functions
parseBuildInstallClean.c File Reference

Parse build/install/clean section from spec file. More...

#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmlog.h>
#include "rpmbuild.h"
#include "debug.h"
Include dependency graph for parseBuildInstallClean.c:

Go to the source code of this file.

Macros

#define _RPMTAG_INTERNAL
 

Functions

int parseBuildInstallClean (Spec spec, rpmParseState parsePart)
 Parse %build/%install/%clean section(s) of a spec file. More...
 

Detailed Description

Parse build/install/clean section from spec file.

Definition in file parseBuildInstallClean.c.

Macro Definition Documentation

§ _RPMTAG_INTERNAL

#define _RPMTAG_INTERNAL

Definition at line 10 of file parseBuildInstallClean.c.

Function Documentation

§ parseBuildInstallClean()

int parseBuildInstallClean ( Spec  spec,
rpmParseState  parsePart 
)

Parse %build/%install/%clean section(s) of a spec file.

Parameters
specspec file control structure
parsePartcurrent rpmParseState
Returns
>= 0 next rpmParseState, < 0 on error

Definition at line 14 of file parseBuildInstallClean.c.

References _, _free(), Spec_s::build, Spec_s::check, Spec_s::clean, Spec_s::foo, Spec_s::install, isPart(), Spec_s::line, Spec_s::lineNum, name, Spec_s::nfoo, PART_ARBITRARY, PART_BUILD, PART_CHECK, PART_CLEAN, PART_INSTALL, PART_NONE, readLine(), rpmExpand(), rpmiobAppend(), rpmiobNew(), rpmlog(), RPMLOG_ERR, RPMRC_FAIL, RPMRC_OK, and STRIP_NOTHING.

Referenced by parseSpec().