[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
%else
BuildRequires: gcc-g77
%endif

This should work.

bye,
 andreas




More information about the Fedora-packaging mailing list