added support for %description

CVS patchset: 718
CVS date: 1996/07/02 19:16:46
This commit is contained in:
root 1996-07-02 19:16:46 +00:00
parent c8d10250d2
commit 5a65d9a2be
1 changed files with 7 additions and 0 deletions

View File

@ -819,6 +819,12 @@ Spec parseSpec(FILE *f, char *specfile)
case POSTUN_PART:
t1 = RPMTAG_POSTUN;
break;
case DESCRIPTION_PART:
/* %description is a little special. We need to */
/* strip off trailing blank lines. */
t1 = RPMTAG_DESCRIPTION;
stripTrailingBlanksStringBuf(sb);
break;
case CHANGELOG_PART:
/* %changelog is a little special. It goes in the */
/* "main" package no matter where it appears, and it */
@ -1071,6 +1077,7 @@ Spec parseSpec(FILE *f, char *specfile)
case CLEAN_PART:
appendLineStringBuf(spec->clean, line);
break;
case DESCRIPTION_PART:
case CHANGELOG_PART:
case PREIN_PART:
case POSTIN_PART: