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

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

 



Luciano Miguel Ferreira Rocha wrote:
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
...

Thanks. Is it possible to write something like:

%if "%{_vendor}" == "suse" & "%{sles_version}" == "10"
...
%else
...
%endif

or must I write something like:

%if "%{_vendor}" == "suse"
%if "%{sles_version}" == "10"
...
%endif
%else
...
%endif

Thanks,
Erez


_______________________________________________
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