a7e4a5
Name:           perl-DBD-MySQL
a7e4a5
Version:        4.023
2da1e0
Release:        6%{?dist}
a7e4a5
Summary:        A MySQL interface for Perl
a7e4a5
Group:          Development/Libraries
a7e4a5
License:        GPL+ or Artistic
a7e4a5
URL:            http://search.cpan.org/dist/DBD-mysql/
a7e4a5
Source0:        http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz
2da1e0
# Fix transferring MYSQL_TYPE_LONG values on 64-bit big endian systems,
2da1e0
# bug #1311646, CPAN RT#57266, in upstream 4.033_03.
2da1e0
Patch0:         DBD-mysql-4.033_02-Fix-transferring-MYSQL_TYPE_LONG-values-on-64-bit-bi.patch
2da1e0
# Tests for transferring MYSQL_TYPE_LONG, bug #1311646, CPAN RT#57266,
2da1e0
# in upstream 4.035_02.
2da1e0
Patch1:         DBD-mysql-4.023-Tests-for-little-endian-platform.patch
a7e4a5
BuildRequires:  mariadb, mariadb-devel, zlib-devel
a7e4a5
BuildRequires:  perl
a7e4a5
BuildRequires:  perl(Carp)
a7e4a5
BuildRequires:  perl(Config)
a7e4a5
BuildRequires:  perl(Data::Dumper)
a7e4a5
BuildRequires:  perl(DBI) >= 1.08
a7e4a5
BuildRequires:  perl(DBI::DBD)
a7e4a5
BuildRequires:  perl(DynaLoader)
a7e4a5
BuildRequires:  perl(ExtUtils::MakeMaker)
a7e4a5
BuildRequires:  perl(File::Basename)
a7e4a5
BuildRequires:  perl(File::Copy)
a7e4a5
BuildRequires:  perl(File::Path)
a7e4a5
BuildRequires:  perl(File::Spec)
a7e4a5
BuildRequires:  perl(Getopt::Long)
a7e4a5
BuildRequires:  perl(strict)
a7e4a5
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
a7e4a5
Provides:       perl-DBD-mysql = %{version}-%{release}
a7e4a5
a7e4a5
%{?perl_default_filter}
a7e4a5
a7e4a5
%description 
a7e4a5
DBD::mysql is the Perl5 Database Interface driver for the MySQL database. In
a7e4a5
other words: DBD::mysql is an interface between the Perl programming language
a7e4a5
and the MySQL programming API that comes with the MySQL relational database
a7e4a5
management system.
a7e4a5
a7e4a5
%prep
a7e4a5
%setup -q -n DBD-mysql-%{version}
2da1e0
%patch0 -p1
2da1e0
%patch1 -p1
a7e4a5
# Correct file permissions
a7e4a5
find . -type f | xargs chmod -x
a7e4a5
a7e4a5
for file in lib/DBD/mysql.pm ChangeLog; do
a7e4a5
  iconv -f iso-8859-1 -t utf-8 <$file >${file}_
a7e4a5
  touch -r ${file}{,_}
a7e4a5
  mv -f ${file}{_,}
