# # spec file for package perl-SQL-Abstract (Version 1.60) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: perl-SQL-Abstract %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Generate SQL from Perl data structures Version: 1.60 Release: 1 License: Artistic Group: Development/Libraries/Perl URL: http://search.cpan.org/dist/SQL-Abstract Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::Pod) >= 1.14 BuildRequires: perl(Test::Pod::Coverage) >= 1.04 BuildRequires: perl(Pod::Coverage) >= 0.19 BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Warn) BuildRequires: perl(Clone) >= 0.31 BuildRequires: perl(List::Util) BuildRequires: perl(Scalar::Util) Requires: perl = %{perl_version} Requires: perl(List::Util) Requires: perl(Scalar::Util) Provides: %{cpan_name} %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. Author: Laurent Dami, Norbert Buchmuller Peter Rabbitson %prep %setup -q -n %{cpan_name}-%{version} %build SQLATEST_TESTER=1 TEST_POD=1 perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__make} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean # clean up the hard disc after build %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root) %doc Changes %changelog