From ca67078e7aec390f268ed8cb1f3ce6de7b392a58 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 12 Mar 2012 19:16:19 +0000 Subject: [PATCH] add speck and notes for DB2 lite client Former-commit-id: ee3965f97b4d5b2a44a16fde8623e99c64c414c1 --- perl-DBD-DB2/redhat6/Build-notes.lite | 19 ++++++++++++------- perl-DBD-DB2/redhat6/DBD-DB2Lite.spec | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/perl-DBD-DB2/redhat6/Build-notes.lite b/perl-DBD-DB2/redhat6/Build-notes.lite index 3b7a61f..d65cc9a 100644 --- a/perl-DBD-DB2/redhat6/Build-notes.lite +++ b/perl-DBD-DB2/redhat6/Build-notes.lite @@ -1,22 +1,27 @@ Build Notes for the perl-DBD-DB2 on RedHat6.x p-Series DB2 must be installed on the linux machine to build the DBD +Download DBD-DB2-1.83.tar.gz from CPAN +cp into /root/rpmbuild/SOURCES install rpm_build install v9.7fp5_linuxppc64_dsdriver.tar.gz +Setup per instructions in DB2 doc. Build with DBD-DB2-1.83.tar.gz from cpan. Must be this level or later -export DB2_HOME=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver -export DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib -cd /usr/src/redhat/SPECS +#export DB2_HOME=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver +export DB2_HOME=/db2client/dsdriver +#export DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib +export DB2LIB=/db2client/dsdriver/lib +cd /root/rpmbuild/SPECS Use the DBD-DB2Lite.spec supplied in this directory -cp DBD-DB2Lite.spec /usr/src/redhat/SPECS -rpmbuild -ba DBD-DB2.spec +cp DBD-DB2Lite.spec /root/rpmbuild/SPECS +rpmbuild -ba DBD-DB2Lite.spec This creates -/root/rpm/RPMS/ppc64/perl-DBD-DB2Lite-1-1.ppc64.rpm +/root/rpmbuild/RPMS/ppc64/perl-DBD-DB2Lite-1-1.ppc64.rpm Note on Redhat 6 vi /etc/ld.so.conf add the following line -/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib +/db2client/dsdriver/lib The run ldconfig diff --git a/perl-DBD-DB2/redhat6/DBD-DB2Lite.spec b/perl-DBD-DB2/redhat6/DBD-DB2Lite.spec index 9e3f566..fac3b30 100644 --- a/perl-DBD-DB2/redhat6/DBD-DB2Lite.spec +++ b/perl-DBD-DB2/redhat6/DBD-DB2Lite.spec @@ -43,7 +43,7 @@ grep -rsl '^#!.*perl' . | grep -v '.bak$' |xargs --no-run-if-empty \ %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' CFLAGS="$RPM_OPT_FLAGS" -DB2_HOME=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver DB2LIB=/db2client/dsdriver/odbc_cli_driver/aix32/clidriver/lib %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` +DB2_HOME=/db2client/dsdriver DB2LIB=/db2client/dsdriver/lib %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` %{__make} %if %maketest %{__make} test