added SOURCEURLn and PATCHURLm pacros
authorroot <devnull@localhost>
Mon, 14 Apr 1997 20:20:13 +0000 (20:20 +0000)
committerroot <devnull@localhost>
Mon, 14 Apr 1997 20:20:13 +0000 (20:20 +0000)
CVS patchset: 1536
CVS date: 1997/04/14 20:20:13

build/spec.c

index 90b5b2d..daad0e3 100644 (file)
@@ -140,6 +140,8 @@ static int addSource(Spec spec, char *line)
     sprintf(expansion, "%s/%s", rpmGetVar(RPMVAR_SOURCEDIR), p->source);
     sprintf(name, "%s%d", (p->ispatch) ? "PATCH" : "SOURCE", p->num);
     addMacro(name, expansion);
+    sprintf(name, "%sURL%d", (p->ispatch) ? "PATCH" : "SOURCE", p->num);
+    addMacro(name, p->fullSource);
     
     if (p->ispatch) {
        rpmMessage(RPMMESS_DEBUG, "Patch(%d) = %s\n", p->num, p->fullSource);