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

Re: How to make a selective spec file



Eric Tanguy wrote:
I would like to make only one spec taking into account the system build
is devel/fc5 or fc3/fc4.
How to make this ?
In devel/fc5 i need to have :
%configure CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection"
and in fc3/fc4 i need to have : %configure

Something like this ought to do the trick:

%if "%{?fedora}" > "4"
CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection"
%endif
%configure

-- Rex


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