On Tue, Jun 24, 2003 at 09:46:05PM +0200, Michael van Elst wrote: >On Tue, Jun 24, 2003, Bill Campbell wrote: > >> >a) always depend on sasl, wether it is required or not. >> >> This breaks the build if sasl isn't installed on the system >> whether it's used by openldap or not. > >No. When I depend on sasl, then you have to install sasl (or openpkg-tool >will do that for you). > > >> >b) add an option to the apache package to require sasl (and lock against >> > the with_sasl option of the openldap package). >> >> This seems to be the easiest choice. If with_sasl=yes then add >> the LIBS modification. > >But it looks pretty ugly. Especially when you also need: > >%if "%{with_sasl}" == "yes" >PreReq: openldap::with_sasl = yes >%else >PreReq: openldap::with_sasl = no >%endif
Would this work or isn't the rpm preprocessor smart enough? %if "%{with_sasl}" == "yes" && "%{with_mod_php_openldap}" == %"yes" ... %endif Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``The meek shall inherit the Earth, the rest of us will go to the stars...'' -Dr. Isaac Asimov ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]