%define pkg_name SQL-Abstract %define pkg_version 1.22 %define rpm_pkg_version 1.22 %define rpm_pkg_release 1.n0i.11 Summary: Generate SQL from Perl data structures Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/N/NW/NWIGER/%{pkg_name}-%{pkg_version}.tgz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Test)} %description This module was inspired by the excellent DBIx::Abstract. However, in using that module I found that what I really wanted to do was generate SQL, but still retain complete control over my statement handles and use the DBI interface. So, I set out to create an abstract SQL generation module. While based on the concepts used by DBIx::Abstract, there are several important differences, especially when it comes to WHERE clauses. I have modified the concepts used to make the SQL easier to generate from Perl data structures and, IMO, more intuitive. The underlying idea is for this module to do what you mean, based on the data structures you provide it. The big advantage is that you don't have to modify your code every time your data changes, as this module figures it out. %prep %setup -q -n %{pkg_name}-%{pkg_version} %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 README %changelog * Tue May 22 2007 Marius Feraru - 1.22-1.n0i.11 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 1.22 * Mon Mar 27 2006 Marius Feraru - 1.21-1.n0i.10 - version 1.21 * Tue Sep 06 2005 Marius Feraru 1.20-1.n0i.9 - version 1.20 * Sun Jul 24 2005 Marius Feraru 1.19-1.n0i.8 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:1.18-3.n0i.7 - version 1.18 * Sat Dec 04 2004 Marius Feraru 0:1.17-2.n0i.6 - version 1.17 * Fri Apr 30 2004 Marius Feraru 0:1.15-1.n0i.5 - automatic rebuild * Thu Apr 22 2004 Marius Feraru 0:1.15-1.n0i.4 - spec file (re?)created using N0i::CPAN::RPMizer/2004032101 - rebuild (perl 5.8.4) * Fri Jan 23 2004 Marius FERARU 0:1.15-0.n0i.3 - automatic rebuild (perl v.5.8.3) * Sat Jan 10 2004 Marius FERARU 0:1.15-0.n0i.2 - version 1.15 * Mon Nov 03 2003 Marius FERARU 0:1.13-0.n0i.1 - version 1.13 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001