21 Mar
2007
21 Mar
'07
13:34
2007/3/21, Jules Colding
%if 0%{?suse_version} BuildRequires: ... %endif
What does 0%{?suse_version} do? Does it only evaluates to true if suse_version is defined or something like that??
If the suseversion macro is defined it returns 1 otherwise 0. IMHO it should be %if %suse_version > 1000 BuildRequires: ... %else # neededforbuild ... %endif But AFAIK in Build Service is Buildrequires macro always used also for older distributions e.g. 9.3 So forgot the # neededforbuild and use always BuildRequires: . Regards Ladislav. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org