Matthias Andree wrote:
RPM appears to, at least on Red Hat and Novell/SUSE derived machines, support the libraries' ELF SONAME, too, which is what my former suggestion has been about, and AFAICS, the soname is the same on all machines, namely liblzo.so.1 (use readelf -d to figure).
Wouldn't we still be into a conditional situation of resolving which liblzo / lzo to call out for based on vendor name? I'm not sure how the readelf works...
If we keep the conditional patch for MandrakeSoft vs. all others, you would then cover the Mandrake distros from 8.1 through 10.1. Not a clean solution, but looping back on past mistakes (Mandrakes) never are...
We are spending too much time on this subject? Here is the patch that satisfies the MandrakeSoft mess up:
=============== patch ================ --- openvpn.spec.orig 2005-02-26 16:26:09.922279800 -0500 +++ openvpn.spec 2005-02-26 16:20:11.794723464 -0500 @@ -33,8 +33,13 @@ BuildRequires: openssl-devel >= 0.9.6 Requires: openssl >= 0.9.6 +%if "%{_vendor}" == "MandrakeSoft" +%{!?without_lzo:BuildRequires: liblzo1-devel >= 1.07} +%{!?without_lzo:Requires: liblzo1 >= 1.07} +%else %{!?without_lzo:BuildRequires: lzo-devel >= 1.07} %{!?without_lzo:Requires: lzo >= 1.07} +%endif %{!?without_pam:BuildRequires: pam-devel} %{!?without_pam:Requires: pam} ============== snip ================== ============== Changlog ============== 2005.03.11 -- Version 2.0-rc17 * MandrakeSoft liblzo1 RPM only Provides for a 'liblzo1'. A conditional test of the vendor has been added to Require the appropriately named 'lzo' (liblzo1 / lzo). (Tom Walsh - http://openhardware.net) ================ snip ================= -- Tom Walsh - WN3L - Embedded Systems Consultant email at http://openhardware.net?file=emailcomment.php any ReplyTo direct email will disappear (blackhole). ----------------------------------------------------