added support for %description
authorroot <devnull@localhost>
Tue, 2 Jul 1996 19:16:46 +0000 (19:16 +0000)
committerroot <devnull@localhost>
Tue, 2 Jul 1996 19:16:46 +0000 (19:16 +0000)
CVS patchset: 718
CVS date: 1996/07/02 19:16:46

build/spec.c

index ec89dbb..084bf87 100644 (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: