# # spec file for package perl-DBD-Oracle (Version 1.19) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: perl-DBD-Oracle URL: http://search.cpan.org/~timb/DBD-Oracle/ BuildRequires: oracle-instantclient perl-DBI License: Artistic License, GNU General Public License (GPL) Group: Development/Libraries/Perl Autoreqprov: on Requires: perl-DBI Requires: perl = %{perl_version} Summary: Perl DBD module for interfacing with Oracle databases Version: 1.19 Release: 1 Source: DBD-Oracle-%{version}.tar.gz Source1: oracle-instantclient.html Patch: Makefile.PL.diff Patch1: envdep.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This module is needed to access Oracle databases from within Perl. It links against Oracle's instantclient available from http://www.oracle.com/technology/tech/oci/instantclient/index.html Authors: -------- Tim Bunce et al. %prep %setup -n DBD-Oracle-%{version} %patch -p1 %patch1 cp %{S:1} . %build incdir=`echo /opt/oracle/instantclient*/sdk/include` export ORACLE_HOME=/opt/oracle/lib export LD_LIBRARY_PATH=/opt/oracle/lib perl Makefile.PL -v -h $incdir -V `perl -ne '$$1=$2 if /#define\s+OCI_M(AJ|IN)OR_VERSION\s+(\d+)/; END { print "$AJ.$IN\n" } ' $incdir/oci.h` make # make test # only 2.7% success %install [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/%{perl_archlib} make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes README MANIFEST oracle-instantclient.html %doc %{_mandir}/man?/* %dir %{perl_vendorarch}/DBD %dir %{perl_vendorarch}/auto/DBD %{perl_vendorarch}/Oraperl.pm %{perl_vendorarch}/oraperl.ph %{perl_vendorarch}/DBD/* %{perl_vendorarch}/auto/DBD/* /var/adm/perl-modules/%{name} /usr/bin/ora_* %changelog * Thu May 03 2007 - jw@suse.de - added some documentation on oracle-instantclient - updated to DBD-Oracle 1.19 Fixed execute_array to comply with DBI standard from Martin J. Evans, Xho Jingleheimerschmidt and others Fixed execute_array so it will not throw a Perl warning on undef values in Tuples from John Scoles Fixed execute_array so it will take the ora_array_chunk_size DB handle attribute Fixed some typos in code and READMEs from John Scoles Fixed a few other little bugs dealing with compatibility with Oracle 8 Changes to README from Karl Auer Suppress warning in 26exe_array.t from Philip Garrett Added support for array context aware execute_for_fetch from Martin J. Evans Fixed Makefile.PL for an incompatibility with ExtUtils::MM_Unix v1.50 (invoked byExtUtils::MakeMaker) from Dennis McRitchie Updated POD to reflect that OCI after 9.2 no longer strips trialing spaces * Wed Aug 23 2006 - ro@suse.de - change dep from /bin/env to /usr/bin/env * Wed Jul 26 2006 - jw@suse.de - update to V1.18, minor changes only. * Tue Jun 06 2006 - jw@suse.de - filelist check failed. auto now excluded. * Fri Jun 02 2006 - jw@suse.de - initial build V1.17 using oracle-instantclient-10.2