.gear-rules | 2 + .../2d8fa137c802ffbe408fdf6617244fdf30967140 | 13 +++ .gear-tags/list | 1 + MANIFEST | 4 - Makefile.PL | 2 + SQLiteXS.h | 4 +- dbdimp.h | 2 +- perl-DBD-SQLite.spec | 91 ++++++++++++++++++++ t/43_fts3.t | 4 +- 9 files changed, 114 insertions(+), 9 deletions(-) diff --git a/.gear-rules b/.gear-rules new file mode 100644 index 0000000..3879f01 --- /dev/null +++ b/.gear-rules @@ -0,0 +1,2 @@ +tar: @version@:. name=DBD-SQLite-@version@-no-sqlite-src base=DBD-SQLite-@version@ +diff: @version@:. . name=perl-DBD-SQLite-@version@-@release@.patch diff --git a/.gear-tags/2d8fa137c802ffbe408fdf6617244fdf30967140 b/.gear-tags/2d8fa137c802ffbe408fdf6617244fdf30967140 new file mode 100644 index 0000000..f45b381 --- /dev/null +++ b/.gear-tags/2d8fa137c802ffbe408fdf6617244fdf30967140 @@ -0,0 +1,13 @@ +object 976376ac23049d9eb59a70e3032bf8423d9bd1ba +type commit +tag 1.31 +tagger Alexey Tourbin 1297796934 +0300 + +1.31 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iEYEABECAAYFAk1az0YACgkQfBKgtDjnu0ZAPACg0Jp7YJqbiLTyn0TRT0t4+i3j +gR8An1xh2a2NG8wag6459OmcjZvD8crn +=m0GK +-----END PGP SIGNATURE----- diff --git a/.gear-tags/list b/.gear-tags/list new file mode 100644 index 0000000..bc9a89d --- /dev/null +++ b/.gear-tags/list @@ -0,0 +1 @@ +2d8fa137c802ffbe408fdf6617244fdf30967140 1.31 diff --git a/MANIFEST b/MANIFEST index 0f043b0..e397a2e 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,7 +1,6 @@ Changes dbdimp.c dbdimp.h -fts3_tokenizer.h inc/Test/NoWarnings.pm inc/Test/NoWarnings/Warning.pm lib/DBD/SQLite.pm @@ -13,9 +12,6 @@ MANIFEST.SKIP ppport.h README SQLite.xs -sqlite3.c -sqlite3.h -sqlite3ext.h SQLiteXS.h t/01_compile.t t/02_logon.t diff --git a/Makefile.PL b/Makefile.PL index d53808c..0499fe1 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,6 +17,7 @@ sub OPTIONAL { return @_; } +=pod # Are we upgrading from a critically out of date version? eval { require DBD::SQLite; @@ -46,6 +47,7 @@ EOT } } }; +=cut # (ALT) don't look for existing installations # Because DBI generates a postamble at configure-time, we need # the required version of DBI very early. diff --git a/SQLiteXS.h b/SQLiteXS.h index 584fb61..925d079 100644 --- a/SQLiteXS.h +++ b/SQLiteXS.h @@ -18,7 +18,7 @@ #include "dbivport.h" #include -#include "sqlite3.h" -#include "fts3_tokenizer.h" +#include +#include #endif diff --git a/dbdimp.h b/dbdimp.h index 16e20b7..4bd0b2e 100644 --- a/dbdimp.h +++ b/dbdimp.h @@ -3,7 +3,7 @@ #define _DBDIMP_H 1 #include "SQLiteXS.h" -#include "sqlite3.h" +#include #define PERL_UNICODE_DOES_NOT_WORK_WELL \ (PERL_REVISION <= 5) && ((PERL_VERSION < 8) \ diff --git a/perl-DBD-SQLite.spec b/perl-DBD-SQLite.spec new file mode 100644 index 0000000..e470b0c --- /dev/null +++ b/perl-DBD-SQLite.spec @@ -0,0 +1,91 @@ +%define dist DBD-SQLite +Name: perl-%dist +Version: 1.31 +Release: alt1 + +Summary: SQLite driver for DBI interface in Perl +License: GPL or Artistic +Group: Development/Perl + +URL: %CPAN %dist +Source: %dist-%version-no-sqlite-src.tar +Patch: %name-%version-%release.patch + +# Automatically added by buildreq on Tue Feb 15 2011 (-bi) +BuildRequires: libsqlite3-devel perl-DBI-devel perl-Encode perl-Test-NoWarnings perl-autodie + +%description +DBD::SQLite is a DBI driver for SQLite database. +SQLite is a small C library that implements a self-contained, +embeddable, zero-configuration SQL database engine. + +%prep +%setup -q -n %dist-%version +%patch -p1 +rm -r inc/ + +%build +%perl_vendor_build LIBS=-lsqlite3 + +%install +%perl_vendor_install + +%files +%doc Changes README +%dir %perl_vendor_archlib/DBD + %perl_vendor_archlib/DBD/SQLite.pm +%dir %perl_vendor_archlib/DBD/SQLite +%doc %perl_vendor_archlib/DBD/SQLite/Cookbook.pod +%dir %perl_vendor_autolib/DBD +%dir %perl_vendor_autolib/DBD/SQLite + %perl_vendor_autolib/DBD/SQLite/SQLite.so + +%changelog +* Tue Feb 15 2011 Alexey Tourbin 1.31-alt1 +- 1.29 -> 1.31 +- t/43_fts3.t: disabled tests which require SQLITE_ENABLE_FTS3_PARENTHESIS + +* Mon Sep 20 2010 Alexey Tourbin 1.29-alt2 +- t/lib/Test.pm: updated from 1.31, fixes test failures +- built for perl-5.12 + +* Mon Apr 05 2010 Alexey Tourbin 1.29-alt1 +- 1.14 -> 1.29 + +* Sat May 24 2008 Alexey Tourbin 1.14-alt2 +- dbdimp.c: use sqlite3_reset() where appropriate (cpan #32100) + +* Tue Oct 16 2007 Alexey Tourbin 1.14-alt1 +- 1.13 -> 1.14 + +* Mon Aug 06 2007 Alexey Tourbin 1.13-alt3 +- applied debian fix for "Unknown named parameter" (deb #422209) + +* Sun Oct 22 2006 Alexey Tourbin 1.13-alt2 +- imported sources into git and built with gear +- backported fix for pragmas on empty db causing "Not an error" errors +- there's still a problem with Class::DBI, but I think I should also + fix Class::DBI for this time + +* Sat Sep 09 2006 Alexey Tourbin 1.13-alt1 +- 1.12 -> 1.13 + +* Mon Apr 17 2006 Alexey Tourbin 1.12-alt1 +- 1.09 -> 1.12 + +* Fri Jun 24 2005 Alexey Tourbin 1.09-alt1 +- 1.08 -> 1.09 + +* Fri Mar 04 2005 Alexey Tourbin 1.08-alt1 +- 1.07 -> 1.08 + +* Sun Dec 19 2004 Alexey Tourbin 1.07-alt1 +- 1.05 -> 1.07 +- manual pages not packaged (use perldoc) + +* Thu Sep 16 2004 Alexey Tourbin 1.05-alt1 +- 1.03 -> 1.05 + +* Fri Aug 13 2004 Alexey Tourbin 1.03-alt1 +- initial revision +- remove sqlite3 sources and use system-wide libsqlite3 diff --git a/t/43_fts3.t b/t/43_fts3.t index b408635..e72b19c 100644 --- a/t/43_fts3.t +++ b/t/43_fts3.t @@ -21,9 +21,9 @@ my @tests = ( ["foobar" ], ["moutons" => 1, 3 ], ['"qui gardait"' => 1 ], - ["moutons NOT lait" => 1 ], +# ["moutons NOT lait" => 1 ], ["il était" => 0 ], - ["(il OR elle) AND un*" => 0, 2 ], +# ["(il OR elle) AND un*" => 0, 2 ], ); BEGIN {