It seems it's not possible to use the DistURL tag in spec files, if I put it there, rpm responds with: error: Internal error: Bogus tag 1123 However, one can set %disturl in ~/.rpmmacros and get the expected result; the value will be used and is visible in "rpm -q --queryformat %{DISTURL} -p somepackage.rpm". I guess this is due to a missing case statement in build/parsePreamble.c, an untested patch against the current rpm CVS below. Index: build/parsePreamble.c =================================================================== RCS file: /cvs/devel/rpm/build/parsePreamble.c,v retrieving revision 2.113 diff -a -u -r2.113 parsePreamble.c --- build/parsePreamble.c 6 Nov 2001 22:46:26 -0000 2.113 +++ build/parsePreamble.c 5 May 2002 10:57:22 -0000 @@ -522,6 +522,7 @@ (void) stashSt(spec, pkg->header, tag, lang); /*@fallthrough@*/ case RPMTAG_DISTRIBUTION: + case RPMTAG_DISTURL: case RPMTAG_VENDOR: case RPMTAG_LICENSE: case RPMTAG_PACKAGER:
Yes, the DistURL tag is designed for holding an XML Name space identifier that (if consensus is ever achieved) for vendors, with semantics and usage yet to be defined. I'm goinna mark deferred, but the tag won't be settable from spec files until there's agreement on usage.