forked from pool/perl-Time-Duration-Parse
Compare commits
12 Commits
b8a97a2c00
...
97b3a9e66c
Author | SHA256 | Date | |
---|---|---|---|
97b3a9e66c | |||
fd044d9232 | |||
1aef050e3b | |||
|
c648b996dc | ||
b0e581b2f9 | |||
|
5a32636016 | ||
c276cf4b45 | |||
|
24a8a81d50 | ||
ada9afda3a | |||
|
25e1755f1b | ||
|
be25fad698 | ||
|
1f8ffb69f0 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3a61800d5e757c4a766a48cff3efae4c4c1504c496947d99b529e8ee0eefae7b
|
||||
size 11340
|
3
Time-Duration-Parse-0.16.tar.gz
Normal file
3
Time-Duration-Parse-0.16.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1084a6463ee2790f99215bd76b135ca45afe2bfa6998fa6fd5470b69e1babc12
|
||||
size 11810
|
@@ -1,3 +1,52 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 12 18:19:12 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 20 03:07:35 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.16
|
||||
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
|
||||
|
||||
0.16 2021-05-19 NEILB
|
||||
- Switched to plain Exporter, instead of Exporter::Lite.
|
||||
Thanks to Graham Knop for PR.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 13 05:29:03 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 0.15
|
||||
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
|
||||
|
||||
0.15 2019-05-12 NEILB
|
||||
- Added support for fractional parts of seconds in hh:mm:ss.ssss
|
||||
- Added L<> links to Time::Duration and duration_exact in that module.
|
||||
- Fixed grammar in doc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 30 06:07:49 UTC 2018 - coolo@suse.com
|
||||
|
||||
- updated to 0.14
|
||||
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
|
||||
|
||||
0.14 2018-06-29 NEILB
|
||||
- Added "hrs" as another form for "hours". Thanks to Stig for the PR.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 27 10:37:36 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.13
|
||||
see /usr/share/doc/packages/perl-Time-Duration-Parse/Changes
|
||||
|
||||
0.13 2015-10-25 NEILB
|
||||
- Added additional abbrevations for 'months': 'mo', 'mon', 'mons'.
|
||||
Thanks to PERLANCAR.
|
||||
- Rewrote the main testsuite to be data driven, to make it easy to
|
||||
add test cases, as for the above change.
|
||||
- Updated github repo URL after changing my github username
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 4 08:57:50 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Time-Duration-Parse
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,36 +12,36 @@
|
||||
# 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-Duration-Parse
|
||||
Version: 0.12
|
||||
Release: 0
|
||||
%define cpan_name Time-Duration-Parse
|
||||
Name: perl-Time-Duration-Parse
|
||||
Version: 0.160.0
|
||||
Release: 0
|
||||
# 0.16 -> normalize -> 0.160.0
|
||||
%define cpan_version 0.16
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Parse string that represents time duration
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Time-Duration-Parse/
|
||||
Source0: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Exporter::Lite)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Time::Duration)
|
||||
Requires: perl(Exporter::Lite)
|
||||
Provides: perl(Time::Duration::Parse) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Time::Duration::Parse is a module to parse human readable duration strings
|
||||
like _2 minutes and 3 seconds_ to seconds.
|
||||
|
||||
It does the opposite of _duration_exact_ function in Time::Duration and is
|
||||
roundtrip safe. So, the following is always true.
|
||||
It does the opposite of Time::Duration/duration_exact function in
|
||||
Time::Duration and is roundtrip safe. So, the following is always true.
|
||||
|
||||
use Time::Duration::Parse;
|
||||
use Time::Duration;
|
||||
@@ -50,14 +50,14 @@ roundtrip safe. So, the following is always true.
|
||||
is( parse_duration(duration_exact($seconds)), $seconds );
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -65,7 +65,7 @@ roundtrip safe. So, the following is always true.
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
%doc Changes README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user