Re: Using %{dist} for conditional compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux