#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "debug.h"
Include dependency graph for parsePreamble.c:
Go to the source code of this file.
Data Structures | |
struct | tokenBits_s |
struct | optionalTag |
struct | PreambleRec_s |
Defines | |
#define | _RPMEVR_INTERNAL |
#define | SINGLE_TOKEN_ONLY |
Typedefs | |
typedef tokenBits_s * | tokenBits |
typedef PreambleRec_s * | PreambleRec |
Functions | |
static void | addOrAppendListEntry (Header h, int_32 tag, char *line) |
static int | parseSimplePart (char *line, char **name, rpmParseState *flag) |
static int | parseYesNo (const char *s) |
static int | parseBits (const char *s, const tokenBits tokbits, rpmsenseFlags *bp) |
static char * | findLastChar (char *s) |
static int | isMemberInEntry (Header h, const char *name, rpmTag tag) |
static int | checkForValidArchitectures (Spec spec) |
static int | checkForRequired (Header h, const char *NVR) |
Check that required tags are present in header. | |
static int | checkForDuplicates (Header h, const char *NVR) |
Check that no duplicate tags are present in header. | |
static void | fillOutMainPackage (Header h) |
static int | doIcon (Spec spec, Header h) |
spectag | stashSt (Spec spec, Header h, int tag, const char *lang) |
static int | handlePreambleTag (Spec spec, Package pkg, rpmTag tag, const char *macro, const char *lang) |
static int | findPreambleTag (Spec spec, rpmTag *tag, const char **macro, char *lang) |
int | parsePreamble (Spec spec, int initialPackage) |
Parse tags from preamble of a spec file. | |
Variables | |
static rpmTag | copyTagsDuringParse [] |
static rpmTag | requiredTags [] |
static struct tokenBits_s | installScriptBits [] |
static struct tokenBits_s | buildScriptBits [] |
static struct optionalTag | optionalTags [] |
int | noLang |
static struct PreambleRec_s | preambleList [] |
Definition in file parsePreamble.c.
|
Definition at line 9 of file parsePreamble.c. |
|
Value: if (multiToken) { \ rpmError(RPMERR_BADSPEC, _("line %d: Tag takes single token only: %s\n"), \ spec->lineNum, spec->line); \ return RPMERR_BADSPEC; \ } Definition at line 477 of file parsePreamble.c. Referenced by handlePreambleTag(). |
|
|
|
|
|
Definition at line 60 of file parsePreamble.c. References _free(), headerAddOrAppendEntry(), and RPM_STRING_ARRAY_TYPE. Referenced by handlePreambleTag(). |
|
Check that no duplicate tags are present in header.
Definition at line 297 of file parsePreamble.c. References _, headerFreeIterator(), headerInitIterator(), headerNextIterator(), RPMERR_BADSPEC, rpmError, and tagName(). Referenced by parsePreamble(). |
|
Check that required tags are present in header.
Definition at line 271 of file parsePreamble.c. References _, headerIsEntry(), requiredTags, RPMERR_BADSPEC, rpmError, and tagName(). Referenced by parsePreamble(). |
|
Definition at line 234 of file parsePreamble.c. References _, _free(), isMemberInEntry(), RPMERR_BADSPEC, rpmError, rpmExpand(), RPMTAG_EXCLUDEARCH, RPMTAG_EXCLUDEOS, RPMTAG_EXCLUSIVEARCH, RPMTAG_EXCLUSIVEOS, and Spec_s::sourceHeader. Referenced by parsePreamble(). |
|
Definition at line 357 of file parsePreamble.c. References _, _free(), alloca(), Fclose(), Ferror(), Source::flags, Fopen(), Fread(), Fstrerror(), headerAddEntry(), Source::next, RPM_BIN_TYPE, RPMERR_BADSPEC, rpmError, rpmExpandNumeric(), RPMFILE_ICON, rpmGenPath(), RPMTAG_GIF, RPMTAG_XPM, Source::source, Spec_s::sources, URL_IS_DASH, URL_IS_FTP, URL_IS_HKP, URL_IS_HTTP, URL_IS_HTTPS, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath(). Referenced by handlePreambleTag(). |
|
Definition at line 336 of file parsePreamble.c. References _free(), headerAddEntry(), headerIsEntry(), optionalTags, optionalTag::ot_mac, optionalTag::ot_tag, RPM_STRING_TYPE, and rpmExpand(). Referenced by parsePreamble(). |
|
Definition at line 195 of file parsePreamble.c. Referenced by handlePreambleTag(). |
|
Definition at line 838 of file parsePreamble.c. References _, Spec_s::line, PreambleRec_s::multiLang, PreambleRec_s::obsolete, RPMBUILD_DEFAULT_LANG, RPMERR_BADSPEC, rpmError, RPMTAG_PATCH, RPMTAG_SOURCE, SKIPSPACE, PreambleRec_s::tag, PreambleRec_s::token, xisspace(), and xstrncasecmp(). Referenced by parsePreamble(). |
|
|
Definition at line 211 of file parsePreamble.c. References headerFreeData(), headerGetEntryMinMemory(), and xstrcasecmp(). Referenced by checkForValidArchitectures(). |
|
Definition at line 158 of file parsePreamble.c. References tokenBits_s::bits, tokenBits_s::name, RPMERR_BADSPEC, RPMSENSE_ANY, xisalpha(), and xisspace(). Referenced by handlePreambleTag(). |
|
Definition at line 79 of file parsePreamble.c. References PART_NAME, and PART_SUBNAME. Referenced by parsePreamble(). |
|
Definition at line 114 of file parsePreamble.c. References xstrcasecmp(). Referenced by handlePreambleTag(). |
|
Initial value: { { "prep", RPMSENSE_SCRIPT_PREP }, { "build", RPMSENSE_SCRIPT_BUILD }, { "install", RPMSENSE_SCRIPT_INSTALL }, { "clean", RPMSENSE_SCRIPT_CLEAN }, { "hint", RPMSENSE_MISSINGOK }, { NULL, 0 } } Definition at line 146 of file parsePreamble.c. |
|
Initial value: { RPMTAG_EPOCH, RPMTAG_VERSION, RPMTAG_RELEASE, RPMTAG_LICENSE, RPMTAG_PACKAGER, RPMTAG_DISTRIBUTION, RPMTAG_DISTURL, RPMTAG_VENDOR, RPMTAG_ICON, RPMTAG_GIF, RPMTAG_XPM, RPMTAG_URL, RPMTAG_CHANGELOGTIME, RPMTAG_CHANGELOGNAME, RPMTAG_CHANGELOGTEXT, RPMTAG_PREFIXES, RPMTAG_DISTTAG, RPMTAG_CVSID, RPMTAG_VARIANTS, RPMTAG_XMAJOR, RPMTAG_XMINOR, RPMTAG_REPOTAG, RPMTAG_KEYWORDS, 0 } Definition at line 18 of file parsePreamble.c. Referenced by parsePreamble(). |
|
Initial value: { { "interp", RPMSENSE_INTERP }, { "preun", RPMSENSE_SCRIPT_PREUN }, { "pre", RPMSENSE_SCRIPT_PRE }, { "postun", RPMSENSE_SCRIPT_POSTUN }, { "post", RPMSENSE_SCRIPT_POST }, { "rpmlib", RPMSENSE_RPMLIB }, { "verify", RPMSENSE_SCRIPT_VERIFY }, { "hint", RPMSENSE_MISSINGOK }, { NULL, 0 } } Definition at line 131 of file parsePreamble.c. |
|
|
|
Referenced by fillOutMainPackage(). |
|
Definition at line 772 of file parsePreamble.c. |
|
Initial value: Definition at line 48 of file parsePreamble.c. Referenced by checkForRequired(). |