17 Feb
2009
17 Feb
'09
17:06
Dominique Leuenberger napsal(a):
On 2/17/2009 at 5:52 PM, Michal Marek
wrote: Christof Hanke napsal(a): I fear it's hard to do it correctly. E.g. does this snippet require fdupes.rpm or not? %if %{defined fdupes} %fdupes ... %endif
I guess that OBS spec parser is already somewhat 'smart' with such things, otherwise a snippet like
%if 0%{suse_version} <= 1110 BuildRequires: foo-devel %endif
%suse_version is defined in the project config, it doesn't change if you add or remove packages. Or if you want another example: if test -x /usr/bin/fdupes %fdupes ... fi Michal -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org