# # spec file for package perl-SQL-Statement (Version 1.27) # # Copyright (c) 2010 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 %bcond_with testsuite Name: perl-SQL-Statement %define cpan_name SQL-Statement Summary: SQL parsing and processing engine Version: 1.27 Release: 1 License: GPLv1+, Artistic License Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/SQL-Statement/ #Source: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/SQL-Statement-1.25.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: dos2unix BuildRequires: perl %if 0%{?suse_version} < 1120 BuildRequires: perl-macros %endif BuildRequires: perl(Carp) BuildRequires: perl(Clone) >= 0.30 BuildRequires: perl(Data::Dumper) # means perl-DBI >= 1.609 BuildRequires: perl(DBD::File) >= 0.37 BuildRequires: perl(Params::Util) >= 1.00 BuildRequires: perl(Scalar::Util) >= 1.0 # for testsuite %if %{with testsuite} BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.00 BuildRequires: perl(DBD::CSV) %endif # Requires: perl = %{perl_version} Requires: perl(Carp) Requires: perl(Clone) >= 0.30 Requires: perl(Data::Dumper) # means perl-DBI >= 1.609 Requires: perl(DBD::File) >= 0.37 Requires: perl(Params::Util) >= 1.00 Requires: perl(Scalar::Util) >= 1.0 # Recommends: perl(DBD::CSV) # rpmlint: self-obsoletion p_sqlst obsoletes p_sqlst #Provides: p_sqlst #Obsoletes: p_sqlst %description The SQL::Statement module implements a pure Perl SQL parsing and execution engine. While it by no means implements full ANSI standard, it does support many features including column and table aliases, built-in and user-defined functions, implicit and explicit joins, complexly nested search conditions, and other features. %prep %setup -q -n %{cpan_name}-%{version} # rpmlint wrong-file-end-of-line-encoding dos2unix README %build %{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__make} %{?_smp_mflags} chmod a-x Changes Todo %check %{__make} test %install %perl_make_install # do not perl_process_packlist (noarch) # remove .packlist file %{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch # remove perllocal.pod file %{__rm} -rf $RPM_BUILD_ROOT%perl_archlib %perl_gen_filelist # fix file perm find $RPM_BUILD_ROOT -name "*.pm" -exec chmod 644 {} \; %clean %{__rm} -rf $RPM_BUILD_ROOT %files -f %name.files %defattr(-,root,root,-) %doc Changes README Todo %changelog