Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-DBD-CSV for openSUSE:Factory checked in at 2021-02-15 23:14:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-DBD-CSV (Old) and /work/SRC/openSUSE:Factory/.perl-DBD-CSV.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DBD-CSV" Mon Feb 15 23:14:46 2021 rev:38 rq:871188 version:0.58 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-DBD-CSV/perl-DBD-CSV.changes 2020-12-11 20:16:41.852659189 +0100 +++ /work/SRC/openSUSE:Factory/.perl-DBD-CSV.new.28504/perl-DBD-CSV.changes 2021-02-15 23:16:55.667452039 +0100 @@ -1,0 +2,13 @@ +Thu Feb 11 03:07:02 UTC 2021 - Tina M??ller <[email protected]> + +- updated to 0.58 + see /usr/share/doc/packages/perl-DBD-CSV/ChangeLog + + 0.58 - 2021-02-10, H.Merijn Brand + * It's 2021 + * "class" is not a CSV attribute to pass on (issue#8) + + 0.57 - 2020-12-17, H.Merijn Brand + * META fixes + +------------------------------------------------------------------- Old: ---- DBD-CSV-0.56.tgz New: ---- DBD-CSV-0.58.tgz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-DBD-CSV.spec ++++++ --- /var/tmp/diff_new_pack.krzDiI/_old 2021-02-15 23:16:56.239452894 +0100 +++ /var/tmp/diff_new_pack.krzDiI/_new 2021-02-15 23:16:56.243452899 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-DBD-CSV # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name DBD-CSV Name: perl-DBD-CSV -Version: 0.56 +Version: 0.58 Release: 0 -%define cpan_name DBD-CSV Summary: DBI driver for CSV files License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{version}.tgz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(DBD::File) >= 0.42 @@ -44,7 +42,7 @@ Recommends: perl(DBI) >= 1.643 Recommends: perl(SQL::Statement) >= 1.414 Recommends: perl(Test::More) >= 1.302183 -Recommends: perl(Text::CSV_XS) >= 1.44 +Recommends: perl(Text::CSV_XS) >= 1.45 %{perl_requires} %description @@ -58,12 +56,12 @@ and DBD::File for details on the base class DBD::File. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -74,7 +72,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc ChangeLog CONTRIBUTING.md examples README %changelog ++++++ DBD-CSV-0.56.tgz -> DBD-CSV-0.58.tgz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/ChangeLog new/DBD-CSV-0.58/ChangeLog --- old/DBD-CSV-0.56/ChangeLog 2020-12-05 10:41:55.000000000 +0100 +++ new/DBD-CSV-0.58/ChangeLog 2021-02-10 13:18:34.000000000 +0100 @@ -1,3 +1,10 @@ +0.58 - 2021-02-10, H.Merijn Brand + * It's 2021 + * "class" is not a CSV attribute to pass on (issue#8) + +0.57 - 2020-12-17, H.Merijn Brand + * META fixes + 0.56 - 2020-12-05, H.Merijn Brand * Fix Changes (add missing 0.54) * Bugtrackter => github issues diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/MANIFEST new/DBD-CSV-0.58/MANIFEST --- old/DBD-CSV-0.56/MANIFEST 2020-12-05 10:46:17.000000000 +0100 +++ new/DBD-CSV-0.58/MANIFEST 2021-02-10 13:21:30.000000000 +0100 @@ -31,6 +31,7 @@ t/71_csv-ext.t t/72_csv-schema.t t/73_csv-case.t +t/74-class.t t/80_rt.t t/82_free_unref_scalar.t t/85_error.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/META.json new/DBD-CSV-0.58/META.json --- old/DBD-CSV-0.56/META.json 2020-12-05 10:46:17.000000000 +0100 +++ new/DBD-CSV-0.58/META.json 2021-02-10 13:21:31.000000000 +0100 @@ -1,78 +1,81 @@ { - "dynamic_config" : 1, "generated_by" : "Author", + "abstract" : "DBI driver for CSV files", + "resources" : { + "repository" : { + "type" : "git", + "web" : "https://github.com/perl5-dbi/DBD-CSV", + "url" : "https://github.com/perl5-dbi/DBD-CSV" + }, + "bugtracker" : { + "web" : "https://github.com/perl5-dbi/DBD-CSV/issues" + }, + "license" : [ + "http://dev.perl.org/licenses/" + ] + }, + "author" : [ + "Jochen Wiedmann", + "Jeff Zucker", + "H.Merijn Brand <[email protected]>", + "Jens Rehsack <[email protected]>" + ], + "version" : "0.58", + "meta-spec" : { + "version" : 2, + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec" + }, "prereqs" : { "test" : { + "recommends" : { + "Test::More" : "1.302183" + }, "requires" : { - "Cwd" : "0", "Test::Harness" : "0", - "Test::More" : "0.90", + "Cwd" : "0", + "Encode" : "0", "charnames" : "0", - "Encode" : "0" - }, - "recommends" : { - "Test::More" : "1.302183" + "Test::More" : "0.90" } }, - "build" : { + "configure" : { "requires" : { - "Config" : "0" + "DBI" : "1.628", + "ExtUtils::MakeMaker" : "0" } }, - "configure" : { + "build" : { "requires" : { - "ExtUtils::MakeMaker" : "0", - "DBI" : "1.628" + "Config" : "0" } }, "runtime" : { - "recommends" : { - "Text::CSV_XS" : "1.44", - "DBD::File" : "0.44", - "SQL::Statement" : "1.414", - "DBI" : "1.643" - }, "requires" : { - "SQL::Statement" : "1.405", + "Text::CSV_XS" : "1.01", "perl" : "5.008001", + "SQL::Statement" : "1.405", "DBD::File" : "0.42", - "DBI" : "1.628", - "Text::CSV_XS" : "1.01" + "DBI" : "1.628" + }, + "recommends" : { + "SQL::Statement" : "1.414", + "Text::CSV_XS" : "1.45", + "DBD::File" : "0.44", + "DBI" : "1.643" } } }, - "x_installdirs" : "site", - "name" : "DBD-CSV", - "release_status" : "stable", - "meta-spec" : { - "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : 2 - }, - "author" : [ - "Jochen Wiedmann", - "Jeff Zucker", - "H.Merijn Brand <[email protected]>", - "Jens Rehsack <[email protected]>" - ], - "resources" : { - "license" : [ - "http://dev.perl.org/licenses/" - ], - "repository" : { - "web" : "https://github.com/perl5-dbi/DBD-CSV", - "type" : "git", - "url" : "https://github.com/perl5-dbi/DBD-CSV" - } - }, - "version" : "0.56", "license" : [ "perl_5" ], - "abstract" : "DBI driver for CSV files", + "name" : "DBD-CSV", + "x_installdirs" : "site", + "release_status" : "stable", + "dynamic_config" : 1, "provides" : { "DBD::CSV" : { - "file" : "lib/DBD/CSV.pm", - "version" : "0.56" + "version" : "0.58", + "file" : "lib/DBD/CSV.pm" } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/META.yml new/DBD-CSV-0.58/META.yml --- old/DBD-CSV-0.56/META.yml 2020-12-05 10:46:17.000000000 +0100 +++ new/DBD-CSV-0.58/META.yml 2021-02-10 13:21:31.000000000 +0100 @@ -20,13 +20,13 @@ provides: DBD::CSV: file: lib/DBD/CSV.pm - version: '0.56' + version: '0.58' recommends: DBD::File: '0.44' DBI: '1.643' SQL::Statement: '1.414' Test::More: '1.302183' - Text::CSV_XS: '1.44' + Text::CSV_XS: '1.45' requires: Cwd: 0 DBD::File: '0.42' @@ -39,7 +39,8 @@ charnames: 0 perl: '5.008001' resources: + bugtracker: https://github.com/perl5-dbi/DBD-CSV/issues license: http://dev.perl.org/licenses/ repository: https://github.com/perl5-dbi/DBD-CSV -version: '0.56' +version: '0.58' x_installdirs: site diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/Makefile.PL new/DBD-CSV-0.58/Makefile.PL --- old/DBD-CSV-0.56/Makefile.PL 2020-07-24 11:52:50.000000000 +0200 +++ new/DBD-CSV-0.58/Makefile.PL 2021-01-01 11:02:05.000000000 +0100 @@ -1,6 +1,6 @@ # -*- perl -*- -# Copyright (c) 2009-2020 H.Merijn Brand +# Copyright (c) 2009-2021 H.Merijn Brand require 5.008001; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/README new/DBD-CSV-0.58/README --- old/DBD-CSV-0.56/README 2020-07-09 13:41:56.000000000 +0200 +++ new/DBD-CSV-0.58/README 2021-01-01 11:02:09.000000000 +0100 @@ -9,7 +9,7 @@ values). Copying - Copyright (C) 2009-2020 by H.Merijn Brand + Copyright (C) 2009-2021 by H.Merijn Brand Copyright (C) 2004-2009 by Jeff Zucker Copyright (C) 1998-2004 by Jochen Wiedmann diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/cpanfile new/DBD-CSV-0.58/cpanfile --- old/DBD-CSV-0.56/cpanfile 2020-12-05 10:46:17.000000000 +0100 +++ new/DBD-CSV-0.58/cpanfile 2021-02-10 13:21:31.000000000 +0100 @@ -6,7 +6,7 @@ recommends "DBD::File" => "0.44"; recommends "DBI" => "1.643"; recommends "SQL::Statement" => "1.414"; -recommends "Text::CSV_XS" => "1.44"; +recommends "Text::CSV_XS" => "1.45"; on "configure" => sub { requires "DBI" => "1.628"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/lib/Bundle/DBD/CSV.pm new/DBD-CSV-0.58/lib/Bundle/DBD/CSV.pm --- old/DBD-CSV-0.56/lib/Bundle/DBD/CSV.pm 2020-10-24 12:46:41.000000000 +0200 +++ new/DBD-CSV-0.58/lib/Bundle/DBD/CSV.pm 2021-01-01 11:01:37.000000000 +0100 @@ -5,7 +5,7 @@ use strict; use warnings; -our $VERSION = "1.14"; +our $VERSION = "1.15"; 1; @@ -23,13 +23,13 @@ DBI 1.643 -Text::CSV_XS 1.44 +Text::CSV_XS 1.45 SQL::Statement 1.414 DBD::File 0.44 -DBD::CSV 0.56 +DBD::CSV 0.58 =head1 DESCRIPTION @@ -44,7 +44,7 @@ =head1 COPYRIGHT AND LICENSE -Copyright (C) 2009-2020 by H.Merijn Brand +Copyright (C) 2009-2021 by H.Merijn Brand Copyright (C) 2004-2009 by Jeff Zucker Copyright (C) 1998-2004 by Jochen Wiedmann diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/lib/DBD/CSV.pm new/DBD-CSV-0.58/lib/DBD/CSV.pm --- old/DBD-CSV-0.56/lib/DBD/CSV.pm 2020-07-27 15:16:52.000000000 +0200 +++ new/DBD-CSV-0.58/lib/DBD/CSV.pm 2021-02-10 10:05:52.000000000 +0100 @@ -15,8 +15,8 @@ require DBD::File; require IO::File; -our @f_SHORT = qw( file dir dir_search ext lock lockfile schema encoding ); -our @c_SHORT = qw( class eof +our @f_SHORT = qw( class file dir dir_search ext lock lockfile schema encoding ); +our @c_SHORT = qw( eof eol sep_char quote_char escape_char binary decode_utf8 auto_diag diag_verbose blank_is_undef empty_is_undef allow_whitespace allow_loose_quotes allow_loose_escapes allow_unquoted_escape @@ -31,7 +31,7 @@ @ISA = qw( DBD::File ); -$VERSION = "0.56"; +$VERSION = "0.58"; $ATTRIBUTION = "DBD::CSV $DBD::CSV::VERSION by H.Merijn Brand"; $err = 0; # holds error code for DBI::err @@ -943,6 +943,10 @@ C<Text::CSV_XS> does and that C<Text::CSV> is probably about 100 times slower than C<Text::CSV_XS>. +In order to use the specified class other than C<Text::CSV_XS>, it needs +to be loaded before use. C<DBD::CSV> does not C<require>/C<use> the +specified class itself. + =back =head2 Text::CSV_XS specific attributes @@ -1337,7 +1341,7 @@ =head1 COPYRIGHT AND LICENSE -Copyright (C) 2009-2020 by H.Merijn Brand +Copyright (C) 2009-2021 by H.Merijn Brand Copyright (C) 2004-2009 by Jeff Zucker Copyright (C) 1998-2004 by Jochen Wiedmann diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/t/51_commit.t new/DBD-CSV-0.58/t/51_commit.t --- old/DBD-CSV-0.56/t/51_commit.t 2018-04-05 08:37:27.000000000 +0200 +++ new/DBD-CSV-0.58/t/51_commit.t 2021-02-10 13:20:31.000000000 +0100 @@ -15,11 +15,13 @@ [ "name", "CHAR", 64, 0 ], ); +my $nano_msg = "SQL::Nano does not support count (*)"; sub RowCount { my ($dbh, $tbl) = @_; if ($nano) { - diag ("SQL::Nano does not support count (*)"); + $nano_msg and diag ($nano_msg); + $nano_msg = ""; return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DBD-CSV-0.56/t/74-class.t new/DBD-CSV-0.58/t/74-class.t --- old/DBD-CSV-0.56/t/74-class.t 1970-01-01 01:00:00.000000000 +0100 +++ new/DBD-CSV-0.58/t/74-class.t 2021-02-10 10:02:56.000000000 +0100 @@ -0,0 +1,46 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Test::More; + +BEGIN { use_ok ("DBI"); } + +my $tbl = "foo_class$$"; +my $fnm = "$tbl.csv"; + +END { unlink $fnm; } + +my @fail; +foreach my $class ("", "Text::CSV_XS", "Text::CSV", "Text::CSV_SX") { + my %opt = (f_ext => ".csv/r"); + if ($class) { + $opt{csv_class} = $class; + eval "require $class"; # Ignore errors, let the DBD fail + } + # Connect won't fail ... + ok (my $dbh = DBI->connect ("dbi:CSV:", + undef, undef, \%opt), "Connect $class"); + my @warn; + my $sth = eval { + local $SIG{__WARN__} = sub { push @warn => @_ }; + $dbh->do ("create table $tbl (c_tbl integer)"); + }; + if ($@ || !$sth) { + note ("$class is not supported"); + like ("@warn", qr{"new" via package "$class"}); + push @fail => $class; + next; + } + $class and note (join "-" => $class, $class->VERSION); + + ok ($dbh->do ("drop table $tbl"), "drop table"); + ok (!-f $fnm, "is removed"); + + ok ($dbh->disconnect, "disconnect"); + undef $dbh; + } + +ok (@fail == 1 || @fail == 2, "2 or 3 out of 4 should pass"); + +done_testing ();
