Name: perl-DBD-Mock Version: 1.34 Release: 1%{?dist} Summary: Mock database driver for testing License: GPL or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/DBD-Mock/ Source0: http://www.cpan.org/modules/by-module/DBD/DBD-Mock-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 1:5.6.0 BuildRequires: perl(DBI) >= 1.3 BuildRequires: perl(Module::Build) Requires: perl(DBI) >= 1.3 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %if "%fedora" >= "7" BuildRequires: perl-devel %endif %description If you need to test a framework that uses DBI, particularly a framework that uses different types of persistence schemes, then it may be useful to simply verify what the framework is trying to do -- ensure the right SQL is generated and that the correct parameters are bound. DBD::Mock makes it easy to just modify your configuration (presumably held outside your code) and just use it instead of DBD::Foo (like DBD::Pg or DBD::mysql) in your framework. %prep %setup -q -n DBD-Mock-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf %{buildroot} ./Build install destdir=%{buildroot} create_packlist=0 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} %{buildroot}/* %check ./Build test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Mar 16 2007 Andreas Thienemann 1.34-1 - Specfile autogenerated by cpanspec 1.69.1. - Cleaned up for FE