%global pkg_name SQL-Interp %global pkg_version 1.05 %global rpm_pkg_version 1.05 %global rpm_pkg_release 1.n0i.3 Summary: Interpolate Perl variables into SQL with DBI 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/authors/id/M/MA/MARKSTOS/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(DBI) %if %{!?_without_test:1}0 # optional dependencies BuildRequires: perl(Text::Balanced) >= 1.87 BuildRequires: perl(Filter::Simple) BuildRequires: perl(Scalar::Util) %endif %description SQL::Interp converts a list of intermixed SQL fragments and variable references into a conventional SQL string and list of bind values suitable for passing onto DBI. This simple technique creates database calls that are simpler to create and easier to read, while still giving developers full access to custom SQL. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path ex/} %build %{perl_build} %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 * Sun Nov 18 2007 Marius Feraru - 1.05-1.n0i.3 - version 1.05 - spec update (new reb00t build tools) - dropped our %%prep tweaks (upstream seems to have acted on these) * Sun Oct 07 2007 Marius Feraru - 1.02-1.n0i.2 - version 1.02 * Sun Sep 09 2007 Marius Feraru - 1.01-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - version 1.01