TomWalsh wrote:
James Yonan wrote:


What if you use this instead for the Mandrake section:

%{!?without_lzo:BuildRequires: liblzo-devel >= 1.07}
%{!?without_lzo:Requires:      liblzo       >= 1.07}

James



Still fails.


Err, I got something mixed up here. It did work that time using the "liblzo" instead of "liblzo1". I had thought that I tried that, but when I did it again it worked.

I've build RPM spec files before, but nothing that actually compiled the target code and produced the RPM. So, I'm a little over my head here. Wouldn't something like this work? It would only require a single mention of the revision level:

================= begin =================
%if "%{_vendor}" == "MandrakeSoft"
#define _LIBLZO liblzo
%else
#define _LIBLZO lzo
%endif

%{!?without_lzo:BuildRequires: %{_LIBLZO}-devel >= 1.07}
%{!?without_lzo:Requires:      %{_LIBLZO}       >= 1.07}
=================== snip ================

I doesn't though, I think it is a nesting problem with the braces for this statement?

TomW


--
Tom Walsh - WN3L - Embedded Systems Consultant
email at http://openhardware.net?file=emailcomment.php
any ReplyTo direct email will disappear (blackhole).
----------------------------------------------------


Reply via email to