File perl-DBD-ODBC.spec of Package perl-DBD-ODBC

#
# spec file for package perl-DBD-ODBC (Version 1.17)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-DBD-ODBC
Url:            http://cpan.org/modules/by-module/DBD/
BuildRequires:  perl-DBI unixODBC-devel
License:        GPL v2 or later
Group:          Development/Libraries/Perl
AutoReqProv:    on
Requires:       perl-DBI unixODBC
Requires:       perl = %{perl_version}
Summary:        Perl DBD module for interfacing with ODBC databases
Version:        1.17
Release:        1
Source:         DBD-ODBC-%{version}.tar.bz2
Patch:          %{name}-%{version}-Makefile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This module is needed to access ODBC databases from within Perl. The
module uses the unixODBC manager to connect to the database.



Authors:
--------
    Tim Bunce
    Jeff Urlwin
    Thomas K. Wenrich

%prep
%setup -q -n DBD-ODBC-%{version}
%patch

%build
export ODBCHOME=/usr LIB=%{_lib}
perl Makefile.PL
make

%check
make test

%install
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
%doc %{_mandir}/man?/*
%dir %{perl_vendorarch}/DBD
%dir %{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/DBD/*
%{perl_vendorarch}/auto/DBD/*
/var/adm/perl-modules/%{name}

%changelog
* Mon Oct 06 2008 anicka@suse.cz
- update to 1.17
  * Changed default fallback parameter bind type to SQL_WVARCHAR for
  unicode builds. This affects ODBC drivers which don't have
  * About a 30%% rewrite of bound parameter code which started with an
  attempt to support the new VARBINARY(MAX) and VARCHAR(MAX)
  columns in SQL Server when the parameter length is > 400K in size
  * Rewrote ColAttributes code to understand string and numeric
  attributes rather than trying to guess by what the driver returns.
  * bugfixes, test fixes
* Fri Jun 27 2008 anicka@suse.cz
- update to 1.16
  * More tracing in dbdimp.c for named parameters.
  * #ifdeffed out odbc_get_primary_keys in dbdimp.c as it is no
  longer used.  $h->func($catalog, $schema, $table, 'GetPrimaryKeys')
  ends up in dbdimp.c/dbd_st_primary_keys now.
  * Changes to Makefile.PL to fix a newly introduced bug with 'tr',
  remove easysoft OOB detection and to try and use odbc_config and
  odbcinst if we find them to aid automatic configuration. This
  latter change also adds "odbc_config --cflags" to the CC line
  when building DBD::ODBC.
  * Added support for parse_trace_flag and parse_trace_flags methods
  and defined a DBD::ODBC private flag 'odbcdev' as a test case.
  * Add support for the 'SQL' trace type. Added private trace type
  odbcdev as an experimental start.
  * Change odbc_query_timeout attribute handling so if it is set to 0
  after having set it to a non-zero value the default of no time
  out is restored.
  * Added support for DBI's statistics_info method.
  * test changes, documentation changes, bugfixes
- remove -uninitialized patch (fixed in upstream)
* Thu Mar 13 2008 anicka@suse.cz
- update to 1.15
  * DBI->connect changed so informational diagnostics like "Changed
  database context to 'master'" from SQL Server are available in
  errstr/state.
  * Changed Makefile.PL to attempt to find unixODBC if -o or ODBCHOME
  not specified.
  * Fairly major changes to dbd_describe in dbdimp.c to reduce ODBC
  calls by 1 SQLDescribeCol call per column when describing result
  sets.
  * Changed to avoid using explicit use of DBIc_ERRXXX in favour
  of newish DBIh_SET_ERR_CHAR.
  * test fixes, bugfixes, documentation added
* Wed Jul 25 2007 anicka@suse.cz
- update to 1.14
  * Add array parameter binding (per new DBI Spec)
  * Add row caching/multiple row fetches to speed selects
  * Better/more tests on multiple statement handles which ensure
  the correct number of rows
  * Better/more tests on all queries which ensure the correct
  number of rows and data
  * Better tests on SQLExecDirect/do
  * Keep checking Oracle's ODBC drivers for Windows to fix
  the Date binding problem
  * Change SQLColAttributes calls (now deprecated)
  to SQLColAttribute
  * Add support for $sth->more_results based on DBD::ODBC-specific
  attribute
  * Removed some unused variable declarations leading to warnings.
  * Removed PerlIO_flush calls as it is believed they are not
  required.
  * Add logging for whether SQLDescribeParam is supported.
  * Add provisional Unicode support. This change is very
  experimental (especially on UNIX). Please see ODBC.pm
  documentation.
  * Updated FAQ, added a few more questions etc.
  * DBD::ODBC requires at least 5.6.0 of Perl.
  * bugfixes, test fixes, documentation fixes
* Fri Feb 16 2007 anicka@suse.cz
- update to 1.13
  * Make ODBC version 3.0 default!
  *  Document more of the DBD::ODBC private attributes/functions.
  * Add array parameter binding (per new DBI Spec)
  * Add row caching/multiple row fetches to speed selects
  * Better/more tests on multiple statement handles which ensure
  the correct number of rows
  * Better/more tests on all queries which ensure the correct number
  of rows and data
  * Better tests on SQLExecDirect/do
  * Change default behaviour to use SQLDescribeParam instead of
  SQL_VARCHAR.
  * Fix inconsistency/bug with odbc_exec_direct vs. odbc_execdirect
  settings.
  * Fix handling of print statements for SQL Server.
  * Due to bug in SQL Server, you must use odbc_exec_direct.
  * Change tests to use Test::More.
  * Added odbc_timeout, but untested
  * Added pod.t test, taken from DBI.
  * Change to use dbivport.h per new DBI spec.
  * Add ability to set the cursor type during the connect.
  * many bugfixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 04 2005 dmueller@suse.de
- add norootforbuild
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Mon Jul 21 2003 stark@suse.de
- use vendorarch instead of vendorlib
* Thu Jul 17 2003 stark@suse.de
- use new conventions for perl 5.8.1
* Mon Jul 07 2003 stark@suse.de
- update to 1.06
- fixed Makefile.PL
  * add OPTIMIZE
  * fixed usage of $Config{lib_ext}
- workaround for broken generated Makefile
* Thu Jun 19 2003 stark@suse.de
- added DBD directories to filelist
* Mon May 19 2003 stark@suse.de
- removed unwanted files from buildroot
* Tue Apr 22 2003 stark@suse.de
- update to 1.05
* Tue Feb 11 2003 stark@suse.de
- update to 1.04
* Tue Dec 17 2002 stark@suse.de
- update to 1.01
* Wed Nov 27 2002 prehak@suse.cz
- fixed libdir in Makefile.PL
- enabled make test
* Wed Sep 18 2002 stark@suse.de
- initial package
openSUSE Build Service is sponsored by