OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   24-Jan-2009 22:32:39
  Branch: HEAD                             Handle: 2009012421323800

  Modified files:
    openpkg-src/apr         apr.spec

  Log:
    add optional support for PostgreSQL/MySQL/SQLite

  Summary:
    Revision    Changes     Path
    1.58        +25 -1      openpkg-src/apr/apr.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apr/apr.spec
  ============================================================================
  $ cvs diff -u -r1.57 -r1.58 apr.spec
  --- openpkg-src/apr/apr.spec  1 Nov 2008 09:28:26 -0000       1.57
  +++ openpkg-src/apr/apr.spec  24 Jan 2009 21:32:38 -0000      1.58
  @@ -36,7 +36,7 @@
   Group:        Libraries
   License:      Apache
   Version:      %{V_apr}
  -Release:      20081101
  +Release:      20090124
   
   #   package options
   %option       with_threads  no
  @@ -44,6 +44,9 @@
   %option       with_gdbm     no
   %option       with_iconv    no
   %option       with_ldap     no
  +%option       with_pgsql    no
  +%option       with_mysql    no
  +%option       with_sqlite   no
   
   #   list of sources
   Source0:      http://www.apache.org/dist/apr/apr-%{V_apr}.tar.gz
  @@ -73,6 +76,18 @@
   BuildPreReq:  openldap, openssl >= 0.9.8
   PreReq:       openldap, openssl >= 0.9.8
   %endif
  +%if "%{with_pgsql}" == "yes"
  +BuildPreReq:  postgresql
  +PreReq:       postgresql
  +%endif
  +%if "%{with_mysql}" == "yes"
  +BuildPreReq:  mysql
  +PreReq:       mysql
  +%endif
  +%if "%{with_sqlite}" == "yes"
  +BuildPreReq:  sqlite
  +PreReq:       sqlite
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -159,6 +174,15 @@
             --with-ldap-include=%{l_prefix}/include/ \
             --with-ldap-lib=%{l_prefix}/lib \
   %endif
  +%if "%{with_pgsql}" == "yes"
  +          --with-pgsql=%{l_prefix} \
  +%endif
  +%if "%{with_mysql}" == "yes"
  +          --with-mysql=%{l_prefix} \
  +%endif
  +%if "%{with_sqlite}" == "yes"
  +          --with-sqlite3=%{l_prefix} \
  +%endif
             --disable-shared
         %{l_make} %{l_mflags -O}
       ) || exit $?
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to