%define version 4.050 %define release 1 Summary: A MySQL interface for perl Summary(ja): MySQL用のperlインターフェイス Name: perl-DBD-MySQL Version: %{version} Release: %{release}%{?_dist_release} License: GPL+ or Artistic Group: Development/Libraries Source: DBD-mysql-%{version}.tar.gz Source1: filter-requires-dbdmysql.sh URL: http://search.cpan.org/dist/DBD-mysql/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libmariadb-devel BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(DynaLoader) BuildRequires: perl(DBI) BuildRequires: perl(Devel::CheckLib) BuildRequires: zlib-devel Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl-DBI %description An implementation of DBI for MySQL for Perl. %description -l ja perlを使ったMySQL用のDBI # Provide perl-specific find-{provides,requires}. #define __find_provides /usr/lib/rpm/find-provides.perl #define __find_requires /usr/lib/rpm/find-requires.perl %define __perl_requires %{SOURCE1} %prep %setup -q -n DBD-mysql-%{version} # Correct file permissions find . -type f -exec chmod -x {} ';' %build # CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --testhost=localhost CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor --ssl make OPTIMIZE="$RPM_OPT_FLAGS" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} make DESTDIR=%{buildroot} pure_install find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check || : # Full test coverage requires a live MySQL database # make test %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc README ChangeLog TODO %{perl_vendorarch}/* %{_mandir}/*/* %changelog * Sat May 18 2019 Tomohiro "Tomo-p" KATO 4.050-1 - new upstream release. - rebuilt with perl-5.26. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO 4.027-1 - new upstream release. * Thu Mar 08 2012 MATSUBAYASHI Kohji - 4.020-1 - updated to 4.020-1 * Sat Apr 30 2011 Yoji TOYODA 4.006-5 - rebuild with perl-5.12.3 * Thu May 21 2009 Tomohiro "Tomo-p" KATO 4.006-4 - rebuilt with MySQL-5.1.34. * Wed Apr 08 2009 Shu KONNO 4.006-3 - spec in utf-8 * Thu May 1 2008 Tomohiro 'Tomo-p' KATO 4.006-2 - rebuilt with perl-5.10.0. * Wed Apr 23 2008 IWAI, Masaharu 4.006-1 - new upstream release - add missing changelog: 4.001-0vl1 * Sun Feb 4 2007 Ryoichi INAGAKI 4.001-0vl1 - updated to 4.001 * Sun Sep 10 2006 Ryoichi INAGAKI 3.0007-0vl1 - updated to 3.0007 - changed Group to Development/Libraries - installed files to vendor_perl * Mon Jan 10 2005 Satoshi MACHINO 2.9004-0vl1 - new upstream version(DBD-mysql-2.9004) - fixed spec file -- used rpm macros -- fixed package's dependencies -- built with perl-5.8.6, MySQL-4.0.21, perl-DBI-1.46 * Tue Oct 12 2004 MATSUBAYASHI Kohji 1.2219-0vl2 - rebuilt with perl-5.8.2 and MySQL-4.0.21 * Sat Feb 23 2002 Satoshi MACHINO 1.2219-0vl1 - updated Msql-Mysql-modules-1.2219 * Wed Dec 05 2001 Satoshi MACHINO 1.2216-1vl4 - added BuildRequires: perl >= 1:5.6.0, perl-DBI >= 1.15, zlib-devel * Mon Jun 18 2001 MATSUBAYASHI 'Shaolin' Kohji - rebuilt with perl-5.6.1 - Spec was written in Shift_JIS. Fixed. - modified %%files section * Fri Jun 15 2001 Satoshi MACHINO 1.2216-1vl2 - rebuild on perl-5.6.0 - removed perl version in Requires - changed mandir to /usr/share/man * Sun May 27 2001 Satoshi MACHINO 1.2216-1vl1 - build on Vine Linux * Tue May 1 2001 Trond Eivind Glomsr - 1.2216 - Add doc files - Minor cleanups * Thu Nov 30 2000 Trond Eivind Glomsr - First cut