Re: [rpm-list] Setting binary rpm name according to a condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: pgp73Bw01Kmur.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux