Re: Using %{dist} for conditional compilation

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

 



Andreas Thienemann wrote:
On Fri, 15 Jul 2005, Orion Poplawski wrote:


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

This should work.

bye,
 andreas


On my FC4 box I get:

$ rpmbuild -ba *spec
error: Failed build dependencies:
        gcc-g77 is needed by hdf-4.2r1-2.i386

So looks like %fedora is not defined on user machins, only in the build system? This won't work.


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