%define pkg_name SQL-Interpolate %define pkg_version 0.33 %define rpm_pkg_version 0.33 %define rpm_pkg_release 2.n0i.5 Summary: Simplified interpolation of Perl variables into SQL statements Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/SQL/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(Text::Balanced) >= 1.87 BuildRequires: perl(Filter::Simple) %description SQL::Interpolate makes it easy to interpolates Perl variables into SQL statements. It does so in a manner that is often more natural and less redundant, error-prone and restrictive than existing methods. SQL::Interpolate converts a list of intermixed SQL fragments and variables into a conventional SQL string and "list of bind values", which can be used directly or passed onto DBI. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path ex/} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes ex/ README %changelog * Thu Sep 20 2007 Marius Feraru - 0.33-2.n0i.5 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - rebuild on perl 5.8.8 * Sun Nov 13 2005 Marius Feraru 0.33-1.n0i.4 - version 0.33 * Thu Nov 10 2005 Marius Feraru 0.32-1.n0i.3 - version 0.32 * Thu Oct 06 2005 Marius Feraru 0.31-1.n0i.2 - version 0.31 * Fri Aug 05 2005 Marius Feraru 0.30-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7