On Wed, Oct 25, 2006 at 05:42:05PM +0200, Erez Zilber wrote:
>
> %if_vendor suse
> %define _build_name_fmt open-iscsi-2.0.716.%_arch.rpm
> %else
> %define _build_name_fmt unknown
> %endif
>
> I guess that something is still wrong because it produces an error:
>
> thyme:/home/erezz/work/ofed/OFED-1.1-new-iscsi/SRPMS # rpmbuild -bs
> open-iscsi-usr.spec --define "_sourcedir $PWD"
> error: parse error in expression
> error:
> /home/erezz/work/ofed/OFED-1.1-new-iscsi/SRPMS/open-iscsi-usr.spec:25:
> parseExpressionBoolean returns -1
> Wrote: /usr/src/packages/SRPMS/open-iscsi-usr-1-2.src.rpm
Try:
%if "%{_vendor}" == "suse"
...
%else
...
--
lfr
0/0
Attachment:
pgptW4M32Ymdt.pgp
Description: PGP signature