|
|
@@ -27,6 +27,9 @@
|
|
|
%define V_berkeleydb 0.18
|
|
|
%define V_db_file 1.803
|
|
|
%define V_db_file_lock 0.04
|
|
|
+%define V_dbi 1.21
|
|
|
+%define V_dbd_mysql 2.1017
|
|
|
+%define V_dbd_oracle 1.12
|
|
|
|
|
|
# package information
|
|
|
Name: perl-db
|
|
|
@@ -37,13 +40,16 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EXP]
|
|
|
Group: Language
|
|
|
License: GPL/Artistic
|
|
|
-Version: 20020517
|
|
|
-Release: 20020517
|
|
|
+Version: 20020521
|
|
|
+Release: 20020521
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.cpan.org/modules/by-module/BerkeleyDB/BerkeleyDB-%{V_berkeleydb}.tar.gz
|
|
|
Source1: http://www.cpan.org/modules/by-module/DB_File/DB_File-%{V_db_file}.tar.gz
|
|
|
Source2: http://www.cpan.org/modules/by-module/DB_File/DB_File-Lock-%{V_db_file_lock}.tar.gz
|
|
|
+Source3: http://www.cpan.org/modules/by-module/DBI/DBI-%{V_dbi}.tar.gz
|
|
|
+Source4: http://www.cpan.org/modules/by-module/DBD/DBD-mysql-%{V_dbd_mysql}.tar.gz
|
|
|
+Source5: http://www.cpan.org/modules/by-module/DBD/DBD-Oracle-%{V_dbd_oracle}.tar.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -58,11 +64,20 @@ AutoReqProv: no
|
|
|
- BerkeleyDB (%{V_berkeleydb})
|
|
|
- DB_File (%{V_db_file})
|
|
|
- DB_File::Lock (%{V_db_file_lock})
|
|
|
+ - DBI::Shell
|
|
|
+ - DBD::ADO
|
|
|
+ - DBD::Proxy
|
|
|
+ - DBI::ProxyServer
|
|
|
+ - DBD::mysql
|
|
|
+ - DBD::oracle
|
|
|
|
|
|
%prep
|
|
|
%setup0 -q -c -n %{name}-%{version}
|
|
|
%setup1 -q -T -D -a 1
|
|
|
%setup2 -q -T -D -a 2
|
|
|
+ %setup3 -q -T -D -a 3
|
|
|
+ %setup4 -q -T -D -a 4
|
|
|
+ %setup5 -q -T -D -a 5
|
|
|
|
|
|
%build
|
|
|
|
|
|
@@ -128,6 +143,27 @@ AutoReqProv: no
|
|
|
$make $makeargs install
|
|
|
)
|
|
|
|
|
|
+ # build DBI modules
|
|
|
+ ( cd DBI-%{V_dbi}
|
|
|
+ $perl Makefile.PL $perlargs
|
|
|
+ $make $makeargs all
|
|
|
+ $make $makeargs install
|
|
|
+ )
|
|
|
+
|
|
|
+ # build DBD::mysql
|
|
|
+ ( cd DBD-%{V_dbd_mysql}
|
|
|
+ $perl Makefile.PL $perlargs
|
|
|
+ $make $makeargs all
|
|
|
+ $make $makeargs install
|
|
|
+ )
|
|
|
+
|
|
|
+ # build DBD::oracle
|
|
|
+ ( cd DBD-%{V_dbd_oracle}
|
|
|
+ $perl Makefile.PL $perlargs
|
|
|
+ $make $makeargs all
|
|
|
+ $make $makeargs install
|
|
|
+ )
|
|
|
+
|
|
|
# strip down installation tree
|
|
|
find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
|
|
|
find $RPM_BUILD_ROOT%{l_prefix} -name .packlist -print | xargs rm -f
|