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