#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | optionalTag |
struct | PreambleRec_s |
struct | tokenBits_s |
Defines | |
#define | SINGLE_TOKEN_ONLY |
Typedefs | |
typedef tokenBits_s * | tokenBits |
typedef PreambleRec_s * | PreambleRec |
Functions | |
void | addOrAppendListEntry (Header h, int_32 tag, char *line) |
int | parseSimplePart (char *line, char **name, int *flag) |
int | parseYesNo (const char *s) |
int | parseBits (const char *s, const tokenBits tokbits, rpmsenseFlags *bp) |
char * | findLastChar (char *s) |
int | isMemberInEntry (Header h, const char *name, rpmTag tag) |
int | checkForValidArchitectures (Spec spec) |
int | checkForRequired (Header h, const char *NVR) |
Check that required tags are present in header. More... | |
int | checkForDuplicates (Header h, const char *NVR) |
Check that no duplicate tags are present in header. More... | |
void | fillOutMainPackage (Header h) |
int | readIcon (Header h, const char *file) |
spectag | stashSt (Spec spec, Header h, int tag, const char *lang) |
int | handlePreambleTag (Spec spec, Package pkg, int tag, const char *macro, const char *lang) |
void | initPreambleList (void) |
int | findPreambleTag (Spec spec, int *tag, const char **macro, char *lang) |
int | parsePreamble (Spec spec, int initialPackage) |
Variables | |
rpmTag | copyTagsDuringParse [] |
rpmTag | requiredTags [] |
tokenBits_s | installScriptBits [] |
tokenBits_s | buildScriptBits [] |
optionalTag | optionalTags [] |
int | noLang |
PreambleRec_s | preambleList [] |
Definition in 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 445 of file parsePreamble.c. Referenced by handlePreambleTag. |
|
|
|
|
|
Definition at line 51 of file parsePreamble.c. References _free, headerAddOrAppendEntry, int_32, poptParseArgvString, and RPM_STRING_ARRAY_TYPE. Referenced by handlePreambleTag. |
|
Check that no duplicate tags are present in header.
Definition at line 296 of file parsePreamble.c. References _, headerFreeIterator, headerInitIterator, headerNextIterator, and tagName. Referenced by parsePreamble. |
|
Check that required tags are present in header.
Definition at line 270 of file parsePreamble.c. References _, headerIsEntry, requiredTags, rpmTag, and tagName. Referenced by parsePreamble. |
|
Definition at line 226 of file parsePreamble.c. References _, isMemberInEntry, rpmExpand, rpmGetArchInfo, rpmGetOsInfo, RPMTAG_EXCLUDEARCH, RPMTAG_EXCLUDEOS, RPMTAG_EXCLUSIVEARCH, and RPMTAG_EXCLUSIVEOS. Referenced by parsePreamble. |
|
Definition at line 334 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 183 of file parsePreamble.c. References xisspace. Referenced by handlePreambleTag. |
|
Definition at line 794 of file parsePreamble.c. References initPreambleList, PreambleRec_s::len, PreambleRec_s::multiLang, RPMBUILD_DEFAULT_LANG, RPMTAG_PATCH, RPMTAG_SOURCE, SKIPSPACE, PreambleRec_s::tag, PreambleRec_s::token, xisspace, and xstrncasecmp. Referenced by parsePreamble. |
|
|
Definition at line 782 of file parsePreamble.c. References PreambleRec_s::len, and PreambleRec_s::token. Referenced by findPreambleTag. |
|
Definition at line 203 of file parsePreamble.c. References HFD_t, HGE_t, rpmTag, rpmTagType, and xstrcasecmp. Referenced by checkForValidArchitectures. |
|
Definition at line 146 of file parsePreamble.c. References tokenBits_s::bits, tokenBits_s::name, RPMSENSE_ANY, rpmsenseFlags, xisalpha, and xisspace. Referenced by handlePreambleTag. |
|
Definition at line 70 of file parsePreamble.c. References PART_NAME, and PART_SUBNAME. Referenced by parsePreamble. |
|
Definition at line 104 of file parsePreamble.c. References xstrcasecmp. Referenced by handlePreambleTag. |
|
Definition at line 355 of file parsePreamble.c. References _, _free, Fclose, fdSize, Ferror, Fopen, Fread, Fstrerror, headerAddEntry, RPM_BIN_TYPE, rpmGetPath, RPMTAG_GIF, RPMTAG_XPM, and xmalloc. Referenced by handlePreambleTag. |
|
Initial value: { { "prep", RPMSENSE_SCRIPT_PREP }, { "build", RPMSENSE_SCRIPT_BUILD }, { "install", RPMSENSE_SCRIPT_INSTALL }, { "clean", RPMSENSE_SCRIPT_CLEAN }, { NULL, 0 } } Definition at line 135 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_URL, RPMTAG_CHANGELOGTIME, RPMTAG_CHANGELOGNAME, RPMTAG_CHANGELOGTEXT, RPMTAG_PREFIXES, RPMTAG_RHNPLATFORM, 0 } Definition at line 17 of file parsePreamble.c. Referenced by parsePreamble. |
|
Initial value: { { "interp", RPMSENSE_INTERP }, { "prereq", RPMSENSE_PREREQ }, { "preun", RPMSENSE_SCRIPT_PREUN }, { "pre", RPMSENSE_SCRIPT_PRE }, { "postun", RPMSENSE_SCRIPT_POSTUN }, { "post", RPMSENSE_SCRIPT_POST }, { "rpmlib", RPMSENSE_RPMLIB }, { "verify", RPMSENSE_SCRIPT_VERIFY }, { NULL, 0 } } Definition at line 120 of file parsePreamble.c. |
|
Definition at line 453 of file parsePreamble.c. Referenced by handlePreambleTag. |
|
Referenced by fillOutMainPackage. |
|
Definition at line 733 of file parsePreamble.c. |
|
Initial value: Definition at line 39 of file parsePreamble.c. Referenced by checkForRequired. |