Hi,
How do I achieve a conditional build? The rpm spec file is capable of doing it, but when building for example on RHEL5 I don’t want to build with fltk support.
Johnny
Hi,
How do I achieve a conditional build? The rpm spec file is capable of doing it, but when building for example on RHEL5 I don’t want to build with fltk support.
Johnny
Hi,
you can use an %if statement in your spec file.
%if 0%{suse_version} < 110
BuildRequires: foo-devel
$endif
the 0 in fron of %{suse_version} is to keep the line valid even when suse_version is not defined. Otherwise it will epxand to
if < 110 which would be wrong.
Dominique