Blob Blame History Raw
Name:           perl-DBD-ODBC
Version:        1.52
Release:        3%{?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 -u 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 Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.52-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.52-2
- Perl 5.22 rebuild

* Mon Apr 20 2015 Jan Holcapek <holcapek@gmail.com> - 1.52-1
- Updated to upstream version 1.52.

* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.50-5
- Perl 5.20 rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Mon Aug 4 2014 Jan Holcapek <holcapek@gmail.com> 1.50-3
- Enabled Unicode support.
- Fixed release in changelog.

* Mon Jul 28 2014 Jan Holcapek <holcapek@gmail.com> 1.50-1
- Updated to upstream version 1.50.

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.48-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* 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.