[Fedora-packaging] disttag

Tom 'spot' Callaway tcallawa at redhat.com
Fri Feb 25 13:53:39 UTC 2005


On Fri, 2005-02-25 at 11:55 +0100, Matthias Saou wrote:

>An easy to way to fix this would be to have "%{?disttag}" appended to the
>"Release:" line of the spec by the build system, and have the "." returned
>by the macro (or use a longer "%{?disttag:.%{disttag}}"). That way, when
>disttag is defined (by a newer redhat-rpm-config for instance) it'll be
>expanded for the build, but if it isn't, the build will still work with no
>changes and produce a package with a simple integer release tag.

This is what I meant, but you said it better than I did.

I prefer the %{?disttag:.%{disttag}} syntax for use, if for no other
reason than it makes the macro a little cleaner.

~spot
---
Tom "spot" Callaway: Red Hat Sales Engineer || GPG Fingerprint: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!




More information about the packaging mailing list