Mailinglist Archive: opensuse-buildservice (189 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] Expansion-Error on suse-macros
- From: Michal Marek <mmarek@xxxxxxx>
- Date: Tue, 17 Feb 2009 18:06:40 +0100
- Message-id: <499AEEA0.3000206@xxxxxxx>
Dominique Leuenberger napsal(a):
%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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Christof Hanke napsal(a):On 2/17/2009 at 5:52 PM, Michal Marek <mmarek@xxxxxxx> wrote:
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |