9
0

WIP: Automatic update to Time-Moment-0.46.tar.gz #1

Draft
cpanmirror wants to merge 1 commits from cpanmirror/perl-Time-Moment:autoupdate into main
4 changed files with 65 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64acfa042f634fcef8dadf55e7f42ba4eaab8aaeb7d5212eb89815a31f78f6fd
size 159123

BIN
Time-Moment-0.46.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Sat Dec 6 05:36:14 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 0.460.0 (0.46)
see /usr/share/doc/packages/perl-Time-Moment/Changes
0.46 2025-12-04
- Added an example to eg/
- eg/isocal.pl
- Added an implementation of NearestDayOfWeek() in Time::Moment::Adjusters.
- Fix Time::Moment->from_epoch when called with a floating-point value whose
fractional part rounds to exactly 1.000000000 seconds at 9 decimal digits.
Such values previously caused a “Parameter 'nanosecond' is out of the range
[0, 999_999_999]” error; they are now normalized by incrementing the second
and wrapping nanoseconds to zero, consistent with the rd/jd/mjd constructors.
Reported by @butzsch, addressing issue #40.
0.45 2025-11-18 (unreleased on CPAN)
- Ensure ->with_month preserves the original day-of-month, clamping to the target
months final day when necessary. Reported by @bokutin, addressing issue #43.
- Ensure ->from_object correctly respects class inheritance. Reported by @Grinnz,
addressing issue #44.
- Added a new documentation section explaining the fundamental differences
between calendar units and time units, addressing issue #49.
- Added a new documentation section on supported calendars, specifically detailing
the ISO 8601 week date representation, addressing issue #21.
- Updated documentation to fix incorrect conversion specifier in ISO 8601 examples,
reported by Richlv in issue #45.
- Resolved a Year 2038 bug in the ->now method, which would have occurred in 2038,
by switching from 32-bit to 64-bit integers for second calculations. Addressed
in PR #48 and issue #47 by Bernhard M. Wiedemann (@bmwiedemann).
-------------------------------------------------------------------
Mon Mar 4 15:35:16 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Time-Moment
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,53 +12,57 @@
# 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/
#
Name: perl-Time-Moment
Version: 0.44
Release: 0
%define cpan_name Time-Moment
Summary: Represents a date and time of day with an offset from UTC
Name: perl-Time-Moment
Version: 0.460.0
Release: 0
# 0.46 -> normalize -> 0.460.0
%define cpan_version 0.46
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Time-Moment/
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/%{cpan_name}-%{version}.tar.gz
Summary: Represents a date and time of day with an offset from UTC
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
Patch0: fix2038.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(ExtUtils::ParseXS) >= 3.18
BuildRequires: perl(Test::Fatal) >= 0.006
BuildRequires: perl(Test::Fatal) >= 0.6
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Number::Delta) >= 1.060000
BuildRequires: perl(Test::Number::Delta) >= 1.60
BuildRequires: perl(Test::Requires)
Provides: perl(Time::Moment) = %{version}
Provides: perl(Time::Moment::Adjusters) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
'Time::Moment' is an immutable object representing a date and time of day
with an offset from UTC in the ISO 8601 calendar system.
'Time::Moment' is an immutable object that represents a specific date and
time of day, along with an offset from UTC, within the ISO 8601 calendar
system. Time is measured in nanoseconds since '0001-01-01T00Z'. Leap
seconds are not accounted for in 'Time::Moment'; each day is assumed to
have exactly '86,400,000,000,000' nanoseconds.
Time is measured in nanoseconds since '0001-01-01T00Z'. In 'Time:Moment'
leap seconds are ignored. It is assumed that there are exactly
'86,400,000,000,000' nanoseconds per day. 'Time::Moment' can represent all
epoch integers from '-62,135,596,800' to '253,402,300,799'; this range
suffices to measure times to nanosecond precision for any instant that is
within '0001-01-01T00:00:00Z' to '9999-12-31T23:59:59Z'.
Time::Moment supports all epoch integers from '-62,135,596,800' to
'253,402,300,799', allowing for nanosecond precision for any instant within
the range '0001-01-01T00:00:00Z' to '9999-12-31T23:59:59Z'.
%prep
%autosetup -p1 -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -66,7 +70,6 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog