|
|
@@ -54,16 +54,53 @@ Class: BASE
|
|
|
Group: Perl
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20080820
|
|
|
+Release: 20080822
|
|
|
|
|
|
# package options
|
|
|
-%option with_dbd_sqlite yes
|
|
|
-%option with_dbd_mysql no
|
|
|
-%option with_dbd_pgsql no
|
|
|
-%option with_dbd_oracle no
|
|
|
-%option with_dbd_sybase no
|
|
|
-%option with_dbd_odbc no
|
|
|
-%option with_dbd_cego no
|
|
|
+%option with_sqlite yes
|
|
|
+%option with_mysql no
|
|
|
+%option with_pgsql no
|
|
|
+%option with_oracle no
|
|
|
+%option with_sybase no
|
|
|
+%option with_odbc no
|
|
|
+%option with_cego no
|
|
|
+
|
|
|
+# package backward compatibility
|
|
|
+%option with_dbd_sqlite no
|
|
|
+%option with_dbd_mysql no
|
|
|
+%option with_dbd_pgsql no
|
|
|
+%option with_dbd_oracle no
|
|
|
+%option with_dbd_sybase no
|
|
|
+%option with_dbd_odbc no
|
|
|
+%option with_dbd_cego no
|
|
|
+%if "%{with_dbd_sqlite}" == "yes"
|
|
|
+%undefine with_sqlite
|
|
|
+%define with_sqlite yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_mysql}" == "yes"
|
|
|
+%undefine with_mysql
|
|
|
+%define with_mysql yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_pgsql}" == "yes"
|
|
|
+%undefine with_pgsql
|
|
|
+%define with_pgsql yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_oracle}" == "yes"
|
|
|
+%undefine with_oracle
|
|
|
+%define with_oracle yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_sybase}" == "yes"
|
|
|
+%undefine with_sybase
|
|
|
+%define with_sybase yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_odbc}" == "yes"
|
|
|
+%undefine with_odbc
|
|
|
+%define with_odbc yes
|
|
|
+%endif
|
|
|
+%if "%{with_dbd_cego}" == "yes"
|
|
|
+%undefine with_cego
|
|
|
+%define with_cego yes
|
|
|
+%endif
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.cpan.org/modules/by-module/DBI/DBI-%{V_dbi}.tar.gz
|
|
|
@@ -94,31 +131,31 @@ BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %
|
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
|
BuildPreReq: perl-module, perl-util, perl-net, perl-locale, perl-text, perl-parse
|
|
|
PreReq: perl-module, perl-util, perl-net, perl-locale, perl-text, perl-parse
|
|
|
-%if "%{with_dbd_sqlite}" == "yes"
|
|
|
+%if "%{with_sqlite}" == "yes"
|
|
|
BuildPreReq: sqlite, perl-locale >= %{V_perl}-20060921
|
|
|
PreReq: sqlite, perl-locale >= %{V_perl}-20060921
|
|
|
%endif
|
|
|
-%if "%{with_dbd_mysql}" == "yes"
|
|
|
+%if "%{with_mysql}" == "yes"
|
|
|
BuildPreReq: mysql
|
|
|
PreReq: mysql
|
|
|
%endif
|
|
|
-%if "%{with_dbd_pgsql}" == "yes"
|
|
|
+%if "%{with_pgsql}" == "yes"
|
|
|
BuildPreReq: postgresql
|
|
|
PreReq: postgresql
|
|
|
%endif
|
|
|
-%if "%{with_dbd_oracle}" == "yes"
|
|
|
+%if "%{with_oracle}" == "yes"
|
|
|
BuildPreReq: oracle
|
|
|
PreReq: oracle
|
|
|
%endif
|
|
|
-%if "%{with_dbd_sybase}" == "yes"
|
|
|
+%if "%{with_sybase}" == "yes"
|
|
|
BuildPreReq: freetds, libiconv
|
|
|
PreReq: freetds, libiconv
|
|
|
%endif
|
|
|
-%if "%{with_dbd_odbc}" == "yes"
|
|
|
+%if "%{with_odbc}" == "yes"
|
|
|
BuildPreReq: ODBC
|
|
|
PreReq: ODBC
|
|
|
%endif
|
|
|
-%if "%{with_dbd_cego}" == "yes"
|
|
|
+%if "%{with_cego}" == "yes"
|
|
|
BuildPreReq: cego
|
|
|
PreReq: cego
|
|
|
%endif
|
|
|
@@ -138,14 +175,14 @@ AutoReqProv: no
|
|
|
- DBD::AnyData (%{V_dbd_anydata})
|
|
|
- DBD::CSV (%{V_dbd_csv})
|
|
|
- DBD::Sprite (%{V_dbd_sprite})
|
|
|
- - DBD::SQLite (%{V_dbd_sqlite}) [%{with_dbd_sqlite}]
|
|
|
- - DBD::PgLite (%{V_dbd_pglite}) [%{with_dbd_sqlite}]
|
|
|
- - DBD::mysql (%{V_dbd_mysql}) [%{with_dbd_mysql}]
|
|
|
- - DBD::Pg (%{V_dbd_pgsql}) [%{with_dbd_pgsql}]
|
|
|
- - DBD::Oracle (%{V_dbd_oracle}) [%{with_dbd_oracle}]
|
|
|
- - DBD::Sybase (%{V_dbd_sybase}) [%{with_dbd_sybase}]
|
|
|
- - DBD::ODBC (%{V_dbd_odbc}) [%{with_dbd_odbc}]
|
|
|
- - DBD::Cego (%{V_dbd_cego}) [%{with_dbd_cego}]
|
|
|
+ - DBD::SQLite (%{V_dbd_sqlite}) [%{with_sqlite}]
|
|
|
+ - DBD::PgLite (%{V_dbd_pglite}) [%{with_sqlite}]
|
|
|
+ - DBD::mysql (%{V_dbd_mysql}) [%{with_mysql}]
|
|
|
+ - DBD::Pg (%{V_dbd_pgsql}) [%{with_pgsql}]
|
|
|
+ - DBD::Oracle (%{V_dbd_oracle}) [%{with_oracle}]
|
|
|
+ - DBD::Sybase (%{V_dbd_sybase}) [%{with_sybase}]
|
|
|
+ - DBD::ODBC (%{V_dbd_odbc}) [%{with_odbc}]
|
|
|
+ - DBD::Cego (%{V_dbd_cego}) [%{with_cego}]
|
|
|
|
|
|
%track
|
|
|
prog perl-dbi:DBI = {
|
|
|
@@ -288,7 +325,7 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
|
|
|
|
|
|
-%if "%{with_dbd_sqlite}" == "yes"
|
|
|
+%if "%{with_sqlite}" == "yes"
|
|
|
# build DBD::SQLite
|
|
|
( cd DBD-SQLite-%{V_dbd_sqlite}
|
|
|
# remove local SQLite sources (we use external one)
|
|
|
@@ -307,7 +344,7 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/perl-openpkg -d DBD-PgLite-%{V_dbd_pglite} configure build install
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_mysql}" == "yes"
|
|
|
+%if "%{with_mysql}" == "yes"
|
|
|
# build DBD::mysql
|
|
|
( cd DBD-mysql-%{V_dbd_mysql}
|
|
|
# (determines MySQL header/lib paths via mysql_config in $PATH)
|
|
|
@@ -315,7 +352,7 @@ AutoReqProv: no
|
|
|
) || exit $?
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_pgsql}" == "yes"
|
|
|
+%if "%{with_pgsql}" == "yes"
|
|
|
# build DBD::Pg
|
|
|
( cd DBD-Pg-%{V_dbd_pgsql}
|
|
|
%{l_shtool} subst \
|
|
|
@@ -329,7 +366,7 @@ AutoReqProv: no
|
|
|
) || exit $?
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_oracle}" == "yes"
|
|
|
+%if "%{with_oracle}" == "yes"
|
|
|
# build DBD::oracle
|
|
|
( cd DBD-Oracle-%{V_dbd_oracle}
|
|
|
ORACLE_HOME="`%{l_rc} --query oracle_home`"
|
|
|
@@ -352,7 +389,7 @@ AutoReqProv: no
|
|
|
) || exit $?
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_sybase}" == "yes"
|
|
|
+%if "%{with_sybase}" == "yes"
|
|
|
# build DBD::Sybase
|
|
|
( cd DBD-Sybase-%{V_dbd_sybase}
|
|
|
SYBASE="%{l_prefix}"
|
|
|
@@ -365,7 +402,7 @@ AutoReqProv: no
|
|
|
) || exit $?
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_odbc}" == "yes"
|
|
|
+%if "%{with_odbc}" == "yes"
|
|
|
# build DBD::odbc
|
|
|
( cd DBD-ODBC-%{V_dbd_odbc}
|
|
|
ODBCHOME="%{l_prefix}"
|
|
|
@@ -375,7 +412,7 @@ AutoReqProv: no
|
|
|
) || exit $?
|
|
|
%endif
|
|
|
|
|
|
-%if "%{with_dbd_cego}" == "yes"
|
|
|
+%if "%{with_cego}" == "yes"
|
|
|
# build DBD::Cego
|
|
|
( cd DBD-cego
|
|
|
rm -f ._* >/dev/null 2>&1 || true
|