Re: How to make a selective spec file

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

 



Eric Tanguy wrote:
Le vendredi 03 février 2006 à 16:51 -0600, Rex Dieter a écrit :

Eric Tanguy wrote:

Something like this ought to do the trick:
%if "%{?fedora}" > "4"
CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection"
%endif
%configure

It seems it's not taken into account for devel. How to know what
%{?fedora} returns for devel ?

AFAIK, on devel, %fedora expands to 5 in buildsys-macros

Maybe in buildsys but i'm trying to build it on a fc4 box using mock : mock -r fedora-5-i386-core foobar.spec

Of course it's not. That macro only gets defined if using the FE buildsystem (and/or) building from FE's Makefiles, ie, 'make mockbuild'. I had assumed this was what you were referring to in your original post.

-- Rex

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

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux