[Fedora-packaging] Using %{dist} for conditional compilation

Ignacio Vazquez-Abrams ivazquez at ivazquez.net
Fri Jul 15 21:01:16 UTC 2005

On Fri, 2005-07-15 at 14:48 -0600, Orion Poplawski wrote:
> Is it kosher to use the %{dist} tag for conditional compilation?  The 
> shift from g77 to gfortran in FC3->FC4 has led to the need to compile 
> packages differently for the two distributions.

No. Use %{fedora}. It will have an integer value the same as the version
of Fedora the package is built for. Even better, since there are
separate branches per version it's easy enough to just have the
differences in the spec files directly.

Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20050715/1da8c444/attachment.sig>

More information about the Fedora-packaging mailing list