On Fri, Jul 12, 2002 at 06:33:19PM -0700, Ben Reser wrote:
> Yeah well I realized I could do that. But what I've been doing lately
> is trying to use brs as the release tag on the end of stuff that I'm not
> sending over to you guys and mdk on things that I do. Sometimes I put
> out packages that are originally cooker for other Mandrake distribution
> releases (e.g. 8.2/ppc). When I do this I try to use brs instead of mdk
> so that when the next release comes along the Mandrake package of the
> same version will take preceidence over mine. It's probably more
> accurate to set the Vendor tag to my own name rather than Mandrakesoft.
> But I'd rather only have to edit the release tag to do that. I'm just
> being lazy and trying to minimize the changes I made to cooker packages
> that I'm rebuilding for other releases. :)
To answer my own question using this in my .rpmmacros does the trick:
%vendor %(eval echo %release | awk --source '{v = "MandrakeSoft"}
/brs$/ { v = "Ben Reser" } {print v}')
You could add plf by doing something like so:
%vendor %(eval echo %release | awk --source '{v =
"MandrakeSoft"} /plf$/ { v = "Penguin Liberation Front" } /brs$/ { v =
"Ben Reser" } { print v}')
Similar things could be done for anything else in .rpmmacros. Which
means those of you shuffling .rpmmacros around could put everything in
one macro file.
Incidentally the above awk script defaults to returning MandrakeSoft if
for some reason it doesn't match anything in the release tag.
Hope someone else finds this useful. It would be really helpful if the
eval stuff had been documented someplace. But it seems to work. :)
--
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org
We tend to see all wars through the lens of the current conflict, and we
mine history for lessons convenient to the present purpose.
- Brian Hayes