forked from pool/perl-SQL-Statement
- update to 1.33
[Bug fixes] * Move test dependencies to (unreleased) Bundle::Test::SQL::Statement to avoid circular dependencies * Fixed invalid check for escaped single quotes * Fixed unpermitted modification of array source for table creation (CREATE TABLE AS IMPORT(?),[[..],[..]]) * Fixing alias used in ORDER BY (RT#61384, thanks jvm) * Fixing ORDER BY behavior for multiple sort columns (slower, but guaranteed correct) [Improvements] * renamed fetch-method into fetch_row (keep fetch() as alias) and add a fetch_rows() to fetch all rows at once * Different accessors for direction of ORDER BY clause query part and it's boolean equivalent "desc" (0 or 1, respectively) * Add a lot of Pure-Perl DBD's as build dependency for testing (skip DBD::AnyData for now, because it seems to be broken - check for next release) [Misc] * Bump requirement of DBI to 1.616 * switch for fully external DBD tests from DBD::XBase to DBD::SQLite * Document another limitation (lacking implicit creating temp table during processing a query using the same table with different aliases twice) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-SQL-Statement?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
ad8b3434ee
commit
9fa84a5745
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl-SQL-Statement (Version 1.31)
|
||||
# spec file for package perl-SQL-Statement (Version 1.33)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -15,51 +15,31 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%bcond_with opt
|
||||
|
||||
Name: perl-SQL-Statement
|
||||
%define cpan_name SQL-Statement
|
||||
Summary: SQL parsing and processing engine
|
||||
Version: 1.31
|
||||
Version: 1.33
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
%define cpan_name SQL-Statement
|
||||
Summary: SQL parsing and processing engine
|
||||
Url: http://search.cpan.org/dist/SQL-Statement/
|
||||
#Source: http://www.cpan.org/modules/by-module/SQL/SQL-Statement-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/R/RE/REHSACK/SQL-Statement-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Clone) >= 0.30
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
# means perl-DBI >= 1.612
|
||||
BuildRequires: perl(DBD::File) >= 0.39
|
||||
BuildRequires: perl(DBI::DBD::SqlEngine) >= 0.01
|
||||
BuildRequires: perl(Params::Util) >= 1.00
|
||||
BuildRequires: perl(Scalar::Util) >= 1.0
|
||||
BuildRequires: perl(Test::Simple) >= 0.90
|
||||
# optional for build
|
||||
%if %{with opt}
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
||||
BuildRequires: perl(DBD::CSV)
|
||||
%endif
|
||||
#
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Clone) >= 0.30
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(Params::Util) >= 1.00
|
||||
Requires: perl(Scalar::Util) >= 1.0
|
||||
#
|
||||
Recommends: perl(DBD::CSV)
|
||||
# means perl-DBI >= 1.612
|
||||
Recommends: perl(DBD::File) >= 0.39
|
||||
Recommends: perl(DBI::DBD::SqlEngine) >= 0.01
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The SQL::Statement module implements a pure Perl SQL parsing and execution
|
||||
@@ -68,20 +48,20 @@ many features including column and table aliases, built-in and user-defined
|
||||
functions, implicit and explicit joins, complex nested search conditions,
|
||||
and other features.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Jochen Wiedmann (original module as an XS (C) extension in 1998)
|
||||
Jeff Zucker (since 2001)
|
||||
Jens Rehsack (since 2008) <rehsackATcpan.org>
|
||||
SQL::Statement is a small embeddable Database Management System (DBMS).
|
||||
This means that it provides all of the services of a simple DBMS except
|
||||
that instead of a persistent storage mechanism, it has two things: 1) an
|
||||
in-memory storage mechanism that allows you to prepare, execute, and fetch
|
||||
from SQL statements using temporary tables and 2) a set of software sockets
|
||||
where any author can plug in any storage mechanism.
|
||||
|
||||
There are three main uses for SQL::Statement. One or another (hopefully not
|
||||
all) may be irrelevant for your needs: 1) to access and manipulate data in
|
||||
CSV, XML, and other formats 2) to build your own DBD for a new data source
|
||||
3) to parse and examine the structure of SQL statements.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
# rpmlint wrong-file-end-of-line-encoding
|
||||
%{__perl} -p -i -e "s|\r\n|\n|" README
|
||||
# rpmlint: spurious-executable-perm
|
||||
%{__chmod} a-x Changes README
|
||||
# rpmlint: script-without-shebang
|
||||
find -name "*.pm" -exec %{__chmod} 0644 {} \;
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@@ -92,18 +72,14 @@ find -name "*.pm" -exec %{__chmod} 0644 {} \;
|
||||
|
||||
%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_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes README xt
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user