How to make a selective spec file

Rex Dieter rdieter at math.unl.edu
Fri Feb 3 22:51:52 UTC 2006


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

-- Rex




More information about the fedora-extras-list mailing list