How to make a selective spec file
Rex Dieter
rdieter at math.unl.edu
Sat Feb 4 02:45:08 UTC 2006
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
More information about the fedora-extras-list
mailing list