Re: Using %{dist} for conditional compilation

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

 



Ignacio Vazquez-Abrams wrote:

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.


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


--
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com

--
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