2007-01-15 23:31:46 +00:00
|
|
|
#
|
2010-07-20 13:21:43 +00:00
|
|
|
# spec file for package perl-SQL-Statement (Version 1.28)
|
2007-01-15 23:31:46 +00:00
|
|
|
#
|
2010-01-11 15:53:48 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:46 +00:00
|
|
|
#
|
2009-06-17 22:15:59 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2007-01-15 23:31:46 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2010-07-20 13:21:43 +00:00
|
|
|
%bcond_with testsuite
|
2009-06-17 22:15:59 +00:00
|
|
|
|
2007-01-15 23:31:46 +00:00
|
|
|
Name: perl-SQL-Statement
|
2010-07-20 13:21:43 +00:00
|
|
|
%define cpan_name SQL-Statement
|
2010-02-10 23:53:09 +00:00
|
|
|
Summary: SQL parsing and processing engine
|
2010-07-20 13:21:43 +00:00
|
|
|
Version: 1.28
|
|
|
|
|
Release: 1
|
|
|
|
|
License: GPL+ or Artistic
|
2007-01-15 23:31:46 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-02-10 23:53:09 +00:00
|
|
|
Url: http://search.cpan.org/dist/SQL-Statement/
|
2010-07-20 13:21:43 +00:00
|
|
|
#Source: http://www.cpan.org/modules/by-module/SQL/SQL-Statement-%{version}.tar.gz
|
2010-04-05 16:48:56 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-07-20 13:21:43 +00:00
|
|
|
BuildArch: noarch
|
2010-04-05 16:48:56 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
%endif
|
2010-02-10 23:53:09 +00:00
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Clone) >= 0.30
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
2010-07-20 13:21:43 +00:00
|
|
|
# means perl-DBI >= 1.612
|
|
|
|
|
BuildRequires: perl(DBD::File) >= 0.39
|
|
|
|
|
BuildRequires: perl(DBI::DBD::SqlEngine) >= 0.01
|
2010-02-10 23:53:09 +00:00
|
|
|
BuildRequires: perl(Params::Util) >= 1.00
|
|
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.0
|
2010-04-05 16:48:56 +00:00
|
|
|
# for testsuite
|
2010-07-20 13:21:43 +00:00
|
|
|
%if %{with testsuite}
|
2010-04-05 16:48:56 +00:00
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
|
|
|
|
BuildRequires: perl(DBD::CSV)
|
2010-07-20 13:21:43 +00:00
|
|
|
%endif
|
2010-04-05 16:48:56 +00:00
|
|
|
#
|
|
|
|
|
Requires: perl = %{perl_version}
|
2010-02-10 23:53:09 +00:00
|
|
|
Requires: perl(Carp)
|
|
|
|
|
Requires: perl(Clone) >= 0.30
|
|
|
|
|
Requires: perl(Data::Dumper)
|
2010-07-20 13:21:43 +00:00
|
|
|
# means perl-DBI >= 1.612
|
|
|
|
|
Requires: perl(DBD::File) >= 0.39
|
|
|
|
|
Requires: perl(DBI::DBD::SqlEngine) >= 0.01
|
2010-02-10 23:53:09 +00:00
|
|
|
Requires: perl(Params::Util) >= 1.00
|
|
|
|
|
Requires: perl(Scalar::Util) >= 1.0
|
2010-04-05 16:48:56 +00:00
|
|
|
#
|
|
|
|
|
Recommends: perl(DBD::CSV)
|
2007-01-15 23:31:46 +00:00
|
|
|
|
|
|
|
|
%description
|
2010-02-10 23:53:09 +00:00
|
|
|
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
|
2010-07-20 13:21:43 +00:00
|
|
|
functions, implicit and explicit joins, complex nested search conditions,
|
2010-02-10 23:53:09 +00:00
|
|
|
and other features.
|
2007-01-15 23:31:46 +00:00
|
|
|
|
2010-07-20 13:21:43 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Jochen Wiedmann (original module as an XS (C) extension in 1998)
|
|
|
|
|
Jeff Zucker (since 2001)
|
|
|
|
|
Jens Rehsack (since 2008) <rehsackATcpan.org>
|
|
|
|
|
|
2007-01-15 23:31:46 +00:00
|
|
|
%prep
|
2010-04-05 16:48:56 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
# rpmlint wrong-file-end-of-line-encoding
|
|
|
|
|
dos2unix README
|
2010-07-20 13:21:43 +00:00
|
|
|
# rpmlint: spurious-executable-perm
|
|
|
|
|
%{__chmod} a-x Changes README
|
|
|
|
|
# rpmlint: script-without-shebang
|
|
|
|
|
find -name "*.pm" -exec %{__chmod} 0644 {} \;
|
2007-01-15 23:31:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2010-07-20 13:21:43 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
2010-04-05 16:48:56 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-01-15 23:31:46 +00:00
|
|
|
|
2010-04-05 16:48:56 +00:00
|
|
|
%check
|
|
|
|
|
%{__make} test
|
|
|
|
|
|
2007-01-15 23:31:46 +00:00
|
|
|
%install
|
2010-02-10 23:53:09 +00:00
|
|
|
%perl_make_install
|
2010-07-20 13:21:43 +00:00
|
|
|
# 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
|
2010-02-10 23:53:09 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
2007-01-15 23:31:46 +00:00
|
|
|
%clean
|
2010-04-05 16:48:56 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-15 23:31:46 +00:00
|
|
|
|
2010-07-20 13:21:43 +00:00
|
|
|
%files -f %{name}.files
|
2010-02-10 23:53:09 +00:00
|
|
|
%defattr(-,root,root,-)
|
2010-07-20 13:21:43 +00:00
|
|
|
%doc Changes README
|
2007-01-15 23:31:46 +00:00
|
|
|
|
2009-06-17 22:15:59 +00:00
|
|
|
%changelog
|