From 07b46d6fb48c2466d3ab29e2acee7475f66343ef88119f3a18574e90b373ab52 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 20:06:23 +0000 Subject: [PATCH] Accepting request 297345 from devel:languages:perl:autoupdate - updated to 0.36 see /usr/share/doc/packages/perl-DBD-SQLite2/Changes - remove obsolete patches perl-DBD-SQLite2-no-return-in-nonvoid-function.patch perl-DBD-SQLite2-fetchrow.patch OBS-URL: https://build.opensuse.org/request/show/297345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-SQLite2?expand=0&rev=5 --- DBD-SQLite2-0.33.tar.gz | 3 -- DBD-SQLite2-0.36.tar.gz | 3 ++ cpanspec.yml | 20 +++++++++ perl-DBD-SQLite2-fetchrow.patch | 19 --------- ...QLite2-no-return-in-nonvoid-function.patch | 12 ------ perl-DBD-SQLite2.changes | 9 ++++ perl-DBD-SQLite2.spec | 42 ++++++++----------- 7 files changed, 50 insertions(+), 58 deletions(-) delete mode 100644 DBD-SQLite2-0.33.tar.gz create mode 100644 DBD-SQLite2-0.36.tar.gz create mode 100644 cpanspec.yml delete mode 100644 perl-DBD-SQLite2-fetchrow.patch delete mode 100644 perl-DBD-SQLite2-no-return-in-nonvoid-function.patch diff --git a/DBD-SQLite2-0.33.tar.gz b/DBD-SQLite2-0.33.tar.gz deleted file mode 100644 index 9262f5d..0000000 --- a/DBD-SQLite2-0.33.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2b493916adc76bd152916c0d9a28ef41cd251e5ba88b43ce3e9a5789b44e6b4 -size 363277 diff --git a/DBD-SQLite2-0.36.tar.gz b/DBD-SQLite2-0.36.tar.gz new file mode 100644 index 0000000..dd36143 --- /dev/null +++ b/DBD-SQLite2-0.36.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1715f8e6dfd6e1fe34ae5c8d8b15e3d856b29e5416d6b02d5575ff55f4411e60 +size 371022 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b320f5 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-DBD-SQLite2-fetchrow.patch b/perl-DBD-SQLite2-fetchrow.patch deleted file mode 100644 index 9fa2b01..0000000 --- a/perl-DBD-SQLite2-fetchrow.patch +++ /dev/null @@ -1,19 +0,0 @@ -Author: Niko Tyni -Description: Fix segfault when fetchrow() is called again after it has -returned an empty list once. (#317453) -If there is a reason upstream has commented out the check -for an active handle, he's not telling it. (CPAN #16451) ---- a/dbdimp.c -+++ b/dbdimp.c -@@ -473,11 +473,9 @@ sqlite2_st_fetch (SV *sth, imp_sth_t *im - /* warn("current_entry == %d\nnumFields == %d\nnrow == %d", - current_entry, numFields, imp_sth->nrow); */ - -- /* - if (!DBIc_ACTIVE(imp_sth)) { - return Nullav; - } -- */ - - if ((imp_sth->retval == SQLITE_DONE) || (imp_sth->retval == SQLITE_ERROR)) { - sqlite2_st_finish(sth, imp_sth); diff --git a/perl-DBD-SQLite2-no-return-in-nonvoid-function.patch b/perl-DBD-SQLite2-no-return-in-nonvoid-function.patch deleted file mode 100644 index d0f0895..0000000 --- a/perl-DBD-SQLite2-no-return-in-nonvoid-function.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: DBD-SQLite2-0.33/dbdimp.c -=================================================================== ---- DBD-SQLite2-0.33.orig/dbdimp.c -+++ DBD-SQLite2-0.33/dbdimp.c -@@ -459,6 +459,7 @@ sqlite2_bind_ph (SV *sth, imp_sth_t *imp - else { - av_store(imp_sth->params, SvIV(param) - 1, SvREFCNT_inc(value)); - } -+ return -1; - } - - AV * diff --git a/perl-DBD-SQLite2.changes b/perl-DBD-SQLite2.changes index f4c1594..09286bb 100644 --- a/perl-DBD-SQLite2.changes +++ b/perl-DBD-SQLite2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Apr 16 19:40:28 UTC 2015 - coolo@suse.com + +- updated to 0.36 + see /usr/share/doc/packages/perl-DBD-SQLite2/Changes +- remove obsolete patches + perl-DBD-SQLite2-no-return-in-nonvoid-function.patch + perl-DBD-SQLite2-fetchrow.patch + ------------------------------------------------------------------- Thu Jun 7 17:51:46 UTC 2012 - lars@linux-schulserver.de diff --git a/perl-DBD-SQLite2.spec b/perl-DBD-SQLite2.spec index 3b9bc39..1def6f4 100644 --- a/perl-DBD-SQLite2.spec +++ b/perl-DBD-SQLite2.spec @@ -1,7 +1,7 @@ # # spec file for package perl-DBD-SQLite2 # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,49 +17,48 @@ Name: perl-DBD-SQLite2 -Version: 0.33 +Version: 0.36 Release: 0 -%define cpan_name DBD-SQLite2 +%define cpan_name DBD-SQLite2 Summary: Self Contained RDBMS in a DBI Driver (sqlite 2.x) -License: GPL-1.0+ or Artistic-1.0 +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/DBD-SQLite2/ -#Source: http://www.cpan.org/authors/id/M/MS/MSERGEANT/DBD-SQLite2-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz -Patch0: %{name}-fetchrow.patch -Patch1: %{name}-no-return-in-nonvoid-function.patch +Source0: http://www.cpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: sqlite2-devel -BuildRequires: perl(DBI) >= 1.21 -BuildRequires: perl(Test::More) -Requires: perl(DBI) >= 1.21 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl(DBI) >= 1.625 +Requires: perl(DBI) >= 1.625 +Recommends: perl(DBD::SQLite) >= 1.37 +Recommends: perl(DBI) >= 1.625 %{perl_requires} %description SQLite is a public domain RDBMS database engine that you can find at -http://www.hwaci.com/sw/sqlite/. +http://www.sqlite.org/. Rather than ask you to install SQLite first, because SQLite is public domain, DBD::SQLite2 includes the entire thing in the distribution. So in order to get a fast transaction capable RDBMS working for your perl project you simply have to install this module, and *nothing* else. -SQLite supports the following features: +For real work please use the updated the DBD::SQLite manpage driver with +the up-to-date sqlite3 backend. SQLite2 supports the following features: * Implements a large subset of SQL92 - See http://www.hwaci.com/sw/sqlite/lang.html for details. + See http://www.sqlite.org/lang.html for details. * A complete DB in a single disk file Everything for your database is stored in a single disk file, making it - easier to move things around than with DBD::CSV. + easier to move things around than with the DBD::CSV manpage. * Atomic commit and rollback - Yes, DBD::SQLite2 is small and light, but it supports full transactions! + Yes, DBD::SQLite2 is small and light, but it supports full transactions * Extensible @@ -72,8 +71,6 @@ details on how to use DBI itself. %prep %setup -q -n %{cpan_name}-%{version} -%patch0 -p1 -%patch1 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -87,11 +84,8 @@ details on how to use DBI itself. %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes README %changelog