Name: perl-DBD-ODBC
Version: 1.48
Release: 1%{?dist}
Summary: ODBC Driver for DBI
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/DBD-ODBC/
Source0: http://www.cpan.org/modules/by-module/DBD/DBD-ODBC-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl(Config)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DBI)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: unixODBC-devel
Requires: perl(DBI)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: unixODBC
Patch0: Changes.patch
%description
This module is needed to access ODBC databases from within Perl. The
module uses the unixODBC manager to connect to the database.
%prep
%setup -q -n DBD-ODBC-%{version}
%patch0 -p1
%build
PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes FAQ README TO_DO
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/DBD*
%{_mandir}/man3/*
%changelog
* Thu Mar 6 2014 Jan Holcapek <holcapek@gmail.com> 1.48-1
- Updated to upstream version 1.48.
* Mon Feb 24 2014 Jan Holcapek <holcapek@gmail.com> 1.47-2
- Fix formatting of Changes, which confused RPM dependency
solver find-requires.sh so that it made the RPM require 'perl(the)'
* Fri Feb 21 2014 Jan Holcapek <holcapek@gmail.com> 1.47-1
- Updated to upstream version 1.47.
* Fri Nov 22 2013 Jan Holcapek <holcapek@gmail.com> 1.45-1
- Initial import (#1028521).
* Fri Nov 08 2013 Jan Holcapek <holcapek@gmail.com> 1.45-1
- Specfile autogenerated by cpanspec 1.78.