a7e4a5
done
a7e4a5
a7e4a5
%build
a7e4a5
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl
a7e4a5
make %{?_smp_mflags}
a7e4a5
a7e4a5
%install
a7e4a5
make pure_install PERL_INSTALL_ROOT=%{buildroot}
a7e4a5
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
a7e4a5
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
a7e4a5
%{_fixperms} %{buildroot}/*
a7e4a5
a7e4a5
%check
a7e4a5
# Full test coverage requires a live MySQL database
a7e4a5
#make test
a7e4a5
a7e4a5
%files
a7e4a5
%doc ChangeLog eg README TODO
a7e4a5
%{perl_vendorarch}/Bundle/
a7e4a5
%{perl_vendorarch}/DBD/
a7e4a5
%{perl_vendorarch}/auto/DBD/
a7e4a5
%{_mandir}/man3/*.3*
a7e4a5
a7e4a5
%changelog
2da1e0
* Thu Oct 06 2016 Petr Pisar <ppisar@redhat.com> - 4.023-6
2da1e0
- Fix transferring MYSQL_TYPE_LONG values on 64-bit big endian systems
2da1e0
  (bug #1311646)
2da1e0
df7585
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.023-5
df7585
- Mass rebuild 2014-01-24
df7585
df7585
* Wed Jan 15 2014 Honza Horak <hhorak@redhat.com> - 4.023-4
df7585
- Rebuild for mariadb-libs
df7585
  Related: #1045013
df7585
df7585
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.023-3
df7585
- Mass rebuild 2013-12-27
df7585
a7e4a5
* Mon Apr 29 2013 Petr Šabata <contyk@redhat.com> - 4.023-2
a7e4a5
- Force MariaDB dependency as a workaround for f19 compose
a7e4a5
a7e4a5
* Mon Apr 15 2013 Petr Pisar <ppisar@redhat.com> - 4.023-1
a7e4a5
- 4.023 bump
a7e4a5
a7e4a5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.022-2
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a7e4a5
a7e4a5
* Thu Aug 30 2012 Petr Šabata <contyk@redhat.com> - 4.022-1
a7e4a5
- 4.022 bump
a7e4a5
a7e4a5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.021-3
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a7e4a5
a7e4a5
* Sat Jun 16 2012 Petr Pisar <ppisar@redhat.com> - 4.021-2
a7e4a5
- Perl 5.16 rebuild
a7e4a5
a7e4a5
* Wed May 02 2012 Petr Šabata <contyk@redhat.com> - 4.021-1
a7e4a5
- 4.021 bump
a7e4a5
a7e4a5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.020-2
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a7e4a5
a7e4a5
* Mon Aug 22 2011 Petr Sabata <contyk@redhat.com> - 4.020-1
a7e4a5
- 4.020 bump
a7e4a5
a7e4a5
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.019-3
a7e4a5
- Perl mass rebuild
a7e4a5
a7e4a5
* Fri May 13 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.019-2
a7e4a5
- apply tested patch from F-15 (is_prefix replaced by strncmp) #703185
a7e4a5
- remove deffattr
a7e4a5
a7e4a5
* Mon May  9 2011 Petr Sabata <psabata@redhat.com> - 4.019-1
a7e4a5
- 4.019 bump
a7e4a5
- Removing the clean section
a7e4a5
- Adding DynaLoader to BR
a7e4a5
a7e4a5
* Tue Mar 22 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4.018-3
a7e4a5
- rebuilt for libmysqlclient
a7e4a5
a7e4a5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.018-2
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a7e4a5
a7e4a5
* Wed Oct 27 2010 Marcela Mašláňová <mmaslano@redhat.com> - 4.018-1
a7e4a5
- update
a7e4a5
a7e4a5
* Thu Aug 12 2010 Petr Pisar <ppisar@redhat.com> - 4.017-1
a7e4a5
- 4.017 bump (bug #623614)
a7e4a5
- Preserve time stamps while converting character set
a7e4a5
a7e4a5
* Mon Jul 12 2010 Petr Pisar <ppisar@redhat.com> - 4.016-1
a7e4a5
- 4.016 bump (bug #597759)
a7e4a5
a7e4a5
* Mon May 31 2010 Petr Pisar <ppisar@redhat.com> - 4.014-1
a7e4a5
- 4.014 bump (bug #597759)
a7e4a5
a7e4a5
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 4.013-5
a7e4a5
- Mass rebuild with perl-5.12.0
a7e4a5
a7e4a5
* Sun Mar 07 2010 Chris Weyl <cweyl@alumni.drew.edu> - 4.013-4
a7e4a5
- add perl_default_filter (remove mysql.so provides)
a7e4a5
a7e4a5
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 4.013-3
a7e4a5
- rebuild against perl 5.10.1
a7e4a5
a7e4a5
* Mon Oct 26 2009 Stepan Kasal <skasal@redhat.com> - 4.013-2
a7e4a5
- new upstream version
a7e4a5
a7e4a5
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 4.011-3
a7e4a5
- rebuilt with new openssl
a7e4a5
a7e4a5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.011-2
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a7e4a5
a7e4a5
* Wed Jun 10 2009 Stepan Kasal <skasal@redhat.com> - 4.011-1
a7e4a5
- new upstream version
a7e4a5
- apply iconv on primary source
a7e4a5
a7e4a5
* Mon Apr  6 2009 Marcela Mašláňová <mmaslano@redhat.com> - 4.010-1
a7e4a5
- update to the latest version
a7e4a5
a7e4a5
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.005-10
a7e4a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a7e4a5
a7e4a5
* Thu Jan 22 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.005-9
a7e4a5
- respin (mysql)
a7e4a5
a7e4a5
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-8
a7e4a5
- Rebuild for perl 5.10 (again)
a7e4a5
a7e4a5
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.005-7
a7e4a5
- Autorebuild for GCC 4.3
a7e4a5
a7e4a5
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-6
a7e4a5
- rebuild for new perl
a7e4a5
a7e4a5
* Wed Dec  5 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-5
a7e4a5
- Rebuild for new openssl
a7e4a5
a7e4a5
* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-4
a7e4a5
- Fix utf-8 rpmlint warning
a7e4a5
a7e4a5
* Tue Oct 23 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-3
a7e4a5
- Use fixperms macro
a7e4a5
- Remove BR: perl
a7e4a5
a7e4a5
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 4.005-2.1
a7e4a5
- add BR: perl(ExtUtils::MakeMaker)
a7e4a5
a7e4a5
* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-2
a7e4a5
- rebuild
a7e4a5
a7e4a5
* Mon Aug 13 2007 Robin Norwood <rnorwood@redhat.com> - 4.005-1
a7e4a5
- New version from CPAN: 4.005
a7e4a5
a7e4a5
* Thu Jun 07 2007 Robin Norwood <rnorwood@redhat.com> - 4.004-1
a7e4a5
- New version from CPAN: 4.004
a7e4a5
- Move requires filter into spec file
a7e4a5
a7e4a5
* Sat Dec 02 2006 Robin Norwood <rnorwood@redhat.com> - 3.0008-1
a7e4a5
- New version from CPAN: 3.0008
a7e4a5
a7e4a5
* Fri Sep 29 2006 Robin Norwood <rnorwood@redhat.com> - 3.0007-1
a7e4a5
- Bugzilla: 208633
a7e4a5
- Upgrade to upstream version 3.0007 version to fix some minor bugs.
a7e4a5
a7e4a5
* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0006-1.FC6
a7e4a5
- Upgrade to 3.0006
a7e4a5
a7e4a5
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com>
a7e4a5
- rebuild
a7e4a5
a7e4a5
* Wed May 31 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0004-1.FC6
a7e4a5
- upgrade to upstream version 3.0004
a7e4a5
a7e4a5
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.0002-2.2.2
a7e4a5
- bump again for double-long bug on ppc(64)
a7e4a5
a7e4a5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0002-2.2.1
a7e4a5
- rebuilt for new gcc4.1 snapshot and glibc changes
a7e4a5
a7e4a5
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 3.0002-2.2
a7e4a5
- rebuild for new perl-5.8.8
a7e4a5
a7e4a5
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
a7e4a5
- rebuilt for new gcc
a7e4a5
a7e4a5
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
a7e4a5
- rebuilt for new gcj
a7e4a5
a7e4a5
* Thu Nov 10 2005 Tomas Mraz <tmraz@redhat.com> - 3.0002-2
a7e4a5
- rebuilt against new openssl
a7e4a5
a7e4a5
* Mon Jul 11 2005 Jose Pedro Oliveira <jpo at="" di.uminho.pt=""> - 3.0002-1
a7e4a5
- Update to 3.0002.
a7e4a5
a7e4a5
* Wed Apr 27 2005 Jose Pedro Oliveira <jpo at="" di.uminho.pt=""> - 2.9007-1
a7e4a5
- Update to 2.9007. (#156059)
a7e4a5
a7e4a5
* Thu Apr 14 2005 Jose Pedro Oliveira <jpo at="" di.uminho.pt=""> - 2.9006-1
a7e4a5
- Update to 2.9006.
a7e4a5
- Specfile cleanup. (#154755)
a7e4a5
a7e4a5
* Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 2.9004-4
a7e4a5
- Convert man page to UTF-8
a7e4a5
a7e4a5
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
a7e4a5
- rebuilt
a7e4a5
a7e4a5
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
a7e4a5
- rebuilt
a7e4a5
a7e4a5
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 2.9003-1
a7e4a5
- update to 2.9003
a7e4a5
a7e4a5
* Mon Jul  7 2003 Chip Turner <cturner@redhat.com> 2.9002-1
a7e4a5
- move to 2.9002
a7e4a5
a7e4a5
* Thu Jul  3 2003 Chip Turner <cturner@redhat.com> 2.1021-5
a7e4a5
- rebuild
a7e4a5
a7e4a5
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
a7e4a5
- version bump and rebuild
a7e4a5
a7e4a5
* Wed Jan  1 2003 Chip Turner <cturner@redhat.com>
a7e4a5
- turn ssl on and allow Makefile.PL to yse mysql_config to find proper link flags
a7e4a5
- update to 2.1021
a7e4a5
a7e4a5
* Sat Dec 14 2002 Chip Turner <cturner@redhat.com>
a7e4a5
- don't use internal rpm dep generator
a7e4a5
a7e4a5
* Wed Nov 20 2002 Chip Turner <cturner@redhat.com>
a7e4a5
- rebuild
a7e4a5
a7e4a5
* Wed Aug  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-3
a7e4a5
- Rebuild
a7e4a5
a7e4a5
* Tue Jun 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-2
a7e4a5
- Rebuild, to fix #66304
a7e4a5
a7e4a5
* Wed Jun  5 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.1017-1
a7e4a5
- New version - no longer integrated into msql-mysql modules
a7e4a5
a7e4a5
* Thu May 23 2002 Tim Powers <timp@redhat.com>
a7e4a5
- automated rebuild
a7e4a5
a7e4a5
* Fri Feb 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-6
a7e4a5
- Rebuild
a7e4a5
a7e4a5
* Fri Feb  8 2002 Chip Turner <cturner@minbar.devel.redhat.com>
a7e4a5
- filter out "soft" dependencies: perl(Data::ShowTable)
a7e4a5
a7e4a5
* Thu Feb  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-4
a7e4a5
- Rebuild
a7e4a5
a7e4a5
* Tue Jan 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-3
a7e4a5
- Rebuild
a7e4a5
a7e4a5
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
a7e4a5
- automated rebuild
a7e4a5
a7e4a5
* Tue Jan  8 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.2219-1
a7e4a5
- 1.2219
a7e4a5
a7e4a5
* Fri Jul 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
a7e4a5
- Add zlib-devel to buildrequires (#49536)
a7e4a5
a7e4a5
* Sun Jul  1 2001 Trond Eivind Glomsrød <teg@redhat.com>
a7e4a5
- Add perl and perl-DBI to BuildRequires
a7e4a5
a7e4a5
* Wed May 30 2001 Trond Eivind Glomsrød <teg@redhat.com>
a7e4a5
- Change Group to Applications/Databases
a7e4a5
a7e4a5
* Tue May  1 2001 Trond Eivind Glomsrød <teg@redhat.com>
a7e4a5
- 1.2216
a7e4a5
- Add doc files
a7e4a5
- Minor cleanups
a7e4a5
a7e4a5
* Thu Nov 30 2000 Trond Eivind Glomsrød <teg@redhat.com>
a7e4a5
- First cut