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

Andreas Thienemann andreas at bawue.net
Fri Jul 15 22:52:08 UTC 2005

On Fri, 15 Jul 2005, Orion Poplawski wrote:

> Could you give an example?  I can't find docs on how to use %if in a 
> spec file to compare values.  Trying to do something like:

%if "%fedora" >= "4"
BuildRequires: gcc-gfortran
BuildRequires: gcc-g77

This should work.


More information about the Fedora-packaging mailing list