e7b9b5
# According to documentation, module using Coro is just:
e7b9b5
# A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION.
e7b9b5
%if 0%{?rhel} >= 7 
e7b9b5
%bcond_with coro
e7b9b5
%else
e7b9b5
%bcond_without coro
e7b9b5
%endif
e7b9b5
e7b9b5
Name:           perl-DBI
e7b9b5
Version:        1.627
e7b9b5
Release:        1%{?dist}
e7b9b5
Summary:        A database access API for perl
e7b9b5
Group:          Development/Libraries
e7b9b5
License:        GPL+ or Artistic
e7b9b5
URL:            http://dbi.perl.org/
e7b9b5
Source0:        http://www.cpan.org/authors/id/T/TI/TIMB/DBI-%{version}.tar.gz
e7b9b5
BuildRequires:  perl
e7b9b5
BuildRequires:  perl(ExtUtils::MakeMaker)
e7b9b5
BuildRequires:  perl(File::Find)
e7b9b5
BuildRequires:  perl(strict)
e7b9b5
# Run-time
e7b9b5
BuildRequires:  perl(base)
e7b9b5
BuildRequires:  perl(constant)
e7b9b5
BuildRequires:  perl(Carp)
e7b9b5
# Clone is optional
e7b9b5
BuildRequires:  perl(Clone) >= 0.34
e7b9b5
BuildRequires:  perl(Config)
e7b9b5
%if %{with coro}
e7b9b5
BuildRequires:  perl(Coro)
e7b9b5
BuildRequires:  perl(Coro::Handle)
e7b9b5
BuildRequires:  perl(Coro::Select)
e7b9b5
%endif
e7b9b5
BuildRequires:  perl(Cwd)
e7b9b5
BuildRequires:  perl(Data::Dumper)
e7b9b5
# DB_File is optional
e7b9b5
BuildRequires:  perl(DB_File)
e7b9b5
BuildRequires:  perl(DynaLoader)
e7b9b5
BuildRequires:  perl(Errno)
e7b9b5
BuildRequires:  perl(Exporter)
e7b9b5
BuildRequires:  perl(Fcntl)
e7b9b5
BuildRequires:  perl(File::Basename)
e7b9b5
BuildRequires:  perl(File::Spec)
e7b9b5
BuildRequires:  perl(Getopt::Long)
e7b9b5
BuildRequires:  perl(IO::Dir)
e7b9b5
BuildRequires:  perl(IO::File)
e7b9b5
BuildRequires:  perl(IO::Select)
e7b9b5
BuildRequires:  perl(IPC::Open3)
e7b9b5
BuildRequires:  perl(Math::BigInt)
e7b9b5
# MLDBM is optional
e7b9b5
%if ! ( 0%{?rhel} )
e7b9b5
BuildRequires:  perl(MLDBM)
e7b9b5
%endif
e7b9b5
# Params::Util is optional
e7b9b5
# RPC::PlClient is optional
e7b9b5
BuildRequires:  perl(RPC::PlClient) >= 0.2000
e7b9b5
# RPC::PlServer is optional
e7b9b5
BuildRequires:  perl(RPC::PlServer)
e7b9b5
BuildRequires:  perl(Scalar::Util)
e7b9b5
# SQL::Statement is optional, and it requires DBI
e7b9b5
%if 0%{!?perl_bootstrap:1} && ! ( 0%{?rhel} )
e7b9b5
BuildRequires:  perl(SQL::Statement) >= 1.402
e7b9b5
%endif
e7b9b5
BuildRequires:  perl(Storable)
e7b9b5
BuildRequires:  perl(Symbol)
e7b9b5
BuildRequires:  perl(threads)
e7b9b5
BuildRequires:  perl(Tie::Hash)
e7b9b5
BuildRequires:  perl(UNIVERSAL)
e7b9b5
BuildRequires:  perl(utf8)
e7b9b5
BuildRequires:  perl(vars)
e7b9b5
BuildRequires:  perl(warnings)
e7b9b5
# Tests
e7b9b5
BuildRequires:  perl(Benchmark)
e7b9b5
BuildRequires:  perl(Encode)
e7b9b5
BuildRequires:  perl(File::Copy)
e7b9b5
BuildRequires:  perl(File::Path)
e7b9b5
BuildRequires:  perl(lib)
e7b9b5
BuildRequires:  perl(Net::Daemon::Test)
e7b9b5
BuildRequires:  perl(Test::More)
e7b9b5
BuildRequires:  perl(Test::Simple) >= 0.90
e7b9b5
# Optional tests
e7b9b5
BuildRequires:  perl(Test::Pod) >= 1.00
e7b9b5
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
e7b9b5
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e7b9b5
Requires:       perl(Math::BigInt)
e7b9b5
e7b9b5
# Filter unwanted dependencies
e7b9b5
%{?perl_default_filter}
e7b9b5
%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(RPC::\\)
e7b9b5
e7b9b5
%description 
e7b9b5
DBI is a database access Application Programming Interface (API) for
e7b9b5
the Perl Language. The DBI API Specification defines a set of
e7b9b5
functions, variables and conventions that provide a consistent
e7b9b5
database interface independent of the actual database being used.
e7b9b5
e7b9b5
%prep
e7b9b5
%setup -q -n DBI-%{version} 
e7b9b5
iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new &&
e7b9b5
  mv lib/DBD/Gofer.pm{.new,}
