Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-DateTime-Format-MySQL for 
openSUSE:Factory checked in at 2021-06-02 22:11:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DateTime-Format-MySQL (Old)
 and      /work/SRC/openSUSE:Factory/.perl-DateTime-Format-MySQL.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-DateTime-Format-MySQL"

Wed Jun  2 22:11:46 2021 rev:12 rq:896692 version:0.0701

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-DateTime-Format-MySQL/perl-DateTime-Format-MySQL.changes
    2016-02-17 12:19:41.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-DateTime-Format-MySQL.new.1898/perl-DateTime-Format-MySQL.changes
  2021-06-02 22:12:13.804154600 +0200
@@ -1,0 +2,15 @@
+Sun May 23 03:06:53 UTC 2021 - Tina M??ller <[email protected]>
+
+- updated to 0.0701
+   see /usr/share/doc/packages/perl-DateTime-Format-MySQL/Changes
+
+  0.0701  2021-05-22
+
+  - Fix versioning, reindex
+
+  0.07    2021-05-21
+
+  - if microseconds are set on provided DateTime object to time_format,
+    use them. Fixes RT #136549
+
+-------------------------------------------------------------------

Old:
----
  DateTime-Format-MySQL-0.06.tar.gz

New:
----
  DateTime-Format-MySQL-0.0701.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-DateTime-Format-MySQL.spec ++++++
--- /var/tmp/diff_new_pack.PhMdlj/_old  2021-06-02 22:12:14.264153462 +0200
+++ /var/tmp/diff_new_pack.PhMdlj/_new  2021-06-02 22:12:14.268153452 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-DateTime-Format-MySQL
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -12,22 +12,20 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define cpan_name DateTime-Format-MySQL
 Name:           perl-DateTime-Format-MySQL
-Version:        0.06
+Version:        0.0701
 Release:        0
-%define cpan_name DateTime-Format-MySQL
 Summary:        Parse and format MySQL dates and times
-License:        Artistic-1.0 or GPL-1.0+
-Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/DateTime-Format-MySQL/
-Source0:        
http://www.cpan.org/authors/id/X/XM/XMIKEW/%{cpan_name}-%{version}.tar.gz
+License:        Artistic-1.0 OR GPL-1.0-or-later
+URL:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(DateTime)
@@ -44,10 +42,10 @@
 produce a string representing it in the MySQL format.
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version}
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build build flags=%{?_smp_mflags}
 
 %check
@@ -58,7 +56,7 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
 
 %changelog

++++++ DateTime-Format-MySQL-0.06.tar.gz -> DateTime-Format-MySQL-0.0701.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.06/Changes 
new/DateTime-Format-MySQL-0.0701/Changes
--- old/DateTime-Format-MySQL-0.06/Changes      2016-02-12 15:41:14.000000000 
+0100
+++ new/DateTime-Format-MySQL-0.0701/Changes    2021-05-22 15:32:29.000000000 
+0200
@@ -1,3 +1,11 @@
+0.0701  2021-05-22
+
+- Fix versioning, reindex
+
+0.07    2021-05-21
+
+- if microseconds are set on provided DateTime object to time_format,
+  use them. Fixes RT #136549
 
 0.06    2016-02-12
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.06/META.json 
new/DateTime-Format-MySQL-0.0701/META.json
--- old/DateTime-Format-MySQL-0.06/META.json    2016-02-12 15:41:14.000000000 
+0100
+++ new/DateTime-Format-MySQL-0.0701/META.json  2021-05-22 15:32:29.000000000 
+0200
@@ -34,7 +34,7 @@
    "provides" : {
       "DateTime::Format::MySQL" : {
          "file" : "lib/DateTime/Format/MySQL.pm",
-         "version" : "0.06"
+         "version" : "0.0701"
       }
    },
    "release_status" : "stable",
@@ -43,5 +43,5 @@
          "http://dev.perl.org/licenses/";
       ]
    },
-   "version" : "0.06"
+   "version" : "0.0701"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.06/META.yml 
new/DateTime-Format-MySQL-0.0701/META.yml
--- old/DateTime-Format-MySQL-0.06/META.yml     2016-02-12 15:41:14.000000000 
+0100
+++ new/DateTime-Format-MySQL-0.0701/META.yml   2021-05-22 15:32:29.000000000 
+0200
@@ -16,10 +16,10 @@
 provides:
   DateTime::Format::MySQL:
     file: lib/DateTime/Format/MySQL.pm
-    version: '0.06'
+    version: '0.0701'
 requires:
   DateTime: '0'
   DateTime::Format::Builder: '0.6'
 resources:
   license: http://dev.perl.org/licenses/
-version: '0.06'
+version: '0.0701'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/DateTime-Format-MySQL-0.06/lib/DateTime/Format/MySQL.pm 
new/DateTime-Format-MySQL-0.0701/lib/DateTime/Format/MySQL.pm
--- old/DateTime-Format-MySQL-0.06/lib/DateTime/Format/MySQL.pm 2016-02-12 
15:41:14.000000000 +0100
+++ new/DateTime-Format-MySQL-0.0701/lib/DateTime/Format/MySQL.pm       
2021-05-22 15:32:29.000000000 +0200
@@ -4,7 +4,7 @@
 
 use vars qw ($VERSION);
 
-$VERSION = '0.06';
+$VERSION = '0.0701';
 
 use DateTime;
 use DateTime::Format::Builder
@@ -104,7 +104,7 @@
 {
     my ( $self, $dt ) = @_;
 
-    return $dt->hms(':');
+    return $dt->microsecond ? join('.', $dt->hms(':'), $dt->microsecond) : 
$dt->hms(':');
 }
 
 sub format_datetime
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/DateTime-Format-MySQL-0.06/t/01format.t 
new/DateTime-Format-MySQL-0.0701/t/01format.t
--- old/DateTime-Format-MySQL-0.06/t/01format.t 2016-02-12 15:41:14.000000000 
+0100
+++ new/DateTime-Format-MySQL-0.0701/t/01format.t       2021-05-22 
15:32:29.000000000 +0200
@@ -1,6 +1,6 @@
 use strict;
 
-use Test::More tests => 3;
+use Test::More tests => 7;
 
 use DateTime::Format::MySQL;
 
@@ -20,3 +20,26 @@
     is( $mysql->format_datetime($dt), '2000-05-06 15:23:44', 'format_datetime' 
);
     is( $mysql->format_time($dt), '15:23:44', 'format_time' );
 }
+
+my $dt_hires = DateTime->new( year   => 2000,
+                        month  => 5,
+                        day    => 6,
+                        hour   => 15,
+                        minute => 23,
+                        second => 44,
+                        nanosecond => 123_456_000,
+                        time_zone => 'UTC',
+                      );
+
+{
+    is( $mysql->format_time($dt_hires), '15:23:44.123456', 'format_time hires 
keeps micros');
+
+    $dt_hires->set(nanosecond => 123_456_789);
+    is( $mysql->format_time($dt_hires), '15:23:44.123456', 'format_time hires 
truncates nanos');
+
+    $dt_hires->set(nanosecond => 1);
+    is( $mysql->format_time($dt_hires), '15:23:44', 'format_time hires drops 
nanos < 1 micro');
+
+    $dt_hires->set(nanosecond => 500_000_000);
+    is( $mysql->format_time($dt_hires), '15:23:44.500000', 'format_time hires 
keeps 6 digit precision');
+}

Reply via email to