|
|
@@ -27,6 +27,7 @@
|
|
|
%define V_dbi 1.48
|
|
|
%define V_sql_statement 1.14
|
|
|
%define V_sql_abstract 1.18
|
|
|
+%define V_sql_routine 0.61
|
|
|
%define V_dbd_anydata 0.08
|
|
|
%define V_dbd_sprite 0.50
|
|
|
%define V_dbd_sqlite 1.08
|
|
|
@@ -47,7 +48,7 @@ Class: BASE
|
|
|
Group: Language
|
|
|
License: GPL/Artistic
|
|
|
Version: %{V_perl}
|
|
|
-Release: 20050429
|
|
|
+Release: 20050430
|
|
|
|
|
|
# package options
|
|
|
%option with_dbd_sqlite no
|
|
|
@@ -61,14 +62,15 @@ Release: 20050429
|
|
|
Source0: http://www.cpan.org/modules/by-module/DBI/DBI-%{V_dbi}.tar.gz
|
|
|
Source1: http://www.cpan.org/modules/by-module/SQL/SQL-Statement-%{V_sql_statement}.tar.gz
|
|
|
Source2: http://www.cpan.org/modules/by-module/SQL/SQL-Abstract-%{V_sql_abstract}.tar.gz
|
|
|
-Source3: http://www.cpan.org/modules/by-module/DBD/DBD-AnyData-%{V_dbd_anydata}.tar.gz
|
|
|
-Source4: http://www.cpan.org/modules/by-module/DBD/DBD-Sprite-%{V_dbd_sprite}.tar.gz
|
|
|
-Source5: http://www.cpan.org/modules/by-module/DBD/DBD-SQLite-%{V_dbd_sqlite}.tar.gz
|
|
|
-Source6: http://www.cpan.org/modules/by-module/DBD/DBD-mysql-%{V_dbd_mysql}.tar.gz
|
|
|
-Source7: http://www.cpan.org/modules/by-module/DBD/DBD-Pg-%{V_dbd_pgsql}.tar.gz
|
|
|
-Source8: http://www.cpan.org/modules/by-module/DBD/DBD-Oracle-%{V_dbd_oracle}.tar.gz
|
|
|
-Source9: http://www.cpan.org/modules/by-module/DBD/DBD-ODBC-%{V_dbd_odbc}.tar.gz
|
|
|
-Source10: http://www.peppler.org/downloads/DBD-Sybase-%{V_dbd_sybase}.tar.gz
|
|
|
+Source3: http://www.cpan.org/modules/by-module/SQL/SQL-Routine-%{V_sql_routine}.tar.gz
|
|
|
+Source4: http://www.cpan.org/modules/by-module/DBD/DBD-AnyData-%{V_dbd_anydata}.tar.gz
|
|
|
+Source5: http://www.cpan.org/modules/by-module/DBD/DBD-Sprite-%{V_dbd_sprite}.tar.gz
|
|
|
+Source6: http://www.cpan.org/modules/by-module/DBD/DBD-SQLite-%{V_dbd_sqlite}.tar.gz
|
|
|
+Source7: http://www.cpan.org/modules/by-module/DBD/DBD-mysql-%{V_dbd_mysql}.tar.gz
|
|
|
+Source8: http://www.cpan.org/modules/by-module/DBD/DBD-Pg-%{V_dbd_pgsql}.tar.gz
|
|
|
+Source9: http://www.cpan.org/modules/by-module/DBD/DBD-Oracle-%{V_dbd_oracle}.tar.gz
|
|
|
+Source10: http://www.cpan.org/modules/by-module/DBD/DBD-ODBC-%{V_dbd_odbc}.tar.gz
|
|
|
+Source11: http://www.peppler.org/downloads/DBD-Sybase-%{V_dbd_sybase}.tar.gz
|
|
|
Patch0: perl-dbi.patch
|
|
|
|
|
|
# build information
|
|
|
@@ -76,8 +78,8 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
|
|
|
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
|
|
|
-BuildPreReq: perl-util, perl-net
|
|
|
-PreReq: perl-util, perl-net
|
|
|
+BuildPreReq: perl-util, perl-net, perl-locale
|
|
|
+PreReq: perl-util, perl-net, perl-locale
|
|
|
%if "%{with_dbd_sqlite}" == "yes"
|
|
|
BuildPreReq: sqlite, sqlite::with_v3 = yes
|
|
|
PreReq: sqlite, sqlite::with_v3 = yes
|
|
|
@@ -110,6 +112,7 @@ AutoReqProv: no
|
|
|
- DBI (%{V_dbi})
|
|
|
- SQL::Statement (%{V_sql_statement})
|
|
|
- SQL::Abstract (%{V_sql_abstract})
|
|
|
+ - SQL::Routine (%{V_sql_routine})
|
|
|
- DBD::AnyData (%{V_dbd_anydata})
|
|
|
- DBD::Sprite (%{V_dbd_sprite})
|
|
|
- DBD::SQLite (%{V_dbd_sqlite}) [%{with_dbd_sqlite}]
|
|
|
@@ -175,6 +178,11 @@ AutoReqProv: no
|
|
|
url = http://www.cpan.org/modules/by-module/SQL/
|
|
|
regex = SQL-Abstract-(__VER__)\.tar\.gz
|
|
|
}
|
|
|
+ prog perl-dbi:SQL-Routine = {
|
|
|
+ version = %{V_sql_routine}
|
|
|
+ url = http://www.cpan.org/modules/by-module/SQL/
|
|
|
+ regex = SQL-Routine-(__VER__)\.tar\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c
|
|
|
@@ -188,6 +196,7 @@ AutoReqProv: no
|
|
|
%setup -q -T -D -a 8
|
|
|
%setup -q -T -D -a 9
|
|
|
%setup -q -T -D -a 10
|
|
|
+ %setup -q -T -D -a 11
|
|
|
%patch -p0 -d DBD-SQLite-%{V_dbd_sqlite}
|
|
|
|
|
|
%build
|
|
|
@@ -202,6 +211,7 @@ AutoReqProv: no
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
|
|
|
%{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
|
|
|
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
|
|
|
|
|
|
%if "%{with_dbd_sqlite}" == "yes"
|
|
|
# build DBD::SQLite
|