e7b9b5
chmod 644 ex/*
e7b9b5
chmod 744 dbixs_rev.pl
e7b9b5
sed -i 's?#!perl?#!%{__perl}?' ex/corogofer.pl
e7b9b5
%if %{without coro}
e7b9b5
rm lib/DBD/Gofer/Transport/corostream.pm
e7b9b5
sed -i -e '/^lib\/DBD\/Gofer\/Transport\/corostream.pm$/d' MANIFEST
e7b9b5
%endif
e7b9b5
e7b9b5
%build
e7b9b5
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
e7b9b5
make %{?_smp_mflags}
e7b9b5
e7b9b5
%install
e7b9b5
make pure_install PERL_INSTALL_ROOT=%{buildroot}
e7b9b5
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
e7b9b5
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
e7b9b5
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
e7b9b5
chmod -R u+w %{buildroot}/*
e7b9b5
# Remove Win32 specific files and man pages to avoid unwanted dependencies
e7b9b5
rm -rf %{buildroot}%{perl_vendorarch}/{Win32,DBI/W32ODBC.pm} \
e7b9b5
    %{buildroot}%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm
e7b9b5
perl -pi -e 's"#!perl -w"#!/usr/bin/perl -w"' \
e7b9b5
    %{buildroot}%{perl_vendorarch}/{goferperf,dbixs_rev}.pl
e7b9b5
e7b9b5
%check
e7b9b5
make test
e7b9b5
e7b9b5
%files
e7b9b5
# Changes already packaged as DBI::Changes
e7b9b5
%doc README.md ex/
e7b9b5
%{_bindir}/dbipro*
e7b9b5
%{_bindir}/dbilogstrip
e7b9b5
%{perl_vendorarch}/*.p*
e7b9b5
%{perl_vendorarch}/Bundle/
e7b9b5
%{perl_vendorarch}/DBD/
e7b9b5
%{perl_vendorarch}/DBI/
e7b9b5
%{perl_vendorarch}/auto/DBI/
e7b9b5
%{_mandir}/man1/*.1*
e7b9b5
%{_mandir}/man3/*.3*
e7b9b5
e7b9b5
%changelog
e7b9b5
* Mon May 20 2013 Petr Pisar <ppisar@redhat.com> - 1.627-1
e7b9b5
- 1.627 bump
e7b9b5
e7b9b5
* Thu May 16 2013 Petr Pisar <ppisar@redhat.com> - 1.626-1
e7b9b5
- 1.626 bump
e7b9b5
e7b9b5
* Tue Apr 02 2013 Petr Šabata <contyk@redhat.com> - 1.625-1
e7b9b5
- 1.625 bump, perl5.17 fixes
e7b9b5
e7b9b5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.623-2
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e7b9b5
e7b9b5
* Thu Jan 03 2013 Petr Šabata <contyk@redhat.com> - 1.623-1
e7b9b5
- 1.623 bump
e7b9b5
e7b9b5
* Mon Aug 27 2012 Petr Pisar <ppisar@redhat.com> - 1.622-6
e7b9b5
- Disable Coro properly
e7b9b5
e7b9b5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.622-5
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e7b9b5
e7b9b5
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.622-4
e7b9b5
- Perl 5.16 re-rebuild of bootstrapped packages
e7b9b5
e7b9b5
* Wed Jun 27 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.622-3
e7b9b5
- Conditionalize usage of Coro, which is used in experimental module
e7b9b5
  and MLDB and SLQ::Statement. 
e7b9b5
 
e7b9b5
* Sat Jun 16 2012 Petr Pisar <ppisar@redhat.com> - 1.622-2
e7b9b5
- Perl 5.16 rebuild
e7b9b5
e7b9b5
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1.622-1
e7b9b5
- 1.622 bump
e7b9b5
e7b9b5
* Fri Apr 27 2012 Petr Šabata <contyk@redhat.com> - 1.620-1
e7b9b5
- 1.620 bump
e7b9b5
- Removing some perl-provided explicit dependencies
e7b9b5
e7b9b5
* Fri Apr  6 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.618-3
e7b9b5
- 810370 apply Paul's bootstrap macro
e7b9b5
e7b9b5
* Mon Feb 27 2012 Petr Pisar <ppisar@redhat.com> - 1.618-2
e7b9b5
- Build-require optional Test::Pod::Coverage
e7b9b5
e7b9b5
* Mon Feb 27 2012 Petr Pisar <ppisar@redhat.com> - 1.618-1
e7b9b5
- 1.618 bump
e7b9b5
e7b9b5
* Tue Jan 31 2012 Petr Šabata <contyk@redhat.com> - 1.617-1
e7b9b5
- 1.617 bump
e7b9b5
- Modernize spec
e7b9b5
- Remove now obsolete perl(DBI) Provides
e7b9b5
e7b9b5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.616-5
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e7b9b5
e7b9b5
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.616-4
e7b9b5
- Perl mass rebuild
e7b9b5
e7b9b5
* Tue Mar 15 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.616-3
e7b9b5
- Adapt dependency filtering for rpmbuild >= 4.9.
e7b9b5
e7b9b5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.616-2
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e7b9b5
e7b9b5
* Tue Jan  4 2011 Petr Sabata <psabata@redhat.com> - 1.616-1
e7b9b5
- 1.616 version bump
e7b9b5
e7b9b5
* Wed Sep 29 2010 jkeating - 1.615-2
e7b9b5
- Rebuilt for gcc bug 634757
e7b9b5
e7b9b5
* Thu Sep 23 2010 Petr Sabata <psabata@redhat.com> - 1.615-1
e7b9b5
- 1.615 version bump
e7b9b5
e7b9b5
* Mon Sep 20 2010 Petr Sabata <psabata@redhat.com> - 1.614-1
e7b9b5
- 1.614 version bump
e7b9b5
e7b9b5
* Mon Aug  2 2010 Petr Sabata <psabata@redhat.com> - 1.613-1
e7b9b5
- 1.613 version bump
e7b9b5
e7b9b5
* Mon Jun  7 2010 Petr Pisar <ppisar@redhat.com> - 1.611-1
e7b9b5
- 1.611 bump
e7b9b5
- Add BuildRequires perl(RPC::PlClient) to cover some optional tests
e7b9b5
- Fix indentation
e7b9b5
e7b9b5
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.609-5
e7b9b5
- Mass rebuild with perl-5.12.0
e7b9b5
e7b9b5
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.609-4
e7b9b5
- rebuild against perl 5.10.1
e7b9b5
e7b9b5
* Thu Sep 24 2009 Stepan Kasal <skasal@redhat.com> - 1.609-3
e7b9b5
- provide versioned perl(DBI)
e7b9b5
e7b9b5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.609-2
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e7b9b5
e7b9b5
* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 1.609-1
e7b9b5
- new upstream version
e7b9b5
- drop unneeded build patch
e7b9b5
- move the iconv to convert the source
e7b9b5
e7b9b5
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.607-2
e7b9b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e7b9b5
e7b9b5
* Mon Jul 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.607-1
e7b9b5
- update
e7b9b5
e7b9b5
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.601-4
e7b9b5
- Rebuild for perl 5.10 (again)
e7b9b5
e7b9b5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.601-3
e7b9b5
- Autorebuild for GCC 4.3
e7b9b5
e7b9b5
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.601-2
e7b9b5
- rebuild for new perl
e7b9b5
e7b9b5
* Fri Oct 26 2007 Robin Norwood <rnorwood@redhat.com> - 1.601-1
e7b9b5
- Update to latest CPAN version: 1.601
e7b9b5
- Fix some issues from package review:
e7b9b5
  - patch to change #! line in script
e7b9b5
  - make script executable
e7b9b5
  - fix requires and buildrequires
e7b9b5
e7b9b5
* Mon Aug 27 2007 Robin Norwood <rnorwood@redhat.com> - 1.58-2
e7b9b5
- Rebuild
e7b9b5
e7b9b5
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 1.58-1
e7b9b5
- Update to latest CPAN version: 1.58
e7b9b5
e7b9b5
* Thu Jun 07 2007 Robin Norwood <rnorwood@redhat.com> - 1.56-1
e7b9b5
- Update to latest CPAN version: 1.56
e7b9b5
- Move the filter requires step into %%prep
e7b9b5
- Remove very old patch (for perl 5.8.1)
e7b9b5
- Fix a couple of rpmlint issues (non-UTF8 manpage and script with
e7b9b5
  incorrect shebang line
e7b9b5
e7b9b5
* Sat Dec 02 2006 Robin Norwood <rnorwood@redhat.com> - 1.53-1
e7b9b5
- Upgrade to latest CPAN version: 1.53
e7b9b5
e7b9b5
* Thu Aug 24 2006 Robin Norwood <rnorwood@redhat.com> - 1.52-1
e7b9b5
- Upgrade to 1.52 for bug #202310
e7b9b5
        
e7b9b5
* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 1.51-1
e7b9b5
- Upgrade to 1.51
e7b9b5
e7b9b5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.50-3
e7b9b5
- rebuild
e7b9b5
e7b9b5
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.50-2.2
e7b9b5
- bump again for double-long bug on ppc(64)
e7b9b5
e7b9b5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.50-2.1
e7b9b5
- rebuilt for new gcc4.1 snapshot and glibc changes
e7b9b5
e7b9b5
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.50-2
e7b9b5
- rebuild for new perl-5.8.8 / gcc / glibc
e7b9b5
e7b9b5
* Mon Dec 19 2005 Jason Vas Dias<jvdias@redhat.com> - 1.50-1
e7b9b5
- upgrade to 1.50
e7b9b5
e7b9b5
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
e7b9b5
- rebuilt for new gcc
e7b9b5
e7b9b5
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
e7b9b5
- rebuilt for new gcj
e7b9b5
e7b9b5
* Wed Apr 13 2005 Jose Pedro Oliveira <jpo@di.uminho.pt> - 1.48-4
e7b9b5
- (#154762)
e7b9b5
- License information: GPL or Artistic
e7b9b5
- Removed the Time::HiRes building requirement (see Changes)
e7b9b5
- Removed the empty .bs file
e7b9b5
- Corrected file permissions
e7b9b5
e7b9b5
* Mon Apr 04 2005 Warren Togami <wtogami@redhat.com> 1.48-3
e7b9b5
- filter perl(Apache) (#153673)
e7b9b5
e7b9b5
* Fri Apr 01 2005 Robert Scheck <redhat@linuxnetz.de> 1.48-2
e7b9b5
- spec file cleanup (#153164)
e7b9b5
e7b9b5
* Thu Mar 31 2005 Warren Togami <wtogami@redhat.com> 1.48-1
e7b9b5
- 1.48
e7b9b5
e7b9b5
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
e7b9b5
- rebuilt
e7b9b5
e7b9b5
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
e7b9b5
- rebuilt
e7b9b5
e7b9b5
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.40-1
e7b9b5
- update to 1.40
e7b9b5
e7b9b5
* Fri Dec 19 2003 Chip Turner <cturner@redhat.com> 1.39-1
e7b9b5
- update to 1.39
e7b9b5
e7b9b5
* Mon Jul  7 2003 Chip Turner <cturner@redhat.com> 1.37-1
e7b9b5
- upgrade to 1.37
e7b9b5
e7b9b5
* Wed Apr  2 2003 Chip Turner <cturner@redhat.com> 1.32-6
e7b9b5
- add buildrequires on perl-Time-HiRes
e7b9b5
e7b9b5
* Tue Feb 18 2003 Chip Turner <cturner@redhat.com>
e7b9b5
- update dependency filter to remove dependency on perl(Apache) that
e7b9b5
- crept in (#82927)
e7b9b5
e7b9b5
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
e7b9b5
- version bump and rebuild
e7b9b5
e7b9b5
* Sat Dec 14 2002 Chip Turner <cturner@redhat.com>
e7b9b5
- don't use rpm internal dep generator
e7b9b5
e7b9b5
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
e7b9b5
- rebuild
e7b9b5
e7b9b5
* Wed Aug  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.30-1
e7b9b5
- 1.30. 
e7b9b5
e7b9b5
* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.28-1
e7b9b5
- 1.28
e7b9b5
- Building it also fixes #66304
e7b9b5
e7b9b5
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
e7b9b5
- automated rebuild
e7b9b5
e7b9b5
* Wed Jun  5 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.23-2
e7b9b5
- Tweak dependency finder - filter out a dependency found within the 
e7b9b5
  doc section of a module
e7b9b5
e7b9b5
* Tue Jun  4 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.23-1
e7b9b5
- 1.23
e7b9b5
- Some changes to integrate with new Perl
e7b9b5
- Update URL
e7b9b5
e7b9b5
* Thu May 23 2002 Tim Powers <timp@redhat.com>
e7b9b5
- automated rebuild
e7b9b5
e7b9b5
* Tue May  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.21-2
e7b9b5
- Rebuild
e7b9b5
e7b9b5
* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.21-1
e7b9b5
- 1.21
e7b9b5
e7b9b5
* Fri Feb  8 2002 Chip Turner <cturner@redhat.com>
e7b9b5
- filter out "soft" dependencies: perl(RPC::PlClient) and perl(Win32::ODBC)
e7b9b5
e7b9b5
* Thu Feb  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.201-2
e7b9b5
- Rebuild
e7b9b5
e7b9b5
* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.201-1
e7b9b5
- 1.201
e7b9b5
e7b9b5
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
e7b9b5
- automated rebuild
e7b9b5
e7b9b5
* Tue Jan  8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.20-1
e7b9b5
- 1.20
e7b9b5
- Proper URL
e7b9b5
e7b9b5
* Sat Jun 23 2001 Trond Eivind Glomsrød <teg@redhat.com>
e7b9b5
- 1.18
e7b9b5
e7b9b5
* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
e7b9b5
- 1.16
e7b9b5
- change group to Applications/Databases from Applications/CPAN
e7b9b5
e7b9b5
* Tue May  1 2001 Trond Eivind Glomsrød <teg@redhat.com>
e7b9b5
- 1.15
e7b9b5
e7b9b5
* Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
e7b9b5
- Cleanups
e7b9b5
e7b9b5
* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
e7b9b5
- build for main distribution
e7b9b5
- use %%{_tmppath}
e7b9b5
- change name of specfile
e7b9b5
- don't use a find script to generate file lists
e7b9b5
- general cleanup
e7b9b5
- add descriptive summary and description
e7b9b5
e7b9b5
* Mon Aug 14 2000 Tim Powers <timp@redhat.com>
e7b9b5
- Spec file was autogenerated.