Explorar o código

provide optional ODBC-based RDBMS support

Ralf S. Engelschall %!s(int64=20) %!d(string=hai) anos
pai
achega
5301856e88
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      openldap/openldap.spec

+ 11 - 1
openldap/openldap.spec

@@ -33,13 +33,14 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      2.3.14
-Release:      20051225
+Release:      20051226
 
 #   package options
 %option       with_fsl   yes
 %option       with_crypt yes
 %option       with_sasl  no
 %option       with_perl  no
+%option       with_odbc  no
 
 #   list of sources
 Source0:      ftp://ftp.openldap.org/pub/openldap/openldap-release/openldap-%{version}.tgz
@@ -63,6 +64,10 @@ PreReq:       fsl >= 1.2.0
 BuildPreReq:  sasl
 PreReq:       sasl
 %endif
+%if "%{with_odbc}" == "yes"
+BuildPreReq:  unixodbc
+PreReq:       unixodbc
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -147,6 +152,11 @@ AutoReqProv:  no
     ARGS="$ARGS --enable-perl"
 %endif
 
+    #   configuration: optional ODBC-based RDBMS support
+%if "%{with_odbc}" == "yes"
+    ARGS="$ARGS --enable-sql"
+%endif
+
     #   configuration: special platform support
     case "%{l_platform -t}" in
         *-sunos* ) LIBS="$LIBS -lrt" ;;