%define upstream_name CGI-Application-Plugin-DBH %define upstream_version 4.00 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Easy DBI access from CGI::Application License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(CGI::Application) BuildRequires: perl(DBD::Mock) BuildRequires: perl(DBI) BuildRequires: perl(Module::Build::Compat) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description CGI::Application::Plugin::DBH adds easy access to a DBI database handle to your CGI::Application modules. Lazy loading is used to prevent a database connection from being made if the 'dbh' method is not called during the request. In other words, the database connection is not created until it is actually needed. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes README %{_mandir}/man3/* %perl_vendorlib/CGI %changelog * Fri Feb 12 2010 Jérôme Quelin <jquelin@mandriva.org> 4.0.0-1mdv2010.1 + Revision: 504596 - rebuild using %%perl_convert_version * Mon Sep 14 2009 Thierry Vignaud <tvignaud@mandriva.com> 4.00-2mdv2010.0 + Revision: 440536 - rebuild * Wed Nov 26 2008 Guillaume Rousse <guillomovitch@mandriva.org> 4.00-1mdv2009.1 + Revision: 307068 - import perl-CGI-Application-Plugin-DBH * Wed Nov 26 2008 cpan2dist 4.00-1mdv - initial mdv release, generated with cpan2dist